summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2022-08-16 16:06:40 +0200
committerMobashshera Rasool <mrasool@vmware.com>2022-08-16 16:20:52 +0200
commite9cb0d510d57835d11691fe53885dba2df8d018c (patch)
treeb21ab4499a83b83a364020ea1c10c027c983be1a
parentMerge pull request #11809 from opensourcerouting/fix/doc_bgp_clist (diff)
downloadfrr-e9cb0d510d57835d11691fe53885dba2df8d018c.tar.xz
frr-e9cb0d510d57835d11691fe53885dba2df8d018c.zip
pim6d: Register message getting dropped in source node, mroute stuck 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 <mrasool@vmware.com>
-rw-r--r--pimd/pim_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_sock.c b/pimd/pim_sock.c
index 73184d5c6..b5a055c6a 100644
--- a/pimd/pim_sock.c
+++ b/pimd/pim_sock.c
@@ -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) {