]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Modifying name of struct igmp_join to struct gm_join to accomodate IPv6 changes. 10167/head
authorMobashshera Rasool <mrasool@vmware.com>
Fri, 3 Dec 2021 17:25:20 +0000 (09:25 -0800)
committerMobashshera Rasool <mrasool@vmware.com>
Fri, 3 Dec 2021 17:35:27 +0000 (09:35 -0800)
Fix:
====
Modifying name of struct igmp_join to struct gm_join, which is to be used
by both IPv4 and IPv6(for both MLD and IGMP).

Co-authored-by: Abhishek N R abnr@vmware.com
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim_cmd.c
pimd/pim_iface.c
pimd/pim_igmp.h
pimd/pim_vty.c

index 81b3ab297939542797f7126ffe479a454d48a5da..aace0df96a9d7a8c6d48bfa2bca06b915e1bb218 100644 (file)
@@ -822,7 +822,7 @@ static void igmp_show_interface_join(struct pim_instance *pim, struct vty *vty,
        FOR_ALL_INTERFACES (pim->vrf, ifp) {
                struct pim_interface *pim_ifp;
                struct listnode *join_node;
-               struct igmp_join *ij;
+               struct gm_join *ij;
                struct in_addr pri_addr;
                char pri_addr_str[INET_ADDRSTRLEN];
 
index effc6fbb8d932d1c5bc08de36fecaad9e9a87335..e28424c7dedcfdc0f139e8553996989c10b33bb8 100644 (file)
@@ -550,7 +550,7 @@ void pim_if_addr_add(struct connected *ifc)
                if (pim_ifp->join_list) {
                        struct listnode *node;
                        struct listnode *nextnode;
-                       struct igmp_join *ij;
+                       struct gm_join *ij;
                        int join_fd;
 
                        for (ALL_LIST_ELEMENTS(pim_ifp->join_list, node,
@@ -1157,17 +1157,17 @@ long pim_if_t_suppressed_msec(struct interface *ifp)
        return t_suppressed_msec;
 }
 
-static void igmp_join_free(struct igmp_join *ij)
+static void igmp_join_free(struct gm_join *ij)
 {
        XFREE(MTYPE_PIM_IGMP_JOIN, ij);
 }
 
-static struct igmp_join *igmp_join_find(struct list *join_list,
-                                       struct in_addr group_addr,
-                                       struct in_addr source_addr)
+static struct gm_join *igmp_join_find(struct list *join_list,
+                                     struct in_addr group_addr,
+                                     struct in_addr source_addr)
 {
        struct listnode *node;
-       struct igmp_join *ij;
+       struct gm_join *ij;
 
        assert(join_list);
 
@@ -1209,12 +1209,12 @@ static int igmp_join_sock(const char *ifname, ifindex_t ifindex,
        return join_fd;
 }
 
-static struct igmp_join *igmp_join_new(struct interface *ifp,
-                                      struct in_addr group_addr,
-                                      struct in_addr source_addr)
+static struct gm_join *igmp_join_new(struct interface *ifp,
+                                    struct in_addr group_addr,
+                                    struct in_addr source_addr)
 {
        struct pim_interface *pim_ifp;
-       struct igmp_join *ij;
+       struct gm_join *ij;
        int join_fd;
 
        pim_ifp = ifp->info;
@@ -1252,7 +1252,7 @@ ferr_r pim_if_igmp_join_add(struct interface *ifp, struct in_addr group_addr,
                            struct in_addr source_addr)
 {
        struct pim_interface *pim_ifp;
-       struct igmp_join *ij;
+       struct gm_join *ij;
 
        pim_ifp = ifp->info;
        if (!pim_ifp) {
@@ -1295,7 +1295,7 @@ int pim_if_igmp_join_del(struct interface *ifp, struct in_addr group_addr,
                         struct in_addr source_addr)
 {
        struct pim_interface *pim_ifp;
-       struct igmp_join *ij;
+       struct gm_join *ij;
 
        pim_ifp = ifp->info;
        if (!pim_ifp) {
@@ -1352,7 +1352,7 @@ static void pim_if_igmp_join_del_all(struct interface *ifp)
        struct pim_interface *pim_ifp;
        struct listnode *node;
        struct listnode *nextnode;
-       struct igmp_join *ij;
+       struct gm_join *ij;
 
        pim_ifp = ifp->info;
        if (!pim_ifp) {
index 1d514086f63a9e37d1f982a231700f92142090b5..5bf68d15076ed18027d9dc1221fee98651231837 100644 (file)
@@ -75,7 +75,7 @@
                output |= *((ptr) + 1);                                        \
        } while (0)
 
-struct igmp_join {
+struct gm_join {
        struct in_addr group_addr;
        struct in_addr source_addr;
        int sock_fd;
index 7ee1ff6abe25604bee09de9e0d519a98bc8f78a3..0cee70e85f5804e9a100cccfa7e703d53f999b42 100644 (file)
@@ -403,7 +403,7 @@ int pim_interface_config_write(struct vty *vty)
                                /* IF ip igmp join */
                                if (pim_ifp->join_list) {
                                        struct listnode *node;
-                                       struct igmp_join *ij;
+                                       struct gm_join *ij;
                                        for (ALL_LIST_ELEMENTS_RO(
                                                     pim_ifp->join_list, node,
                                                     ij)) {