]> git.baikalelectronics.ru Git - kernel.git/commit
ip: IP cmsg cleanup
authorTom Herbert <therbert@google.com>
Mon, 5 Jan 2015 21:56:15 +0000 (13:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jan 2015 03:44:46 +0000 (22:44 -0500)
commite09f9ccf7c99d0abddb81d6c8c24d9c5a20033af
tree03e510be58acdf0ff3aa10cc5f5366f51343f22b
parentcf6a9827f413727f23e5579593e18dc373ba5aa1
ip: IP cmsg cleanup

Move the IP_CMSG_* constants from ip_sockglue.c to inet_sock.h so that
they can be referenced in other source files.

Restructure ip_cmsg_recv to not go through flags using shift, check
for flags by 'and'. This eliminates both the shift and a conditional
per flag check.

Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h
net/ipv4/ip_sockglue.c