[BRIDGE]: Annotations.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -64,7 +64,7 @@ static inline int nf_bridge_pad(const struct sk_buff *skb)
|
||||
|
||||
struct bridge_skb_cb {
|
||||
union {
|
||||
__u32 ipv4;
|
||||
__be32 ipv4;
|
||||
} daddr;
|
||||
};
|
||||
|
||||
|
||||
@@ -28,21 +28,21 @@ struct hdr_ui {
|
||||
uint8_t ssap;
|
||||
uint8_t ctrl;
|
||||
uint8_t orig[3];
|
||||
uint16_t type;
|
||||
__be16 type;
|
||||
};
|
||||
|
||||
struct hdr_ni {
|
||||
uint8_t dsap;
|
||||
uint8_t ssap;
|
||||
uint16_t ctrl;
|
||||
__be16 ctrl;
|
||||
uint8_t orig[3];
|
||||
uint16_t type;
|
||||
__be16 type;
|
||||
};
|
||||
|
||||
struct ebt_802_3_hdr {
|
||||
uint8_t daddr[6];
|
||||
uint8_t saddr[6];
|
||||
uint16_t len;
|
||||
__be16 len;
|
||||
union {
|
||||
struct hdr_ui ui;
|
||||
struct hdr_ni ni;
|
||||
@@ -61,7 +61,7 @@ static inline struct ebt_802_3_hdr *ebt_802_3_hdr(const struct sk_buff *skb)
|
||||
struct ebt_802_3_info
|
||||
{
|
||||
uint8_t sap;
|
||||
uint16_t type;
|
||||
__be16 type;
|
||||
uint8_t bitmask;
|
||||
uint8_t invflags;
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
struct ebt_mac_wormhash_tuple
|
||||
{
|
||||
uint32_t cmp[2];
|
||||
uint32_t ip;
|
||||
__be32 ip;
|
||||
};
|
||||
|
||||
struct ebt_mac_wormhash
|
||||
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
struct ebt_arp_info
|
||||
{
|
||||
uint16_t htype;
|
||||
uint16_t ptype;
|
||||
uint16_t opcode;
|
||||
uint32_t saddr;
|
||||
uint32_t smsk;
|
||||
uint32_t daddr;
|
||||
uint32_t dmsk;
|
||||
__be16 htype;
|
||||
__be16 ptype;
|
||||
__be16 opcode;
|
||||
__be32 saddr;
|
||||
__be32 smsk;
|
||||
__be32 daddr;
|
||||
__be32 dmsk;
|
||||
unsigned char smaddr[ETH_ALEN];
|
||||
unsigned char smmsk[ETH_ALEN];
|
||||
unsigned char dmaddr[ETH_ALEN];
|
||||
|
||||
@@ -28,10 +28,10 @@
|
||||
/* the same values are used for the invflags */
|
||||
struct ebt_ip_info
|
||||
{
|
||||
uint32_t saddr;
|
||||
uint32_t daddr;
|
||||
uint32_t smsk;
|
||||
uint32_t dmsk;
|
||||
__be32 saddr;
|
||||
__be32 daddr;
|
||||
__be32 smsk;
|
||||
__be32 dmsk;
|
||||
uint8_t tos;
|
||||
uint8_t protocol;
|
||||
uint8_t bitmask;
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
struct ebt_vlan_info {
|
||||
uint16_t id; /* VLAN ID {1-4095} */
|
||||
uint8_t prio; /* VLAN User Priority {0-7} */
|
||||
uint16_t encap; /* VLAN Encapsulated frame code {0-65535} */
|
||||
__be16 encap; /* VLAN Encapsulated frame code {0-65535} */
|
||||
uint8_t bitmask; /* Args bitmask bit 1=1 - ID arg,
|
||||
bit 2=1 User-Priority arg, bit 3=1 encap*/
|
||||
uint8_t invflags; /* Inverse bitmask bit 1=1 - inversed ID arg,
|
||||
|
||||
@@ -141,7 +141,7 @@ struct ebt_entry {
|
||||
/* this needs to be the first field */
|
||||
unsigned int bitmask;
|
||||
unsigned int invflags;
|
||||
uint16_t ethproto;
|
||||
__be16 ethproto;
|
||||
/* the physical in-dev */
|
||||
char in[IFNAMSIZ];
|
||||
/* the logical in-dev */
|
||||
|
||||
Reference in New Issue
Block a user