[INET]: Introduce inet_sk_rebuild_header
From tcp_v4_rebuild_header, that already was pretty generic, I only needed to use sk->sk_protocol instead of the hardcoded IPPROTO_TCP and establish the requirement that INET transport layer protocols that want to use this function map TCP_SYN_SENT to its equivalent state. Signed-off-by:Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/linux/ip.h 2 additions, 0 deletionsinclude/linux/ip.h
- include/net/tcp.h 0 additions, 2 deletionsinclude/net/tcp.h
- net/ipv4/af_inet.c 113 additions, 0 deletionsnet/ipv4/af_inet.c
- net/ipv4/ip_output.c 0 additions, 5 deletionsnet/ipv4/ip_output.c
- net/ipv4/tcp_ipv4.c 1 addition, 97 deletionsnet/ipv4/tcp_ipv4.c
- net/ipv6/tcp_ipv6.c 1 addition, 1 deletionnet/ipv6/tcp_ipv6.c
Loading
Please register or sign in to comment