Skip to content

Commit

Permalink
pim6d: Register message getting dropped in source node, mroute stuck …
Browse files Browse the repository at this point in the history
…in RegJ

The socket created for pimv6 was created using AF_INET for PIMV6
too.
Since the api pim_reg_sock is common to both PIMv4 and PIMv6,
need to use PIM_AF instead of AF_INET.

Fixes: #11815

Signed-off-by: Mobashshera Rasool <[email protected]>
  • Loading branch information
mobash-rasool committed Aug 16, 2022
1 parent a8b8285 commit ac2dd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pimd/pim_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ int pim_reg_sock(void)
long flags;

frr_with_privs (&pimd_privs) {
fd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
fd = socket(PIM_AF, SOCK_RAW, IPPROTO_RAW);
}

if (fd < 0) {
Expand Down

0 comments on commit ac2dd93

Please sign in to comment.