summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Nyffenegger <louis.nyffenegger@gmail.com>2006-08-08 00:56:11 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 14:54:10 -0700
commit1a01912ae0a5666c4c24eaae2b4821711e2ad79a (patch)
tree64a3767ce51581a67b435931a3868f545bcac764
parent0298f36a579b5bd7f10f6f6d57e5929977a865a1 (diff)
downloadblackbird-op-linux-1a01912ae0a5666c4c24eaae2b4821711e2ad79a.tar.gz
blackbird-op-linux-1a01912ae0a5666c4c24eaae2b4821711e2ad79a.zip
[INET]: Remove is_setbyuser patch
The value is_setbyuser from struct ip_options is never used and set only one time (http://linux-net.osdl.org/index.php/TODO#IPV4). This little patch removes it from the kernel source. Signed-off-by: Louis Nyffenegger <louis.nyffenegger@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/inet_sock.h4
-rw-r--r--net/ipv4/ip_options.c1
2 files changed, 1 insertions, 4 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h
index f4caad56cd03..f6242710f2ff 100644
--- a/include/net/inet_sock.h
+++ b/include/net/inet_sock.h
@@ -27,7 +27,6 @@
/** struct ip_options - IP Options
*
* @faddr - Saved first hop address
- * @is_setbyuser - Set by setsockopt?
* @is_data - Options in __data, rather than skb
* @is_strictroute - Strict source route
* @srr_is_hit - Packet destination addr was our one
@@ -42,8 +41,7 @@ struct ip_options {
unsigned char srr;
unsigned char rr;
unsigned char ts;
- unsigned char is_setbyuser:1,
- is_data:1,
+ unsigned char is_data:1,
is_strictroute:1,
srr_is_hit:1,
is_changed:1,
diff --git a/net/ipv4/ip_options.c b/net/ipv4/ip_options.c
index e0a93b4fa8cc..e7437c091326 100644
--- a/net/ipv4/ip_options.c
+++ b/net/ipv4/ip_options.c
@@ -525,7 +525,6 @@ static int ip_options_get_finish(struct ip_options **optp,
opt->__data[optlen++] = IPOPT_END;
opt->optlen = optlen;
opt->is_data = 1;
- opt->is_setbyuser = 1;
if (optlen && ip_options_compile(opt, NULL)) {
kfree(opt);
return -EINVAL;
OpenPOWER on IntegriCloud