]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: sr: add support for SRH injection through setsockopt
authorDavid Lebrun <david.lebrun@uclouvain.be>
Tue, 8 Nov 2016 13:59:21 +0000 (14:59 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Nov 2016 01:40:06 +0000 (20:40 -0500)
commit43d6903481006ccd7e3648b56058471a3cb24446
tree04c5b7531a8d4bd7060f4d92e895a113515085b8
parenteba6f466945e875ca7c918fbbb3a7c7413b348af
ipv6: sr: add support for SRH injection through setsockopt

This patch adds support for per-socket SRH injection with the setsockopt
system call through the IPPROTO_IPV6, IPV6_RTHDR options.
The SRH is pushed through the ipv6_push_nfrag_opts function.

Signed-off-by: David Lebrun <david.lebrun@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/exthdrs.c
net/ipv6/ipv6_sockglue.c