Re: [PATCH net-next] ipv4: accept u8 in IP_TOS ancillary data

2016-09-13 Thread Jesper Dangaard Brouer
On Thu, 08 Sep 2016 06:31:14 -0700 Eric Dumazet wrote: > On Thu, 2016-09-08 at 11:15 +0200, Jesper Dangaard Brouer wrote: > > On Wed, 07 Sep 2016 21:52:56 -0700 > > Eric Dumazet wrote: > > > > > From: Eric Dumazet > > > > > > In commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified

Re: [PATCH net-next] ipv4: accept u8 in IP_TOS ancillary data

2016-09-08 Thread David Miller
From: Eric Dumazet Date: Wed, 07 Sep 2016 21:52:56 -0700 > From: Eric Dumazet > > In commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as > ancillary data") Francesco added IP_TOS values specified as integer. > > However, kernel sends to userspace (at recvmsg() time) an IP_TOS val

Re: [PATCH net-next] ipv4: accept u8 in IP_TOS ancillary data

2016-09-08 Thread Eric Dumazet
On Thu, 2016-09-08 at 11:15 +0200, Jesper Dangaard Brouer wrote: > On Wed, 07 Sep 2016 21:52:56 -0700 > Eric Dumazet wrote: > > > From: Eric Dumazet > > > > In commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as > > ancillary data") Francesco added IP_TOS values specified as integ

Re: [PATCH net-next] ipv4: accept u8 in IP_TOS ancillary data

2016-09-08 Thread Jesper Dangaard Brouer
On Wed, 07 Sep 2016 21:52:56 -0700 Eric Dumazet wrote: > From: Eric Dumazet > > In commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as > ancillary data") Francesco added IP_TOS values specified as integer. > > However, kernel sends to userspace (at recvmsg() time) an IP_TOS value

[PATCH net-next] ipv4: accept u8 in IP_TOS ancillary data

2016-09-07 Thread Eric Dumazet
From: Eric Dumazet In commit f02db315b8d8 ("ipv4: IP_TOS and IP_TTL can be specified as ancillary data") Francesco added IP_TOS values specified as integer. However, kernel sends to userspace (at recvmsg() time) an IP_TOS value in a single byte, when IP_RECVTOS is set on the socket. It can be v