summaryrefslogtreecommitdiff
path: root/pimd/pim_igmp.h
diff options
context:
space:
mode:
authorNathan Bahr <nbahr@atcorp.com>2024-06-26 12:41:45 -0500
committerNathan Bahr <nbahr@atcorp.com>2024-08-15 16:20:00 +0000
commit0cb1bf78736573f13d45e6b138a8c1ac42228b1f (patch)
treeb79a2e0bcbcdbb02d22052f03c300c06d8cd9d16 /pimd/pim_igmp.h
parentaa9d66e922e2a232b2fd89b87d8cb7409ae82dc1 (diff)
pimd, yang: Implement igmp static-group command
This will add a static IGMP group that does not rely on an underlying socket join which sends traffic to the cpu unneccesarily. Instead, the groups are joined directly without any IGMP interactions. New command is under interfaces, 'ip igmp static-group ...'. Added an alias for 'ip igmp join ...' to 'ip igmp join-group'. Moved IGMP join groups to new yang list "join-group" and reused the "static-group" list for the IGMP static groups. Signed-off-by: Nathan Bahr <nbahr@atcorp.com>
Diffstat (limited to 'pimd/pim_igmp.h')
-rw-r--r--pimd/pim_igmp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_igmp.h b/pimd/pim_igmp.h
index a1f19b3c6e..de0ec01a65 100644
--- a/pimd/pim_igmp.h
+++ b/pimd/pim_igmp.h
@@ -58,6 +58,12 @@ struct gm_join {
time_t sock_creation;
};
+struct static_group {
+ pim_addr group_addr;
+ pim_addr source_addr;
+ struct channel_oil *oilp;
+};
+
struct gm_sock {
int fd;
struct interface *interface;