]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Modifying in_addr to pim_addr in struct pim_iface_upstream_switch
authorsarita patra <saritap@vmware.com>
Mon, 13 Dec 2021 14:01:36 +0000 (06:01 -0800)
committerMobashshera Rasool <mrasool@vmware.com>
Tue, 11 Jan 2022 05:10:29 +0000 (21:10 -0800)
Changed struct in_addr address to struct pim_addr in struct
pim_iface_upstream_switch which is to be used in both IPv4
and IPv6(Both MLD and IGMP).

Reviewed-by: Mobashshera Rasool <mrasool@vmware.com>
Signed-off-by: sarita patra <saritap@vmware.com>
pimd/pim_iface.h
pimd/pim_igmp.h

index 9213e600f9ca0b73f9050865f06e54b6efd97b5a..65dde45782da7d98cd01b4e85a62be213bdb0ec9 100644 (file)
@@ -32,6 +32,7 @@
 #include "pim_upstream.h"
 #include "pim_instance.h"
 #include "bfd.h"
+#include "pim_str.h"
 
 #define PIM_IF_MASK_PIM                             (1 << 0)
 #define PIM_IF_MASK_IGMP                            (1 << 1)
@@ -76,7 +77,7 @@
 #define PIM_IF_FLAG_UNSET_HELLO_SENT(flags) ((flags) &= ~PIM_IF_FLAG_HELLO_SENT)
 
 struct pim_iface_upstream_switch {
-       struct in_addr address;
+       pim_addr address;
        struct list *us;
 };
 
index 5fd4fdb32c9f92396449bf9968e693604217f1fe..2a818c068b0f827b3412bc9f4fc29a1ccd6b61d2 100644 (file)
@@ -93,7 +93,7 @@ struct gm_sock {
        struct thread
                *t_igmp_query_timer; /* timer: issue IGMP general queries */
        struct thread *t_other_querier_timer; /* timer: other querier present */
-       struct in_addr querier_addr;      /* IP address of the querier */
+       pim_addr querier_addr;   /* IP address of the querier */
        int querier_query_interval;        /* QQI */
        int querier_robustness_variable; /* QRV */
        int startup_query_count;