Skip to content

Commit 031e961

Browse files
dzamlolittle-dude
authored andcommitted
Add SPDX license header
1 parent 1a838c3 commit 031e961

File tree

15 files changed

+30
-0
lines changed

15 files changed

+30
-0
lines changed

examples/nflog.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use netlink_packet_netfilter::{
24
constants::*,
35
message::NetfilterMessage,

src/buffer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use crate::{
24
message::{NetfilterHeader, NetfilterMessage, NetfilterMessageInner, NETFILTER_HEADER_LEN},
35
nflog::NfLogMessage,

src/constants.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
pub use netlink_packet_core::constants::*;
24

35
pub const AF_UNSPEC: u8 = libc::AF_UNSPEC as u8;

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
pub(crate) extern crate netlink_packet_utils as utils;
24
pub use self::utils::{traits, DecodeError};
35
pub use netlink_packet_core::{

src/message.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use netlink_packet_core::{
24
DecodeError,
35
NetlinkDeserializable,

src/nflog.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use netlink_packet_core::DecodeError;
24
use netlink_packet_utils::{nla::DefaultNla, Emitable, Parseable, ParseableParametrized};
35
use std::fmt::Debug;

src/nflog/config.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use anyhow::Context;
24
use byteorder::{BigEndian, ByteOrder};
35
use netlink_packet_core::{

src/nflog/config/config_cmd.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use netlink_packet_utils::nla::Nla;
24

35
const NFULA_CFG_CMD: u16 = libc::NFULA_CFG_CMD as u16;

src/nflog/config/config_flags.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use std::mem::size_of;
24

35
use bitflags::bitflags;

src/nflog/config/config_mode.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: MIT
2+
13
use netlink_packet_utils::{buffer, errors::DecodeError, nla::Nla, Parseable};
24

35
const NFULA_CFG_MODE: u16 = libc::NFULA_CFG_MODE as u16;

0 commit comments

Comments
 (0)