bridge: br_arp_nd_proxy: set icmp6_router if neigh has NTF_ROUTER
Subsystems (3)
PATCH 1/1 bridge: br_arp_nd_proxy: set icmp6_router if neigh has NTF_ROUTER
From: Roopa Prabhu <[email protected]>
Fixes ed842faeb2bd ("bridge: suppress nd pkts on BR_NEIGH_SUPPRESS ports")
Signed-off-by Roopa Prabhu <[email protected]>
--- net/bridge/br_arp_nd_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bridge/br_arp_nd_proxy.c +1 -1
@@ -311,7 +311,7 @@ static void br_nd_send(struct net_bridge *br, struct net_bridge_port *p,/* Neighbor Advertisement */ memset (na,0 ,sizeof (*na) + na_olen); na->icmph.icmp6_type =NDISC_NEIGHBOUR_ADVERTISEMENT ; - na->icmph.icmp6_router =0 ;/* XXX: should be 1 ? */ + na->icmph.icmp6_router = (n->flags &NTF_ROUTER ) ?1 :0 ; na->icmph.icmp6_override =1 ; na->icmph.icmp6_solicited =1 ; na->target = ns->target;
Signature · 1 line
2.1.4
From: Roopa Prabhu <[email protected]>
Date: Tue, 25 Sep 2018 14:39:14 -0700
Quoted 4 lines
From: Roopa Prabhu <[email protected]>
Fixes ed842faeb2bd ("bridge: suppress nd pkts on BR_NEIGH_SUPPRESS ports")Signed-off-by Roopa Prabhu <[email protected]>
Applied.