This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] linux: bits/in.h: sync with latest kernel headers


On 01/30/2014 06:59 PM, Mike Frysinger wrote:
> This pulls in the latest defines for {g,s}etsockopt.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Looks good to me.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>

> 2014-01-30  Mike Frysinger  <vapier@gentoo.org>
> 
> 	* sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
> 	(IP_PMTUDISC_INTERFACE): Likewise.
> 	(IP_MULTICAST_IF): Likewise.
> 	(IP_MULTICAST_TTL): Likewise.
> 	(IP_MULTICAST_LOOP): Likewise.
> 	(IP_ADD_MEMBERSHIP): Likewise.
> 	(IP_DROP_MEMBERSHIP): Likewise.
> 	(IP_UNBLOCK_SOURCE): Likewise.
> 	(IP_BLOCK_SOURCE): Likewise.
> 	(IP_ADD_SOURCE_MEMBERSHIP): Likewise.
> 	(IP_DROP_SOURCE_MEMBERSHIP): Likewise.
> 	(IP_MSFILTER): Likewise.
> 	(MCAST_JOIN_GROUP): Likewise.
> 	(MCAST_BLOCK_SOURCE): Likewise.
> 	(MCAST_UNBLOCK_SOURCE): Likewise.
> 	(MCAST_LEAVE_GROUP): Likewise.
> 	(MCAST_JOIN_SOURCE_GROUP): Likewise.
> 	(MCAST_LEAVE_SOURCE_GROUP): Likewise.
> 	(MCAST_MSFILTER): Likewise.
> 	(IP_MULTICAST_ALL): Likewise.
> 	(IP_UNICAST_IF): Likewise.
> ---
>  sysdeps/unix/sysv/linux/bits/in.h | 26 +++++++++++++++++++++++++-
>  1 file changed, 25 insertions(+), 1 deletion(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
> index 9d74066..6754da0 100644
> --- a/sysdeps/unix/sysv/linux/bits/in.h
> +++ b/sysdeps/unix/sysv/linux/bits/in.h
> @@ -90,13 +90,37 @@
>  #define IP_RECVORIGDSTADDR   IP_ORIGDSTADDR
>  
>  #define IP_MINTTL       21
> -
> +#define IP_NODEFRAG     22

OK.

>  
>  /* IP_MTU_DISCOVER arguments.  */
>  #define IP_PMTUDISC_DONT   0	/* Never send DF frames.  */
>  #define IP_PMTUDISC_WANT   1	/* Use per route hints.  */
>  #define IP_PMTUDISC_DO     2	/* Always DF.  */
>  #define IP_PMTUDISC_PROBE  3	/* Ignore dst pmtu.  */
> +/* Always use interface mtu (ignores dst pmtu) but don't set DF flag.
> +   Also incoming ICMP frag_needed notifications will be ignored on
> +   this socket to prevent accepting spoofed ones.  */
> +#define IP_PMTUDISC_INTERFACE           4
> +
> +#define IP_MULTICAST_IF			32
> +#define IP_MULTICAST_TTL 		33
> +#define IP_MULTICAST_LOOP 		34
> +#define IP_ADD_MEMBERSHIP		35
> +#define IP_DROP_MEMBERSHIP		36
> +#define IP_UNBLOCK_SOURCE		37
> +#define IP_BLOCK_SOURCE			38
> +#define IP_ADD_SOURCE_MEMBERSHIP	39
> +#define IP_DROP_SOURCE_MEMBERSHIP	40
> +#define IP_MSFILTER			41
> +#define MCAST_JOIN_GROUP		42
> +#define MCAST_BLOCK_SOURCE		43
> +#define MCAST_UNBLOCK_SOURCE		44
> +#define MCAST_LEAVE_GROUP		45
> +#define MCAST_JOIN_SOURCE_GROUP		46
> +#define MCAST_LEAVE_SOURCE_GROUP	47
> +#define MCAST_MSFILTER			48
> +#define IP_MULTICAST_ALL		49
> +#define IP_UNICAST_IF			50

OK.

>  
>  /* To select the IP level.  */
>  #define SOL_IP	0
> 

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]