History

bridge: join all-snoopers multicast address

Next to snooping IGMP/MLD queries RFC4541, section 2.1.1.a) recommends to snoop multicast router advertisements to detect multicast routers. Multicast router advertisements are sent to an "all-snoopers" multicast address. To be able to receive them reliably, we need to join this group. Otherwise other snooping switches might refrain from forwarding these advertisements to us.

Linus Lüssing committed 7 years ago

Commit 4effd281 parent a2e2ca33 files · +78 −5Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/in.h+5−4
@@ -292,10 +292,11 @@ struct sockaddr_in { · 291 unmodified lines
292292 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000)
293293
294294 /* Defines for Multicast INADDR */
295−#define INADDR_UNSPEC_GROUP 0xe0000000U /* 224.0.0.0 */
296−#define INADDR_ALLHOSTS_GROUP 0xe0000001U /* 224.0.0.1 */
297−#define INADDR_ALLRTRS_GROUP 0xe0000002U /* 224.0.0.2 */
298−#define INADDR_MAX_LOCAL_GROUP 0xe00000ffU /* 224.0.0.255 */
295+#define INADDR_UNSPEC_GROUP 0xe0000000U /* 224.0.0.0 */
296+#define INADDR_ALLHOSTS_GROUP 0xe0000001U /* 224.0.0.1 */
297+#define INADDR_ALLRTRS_GROUP 0xe0000002U /* 224.0.0.2 */
298+#define INADDR_ALLSNOOPERS_GROUP 0xe000006aU /* 224.0.0.106 */
299+#define INADDR_MAX_LOCAL_GROUP 0xe00000ffU /* 224.0.0.255 */
299300 #endif
300301
301302 /* <asm/byteorder.h> contains the htonl type stuff.. */