]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Modifying in_addr to pim_addr in struct pim_neighbor and gm_sock 10212/head
authorsarita patra <saritap@vmware.com>
Tue, 14 Dec 2021 12:25:40 +0000 (04:25 -0800)
committerMobashshera Rasool <mrasool@vmware.com>
Tue, 11 Jan 2022 05:10:29 +0000 (21:10 -0800)
Changed struct in_addr source_addr to struct PIM_ADDR source_addr
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_igmp.h
pimd/pim_neighbor.h

index a3f470d8dc713d45b1551eefcac3ce6ebb33b9ca..b82b62ea74cff6d20ddc317f03561d644ddc9f70 100644 (file)
@@ -86,14 +86,14 @@ struct gm_join {
 struct gm_sock {
        int fd;
        struct interface *interface;
-       struct in_addr ifaddr;
+       pim_addr ifaddr;
        time_t sock_creation;
 
        struct thread *t_igmp_read; /* read: IGMP sockets */
        struct thread
                *t_igmp_query_timer; /* timer: issue IGMP general queries */
        struct thread *t_other_querier_timer; /* timer: other querier present */
-       pim_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;
index d71b2b87c30880a6661724317073ea725e11ec95..12c469ae2a335edb6c105bbc5dfbd25146bd0655 100644 (file)
 
 #include "pim_tlv.h"
 #include "pim_iface.h"
+#include "pim_str.h"
 
 struct pim_neighbor {
        int64_t creation; /* timestamp of creation */
-       struct in_addr source_addr;
+       pim_addr source_addr;
        pim_hello_options hello_options;
        uint16_t holdtime;
        uint16_t propagation_delay_msec;