Patchwork Add IGMP_MRDISC_ADV from Linux 5.1 to netinet/igmp.h

login
register
mail settings
Submitter Joseph Myers
Date May 23, 2019, 9:18 p.m.
Message ID <alpine.DEB.2.21.1905232117580.22178@digraph.polyomino.org.uk>
Download mbox | patch
Permalink /patch/32837/
State New
Headers show

Comments

Joseph Myers - May 23, 2019, 9:18 p.m.
This patch adds the IGMP_MRDISC_ADV macro from Linux 5.1 to
netinet/igmp.h.

Tested for x86_64.

2019-05-23  Joseph Myers  <joseph@codesourcery.com>

	* inet/netinet/igmp.h (IGMP_MRDISC_ADV): New macro.
Florian Weimer - May 24, 2019, 8:53 a.m.
* Joseph Myers:

> +#define IGMP_MRDISC_ADV			0x30	/* From RFC4286.  */

Looks good, matches the Linux sources.

Thanks,
Florian

Patch

diff --git a/inet/netinet/igmp.h b/inet/netinet/igmp.h
index dccdb11eda..451b1abf47 100644
--- a/inet/netinet/igmp.h
+++ b/inet/netinet/igmp.h
@@ -86,6 +86,7 @@  struct igmp {
 
 #define IGMP_MTRACE_RESP		0x1e	/* traceroute resp.(to sender)*/
 #define IGMP_MTRACE			0x1f	/* mcast traceroute messages  */
+#define IGMP_MRDISC_ADV			0x30	/* From RFC4286.  */
 
 #define IGMP_MAX_HOST_REPORT_DELAY	10	/* max delay for response to     */
 						/*  query (in seconds) according */