Skip to content

Commit

Permalink
zebra: fix a typo in the BPF filter setup for NS
Browse files Browse the repository at this point in the history
Because of this unicast NS was not being trapped to FRR for redirection.

Signed-off-by: Anuradha Karuppiah <[email protected]>
  • Loading branch information
AnuradhaKaruppiah authored and donaldsharp committed Dec 7, 2024
1 parent 8d502fe commit 96bd266
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions zebra/zebra_evpn_arp_nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,18 +422,18 @@ static int zebra_evpn_arp_nd_sock_create(struct zebra_if *zif)

/* BPF filter for snooping on unicast ARP req/replies and unicast IPv6 NS/NA -
* tcpdump -dd '((ether[0] &1 == 0) and (arp or
* (icmp6 and (ip6[4] == 135 or ip6[40] == 136)))) and inbound'
* (icmp6 and (ip6[40] == 135 or ip6[40] == 136)))) and inbound'
*/
static struct sock_filter arp_nd_filter[] = {
{0x30, 0, 0, 0x00000000}, {0x45, 15, 0, 0x00000001},
{0x28, 0, 0, 0x0000000c}, {0x15, 10, 0, 0x00000806},
{0x15, 0, 12, 0x000086dd}, {0x30, 0, 0, 0x00000014},
{0x15, 3, 0, 0x0000003a}, {0x15, 0, 9, 0x0000002c},
{0x30, 0, 0, 0x00000036}, {0x15, 0, 7, 0x0000003a},
{0x30, 0, 0, 0x00000012}, {0x15, 2, 0, 0x00000087},
{0x30, 0, 0, 0x00000036}, {0x15, 0, 3, 0x00000088},
{0x28, 0, 0, 0xfffff004}, {0x15, 1, 0, 0x00000004},
{0x6, 0, 0, 0x00040000}, {0x6, 0, 0, 0x00000000},
{0x30, 0, 0, 0x00000000}, {0x45, 14, 0, 0x00000001},
{0x28, 0, 0, 0x0000000c}, {0x15, 9, 0, 0x00000806},
{0x15, 0, 11, 0x000086dd}, {0x30, 0, 0, 0x00000014},
{0x15, 3, 0, 0x0000003a}, {0x15, 0, 8, 0x0000002c},
{0x30, 0, 0, 0x00000036}, {0x15, 0, 6, 0x0000003a},
{0x30, 0, 0, 0x00000036}, {0x15, 1, 0, 0x00000087},
{0x15, 0, 3, 0x00000088}, {0x28, 0, 0, 0xfffff004},
{0x15, 1, 0, 0x00000004}, {0x6, 0, 0, 0x00040000},
{0x6, 0, 0, 0x00000000},
};

/* Setup socket per-access bridge port */
Expand Down

0 comments on commit 96bd266

Please sign in to comment.