OSDN Git Service

tcp: md5: add TCP_MD5SIG_EXT socket option to set a key address prefix
authorIvan Delalande <colona@arista.com>
Fri, 16 Jun 2017 01:07:07 +0000 (18:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Jun 2017 17:51:34 +0000 (13:51 -0400)
commit8917a777be3ba566377be05117f71b93a5fd909d
tree5ac57647291329d724de78027aab6125d7c13700
parent6797318e623da68dfbacd0cb5c246f5ecd2baf6e
tcp: md5: add TCP_MD5SIG_EXT socket option to set a key address prefix

Replace first padding in the tcp_md5sig structure with a new flag field
and address prefix length so it can be specified when configuring a new
key for TCP MD5 signature. The tcpm_flags field will only be used if the
socket option is TCP_MD5SIG_EXT to avoid breaking existing programs, and
tcpm_prefixlen only when the TCP_MD5SIG_FLAG_PREFIX flag is set.

Signed-off-by: Bob Gilligan <gilligan@arista.com>
Signed-off-by: Eric Mowat <mowat@arista.com>
Signed-off-by: Ivan Delalande <colona@arista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
include/uapi/linux/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_ipv4.c
net/ipv6/tcp_ipv6.c