From b97edd05b13641f6f723db0e90c706d8291e5e6d Mon Sep 17 00:00:00 2001 From: Hideaki Yoshifuji Date: Sun, 26 Oct 2003 07:58:17 -0800 Subject: [IPV4,6]: Use common storage for cork'd flow, needed to handle mapped-ipv4 ipv6 addresses properly. --- include/linux/ip.h | 2 ++ include/linux/ipv6.h | 2 -- include/linux/udp.h | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/linux/ip.h b/include/linux/ip.h index ac117b884331..1adc75a76926 100644 --- a/include/linux/ip.h +++ b/include/linux/ip.h @@ -83,6 +83,7 @@ #include #include #include +#include struct ip_options { __u32 faddr; /* Saved first hop address */ @@ -141,6 +142,7 @@ struct inet_opt { struct rtable *rt; int length; /* Total length of all frames */ u32 addr; + struct flowi fl; } cork; }; diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index cabbeb633fde..da2e64899c95 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -174,7 +174,6 @@ enum { #include /* struct ipv6_mc_socklist */ #include #include -#include /* This structure contains results of exthdrs parsing @@ -235,7 +234,6 @@ struct ipv6_pinfo { struct { struct ipv6_txoptions *opt; struct rt6_info *rt; - struct flowi fl; int hop_limit; } cork; }; diff --git a/include/linux/udp.h b/include/linux/udp.h index 5269673e007d..492b258c76c8 100644 --- a/include/linux/udp.h +++ b/include/linux/udp.h @@ -44,13 +44,9 @@ struct udp_opt { unsigned int corkflag; /* Cork is required */ __u16 encap_type; /* Is this an Encapsulation socket? */ /* - * Following members retains the infomation to create a UDP header + * Following member retains the infomation to create a UDP header * when the socket is uncorked. */ - u32 saddr; /* source address */ - u32 daddr; /* destination address */ - __u16 sport; /* source port */ - __u16 dport; /* destination port */ __u16 len; /* total length of pending frames */ }; -- cgit v1.2.3