mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[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>
This commit is contained in:
parent
6cbb0df788
commit
32519f11d3
6 changed files with 117 additions and 105 deletions
|
@ -83,11 +83,6 @@
|
|||
#include <linux/netlink.h>
|
||||
#include <linux/tcp.h>
|
||||
|
||||
/*
|
||||
* Shall we try to damage output packets if routing dev changes?
|
||||
*/
|
||||
|
||||
int sysctl_ip_dynaddr;
|
||||
int sysctl_ip_default_ttl = IPDEFTTL;
|
||||
|
||||
/* Generate a checksum for an outgoing IP datagram. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue