diff options
author | Louis Nyffenegger <louis.nyffenegger@gmail.com> | 2006-08-08 03:56:11 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:10 -0400 |
commit | 1a01912ae0a5666c4c24eaae2b4821711e2ad79a (patch) | |
tree | 64a3767ce51581a67b435931a3868f545bcac764 | |
parent | 0298f36a579b5bd7f10f6f6d57e5929977a865a1 (diff) |
[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.h | 4 | ||||
-rw-r--r-- | net/ipv4/ip_options.c | 1 |
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 @@ | |||
27 | /** struct ip_options - IP Options | 27 | /** struct ip_options - IP Options |
28 | * | 28 | * |
29 | * @faddr - Saved first hop address | 29 | * @faddr - Saved first hop address |
30 | * @is_setbyuser - Set by setsockopt? | ||
31 | * @is_data - Options in __data, rather than skb | 30 | * @is_data - Options in __data, rather than skb |
32 | * @is_strictroute - Strict source route | 31 | * @is_strictroute - Strict source route |
33 | * @srr_is_hit - Packet destination addr was our one | 32 | * @srr_is_hit - Packet destination addr was our one |
@@ -42,8 +41,7 @@ struct ip_options { | |||
42 | unsigned char srr; | 41 | unsigned char srr; |
43 | unsigned char rr; | 42 | unsigned char rr; |
44 | unsigned char ts; | 43 | unsigned char ts; |
45 | unsigned char is_setbyuser:1, | 44 | unsigned char is_data:1, |
46 | is_data:1, | ||
47 | is_strictroute:1, | 45 | is_strictroute:1, |
48 | srr_is_hit:1, | 46 | srr_is_hit:1, |
49 | is_changed:1, | 47 | 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, | |||
525 | opt->__data[optlen++] = IPOPT_END; | 525 | opt->__data[optlen++] = IPOPT_END; |
526 | opt->optlen = optlen; | 526 | opt->optlen = optlen; |
527 | opt->is_data = 1; | 527 | opt->is_data = 1; |
528 | opt->is_setbyuser = 1; | ||
529 | if (optlen && ip_options_compile(opt, NULL)) { | 528 | if (optlen && ip_options_compile(opt, NULL)) { |
530 | kfree(opt); | 529 | kfree(opt); |
531 | return -EINVAL; | 530 | return -EINVAL; |