diff options
author | stephen hemminger <shemminger@vyatta.com> | 2012-09-17 06:03:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-19 16:35:22 -0400 |
commit | 6b6e27255f29a6191ef8ad96bfcc392ab2ef6c71 (patch) | |
tree | a5ccefbbb2862f3777b83eefd1d10a2f550345f8 /net/bridge/br_fdb.c | |
parent | 1d3ff76759b70e201e6b379c37ac106c487ff506 (diff) |
netdev: make address const in device address management
The internal functions for add/deleting addresses don't change
their argument.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_fdb.c')
-rw-r--r-- | net/bridge/br_fdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c index ddf93efc133c..02861190a3d4 100644 --- a/net/bridge/br_fdb.c +++ b/net/bridge/br_fdb.c | |||
@@ -609,7 +609,7 @@ static int fdb_add_entry(struct net_bridge_port *source, const __u8 *addr, | |||
609 | 609 | ||
610 | /* Add new permanent fdb entry with RTM_NEWNEIGH */ | 610 | /* Add new permanent fdb entry with RTM_NEWNEIGH */ |
611 | int br_fdb_add(struct ndmsg *ndm, struct net_device *dev, | 611 | int br_fdb_add(struct ndmsg *ndm, struct net_device *dev, |
612 | unsigned char *addr, u16 nlh_flags) | 612 | const unsigned char *addr, u16 nlh_flags) |
613 | { | 613 | { |
614 | struct net_bridge_port *p; | 614 | struct net_bridge_port *p; |
615 | int err = 0; | 615 | int err = 0; |
@@ -639,7 +639,7 @@ int br_fdb_add(struct ndmsg *ndm, struct net_device *dev, | |||
639 | return err; | 639 | return err; |
640 | } | 640 | } |
641 | 641 | ||
642 | static int fdb_delete_by_addr(struct net_bridge_port *p, u8 *addr) | 642 | static int fdb_delete_by_addr(struct net_bridge_port *p, const u8 *addr) |
643 | { | 643 | { |
644 | struct net_bridge *br = p->br; | 644 | struct net_bridge *br = p->br; |
645 | struct hlist_head *head = &br->hash[br_mac_hash(addr)]; | 645 | struct hlist_head *head = &br->hash[br_mac_hash(addr)]; |
@@ -655,7 +655,7 @@ static int fdb_delete_by_addr(struct net_bridge_port *p, u8 *addr) | |||
655 | 655 | ||
656 | /* Remove neighbor entry with RTM_DELNEIGH */ | 656 | /* Remove neighbor entry with RTM_DELNEIGH */ |
657 | int br_fdb_delete(struct ndmsg *ndm, struct net_device *dev, | 657 | int br_fdb_delete(struct ndmsg *ndm, struct net_device *dev, |
658 | unsigned char *addr) | 658 | const unsigned char *addr) |
659 | { | 659 | { |
660 | struct net_bridge_port *p; | 660 | struct net_bridge_port *p; |
661 | int err; | 661 | int err; |