diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-12-14 17:09:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-15 20:14:39 -0500 |
commit | ccb1c31a7a8744cd153a7d92b726a56b56ad61d3 (patch) | |
tree | 1c62ac2565c657155474b3e8335a13ebcc35560e /include | |
parent | 9dd9ff99532d7a7f8222fd1f0d410d91c0f15ac5 (diff) |
bridge: add flags to distinguish permanent mdb entires
This patch adds a flag to each mdb entry, so that we can distinguish
permanent entries with temporary entries.
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Stephen Hemminger <shemminger@vyatta.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/if_bridge.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/if_bridge.h b/include/uapi/linux/if_bridge.h index afbb18a0227c..5db297514aec 100644 --- a/include/uapi/linux/if_bridge.h +++ b/include/uapi/linux/if_bridge.h | |||
@@ -163,6 +163,9 @@ struct br_port_msg { | |||
163 | 163 | ||
164 | struct br_mdb_entry { | 164 | struct br_mdb_entry { |
165 | __u32 ifindex; | 165 | __u32 ifindex; |
166 | #define MDB_TEMPORARY 0 | ||
167 | #define MDB_PERMANENT 1 | ||
168 | __u8 state; | ||
166 | struct { | 169 | struct { |
167 | union { | 170 | union { |
168 | __be32 ip4; | 171 | __be32 ip4; |