diff options
| author | YOSHIFUJI Hideaki <[email protected]> | 2006-11-15 03:07:45 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2006-12-03 05:22:39 +0000 |
| commit | cfb6eeb4c860592edd123fdea908d23c6ad1c7dc (patch) | |
| tree | 361c073622faa540ef6602ef1b0a6e8c0a17fc60 /net/ipv4/tcp_input.c | |
| parent | netpoll header cleanup (diff) | |
| download | kernel-cfb6eeb4c860592edd123fdea908d23c6ad1c7dc.tar.gz kernel-cfb6eeb4c860592edd123fdea908d23c6ad1c7dc.zip | |
[TCP]: MD5 Signature Option (RFC2385) support.
Based on implementation by Rick Payne.
Signed-off-by: YOSHIFUJI Hideaki <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_input.c')
| -rw-r--r-- | net/ipv4/tcp_input.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 4a8c96cdec7d..6ab3423674bb 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -2677,6 +2677,14 @@ void tcp_parse_options(struct sk_buff *skb, struct tcp_options_received *opt_rx, opt_rx->sack_ok) { TCP_SKB_CB(skb)->sacked = (ptr - 2) - (unsigned char *)th; } +#ifdef CONFIG_TCP_MD5SIG + case TCPOPT_MD5SIG: + /* + * The MD5 Hash has already been + * checked (see tcp_v{4,6}_do_rcv()). + */ + break; +#endif }; ptr+=opsize-2; length-=opsize; |
