aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2005-09-08 10:19:03 +0900
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2005-09-08 10:19:03 +0900
commit41a1f8ea4fbfcdc4232f023732584aae2220de31 (patch)
tree9939686b354ced0b22d81efcbc12f5ed90372b09 /include/linux
parent[IPV6]: Support several new sockopt / ancillary data in Advanced API (RFC3542). (diff)
downloadlinux-dev-41a1f8ea4fbfcdc4232f023732584aae2220de31.tar.xz
linux-dev-41a1f8ea4fbfcdc4232f023732584aae2220de31.zip
[IPV6]: Support IPV6_{RECV,}TCLASS socket options / ancillary data.
Based on patch from David L Stevens <dlstevens@us.ibm.com> Signed-off-by: David L Stevens <dlstevens@us.ibm.com> Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/in6.h2
-rw-r--r--include/linux/ipv6.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/in6.h b/include/linux/in6.h
index c11022f2f2ac..bd32b79d6295 100644
--- a/include/linux/in6.h
+++ b/include/linux/in6.h
@@ -219,9 +219,7 @@ struct in6_flowlabel_req
#define IPV6_DSTOPTS 63
#define IPV6_RECVHOPLIMIT 64
#define IPV6_HOPLIMIT 65
-#if 0
#define IPV6_RECVTCLASS 66
#define IPV6_TCLASS 67
-#endif
#endif
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index 2581f1c94df5..6c5f7b39a4b0 100644
--- a/include/linux/ipv6.h
+++ b/include/linux/ipv6.h
@@ -245,7 +245,8 @@ struct ipv6_pinfo {
ohopopts:1,
dstopts:1,
odstopts:1,
- rxflow:1;
+ rxflow:1,
+ rxtclass:1;
} bits;
__u16 all;
} rxopt;
@@ -256,6 +257,7 @@ struct ipv6_pinfo {
sndflow:1,
pmtudisc:2,
ipv6only:1;
+ __u8 tclass;
__u32 dst_cookie;
@@ -269,6 +271,7 @@ struct ipv6_pinfo {
struct ipv6_txoptions *opt;
struct rt6_info *rt;
int hop_limit;
+ int tclass;
} cork;
};