Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95904
b: refs/heads/master
c: ae4f8fc
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed May 2, 2008
1 parent b906268 commit 9f20474
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 920e37f76b19b4a3d8a1a3144cd6ee24e0e7f5b4
refs/heads/master: ae4f8fca4030a4e783fa4ccb0c9d8d8a8cf60a32
4 changes: 3 additions & 1 deletion trunk/include/linux/if_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ struct __fdb_entry
__u8 port_no;
__u8 is_local;
__u32 ageing_timer_value;
__u32 unused;
__u8 port_hi;
__u8 pad0;
__u16 unused;
};

#ifdef __KERNEL__
Expand Down
4 changes: 4 additions & 0 deletions trunk/net/bridge/br_fdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ int br_fdb_fillbuf(struct net_bridge *br, void *buf,

/* convert from internal format to API */
memcpy(fe->mac_addr, f->addr.addr, ETH_ALEN);

/* due to ABI compat need to split into hi/lo */
fe->port_no = f->dst->port_no;
fe->port_hi = f->dst->port_no >> 8;

fe->is_local = f->is_local;
if (!f->is_static)
fe->ageing_timer_value = jiffies_to_clock_t(jiffies - f->ageing_timer);
Expand Down

0 comments on commit 9f20474

Please sign in to comment.