Commit b5b6ab65 authored by Ondřej Hlavatý's avatar Ondřej Hlavatý
Browse files

Added the IGMP protocol

parent 76dd4730
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -42,3 +42,15 @@ protocol static {

protocol rip {
}

protocol igmp {
#	interface "*" {
#	  robustness 2;
#	  query interval 125 s;
#	  query response interval 10 s;
#	  startup query interval 31 s;
#	  startup query count 2;
#	  last member query interval 1 s;
#	  last member query count 2;
#	};
}
+2 −2
Original line number Diff line number Diff line
@@ -167,8 +167,8 @@ fi

AC_SUBST(iproutedir)

# all_protocols="$proto_bfd babel bgp ospf pipe radv rip static"
all_protocols="$proto_bfd ospf pipe radv rip static"
# all_protocols="$proto_bfd babel bgp igmp ospf pipe radv rip static"
all_protocols="$proto_bfd igmp ospf pipe radv rip static"

all_protocols=`echo $all_protocols | sed 's/ /,/g'`

+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@
#define IP4_OSPF_ALL_ROUTERS	ipa_build4(224, 0, 0, 5)
#define IP4_OSPF_DES_ROUTERS	ipa_build4(224, 0, 0, 6)
#define IP4_RIP_ROUTERS		ipa_build4(224, 0, 0, 9)
#define IP4_IGMP_ROUTERS	ipa_build4(224, 0, 0, 22)

#define IP6_ALL_NODES		ipa_build6(0xFF020000, 0, 0, 1)
#define IP6_ALL_ROUTERS		ipa_build6(0xFF020000, 0, 0, 2)
+3 −0
Original line number Diff line number Diff line
@@ -1262,6 +1262,9 @@ protos_build(void)
#ifdef CONFIG_BABEL
  proto_build(&proto_babel);
#endif
#ifdef CONFIG_IGMP
  proto_build(&proto_igmp);
#endif

  proto_pool = rp_new(&root_pool, "Protocols");
  proto_shutdown_timer = tm_new(proto_pool);
+2 −1
Original line number Diff line number Diff line
@@ -81,7 +81,8 @@ void protos_dump_all(void);

extern struct protocol
  proto_device, proto_radv, proto_rip, proto_static,
  proto_ospf, proto_pipe, proto_bgp, proto_bfd, proto_babel;
  proto_ospf, proto_pipe, proto_bgp, proto_bfd,
  proto_igmp;

/*
 *	Routing Protocol Instance
Loading