lkml.org 
[lkml]   [2010]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [46/74] net: restore ip source validation
From
Date
On Fri, 2010-02-05 at 15:34 +0100, Randolf Pohl wrote:
> [...]
>
> > --- a/include/linux/sysctl.h
> > +++ b/include/linux/sysctl.h
> > @@ -490,6 +490,7 @@ enum
> > NET_IPV4_CONF_PROMOTE_SECONDARIES=20,
> > NET_IPV4_CONF_ARP_ACCEPT=21,
> > NET_IPV4_CONF_ARP_NOTIFY=22,
> > + NET_IPV4_CONF_SRC_VMARK=24,
> > __NET_IPV4_CONF_MAX
> > };
> >
>
> Must these be contiguous, i.e. 23?

The problem is elsewhere. Here's the fix.

--
diff --git a/kernel/sysctl_check.c b/kernel/sysctl_check.c
index b6e7aae..469193c 100644
--- a/kernel/sysctl_check.c
+++ b/kernel/sysctl_check.c
@@ -220,6 +220,7 @@ static const struct trans_ctl_table
trans_net_ipv4_conf_vars_table[] = {
{ NET_IPV4_CONF_PROMOTE_SECONDARIES, "promote_secondaries" },
{ NET_IPV4_CONF_ARP_ACCEPT, "arp_accept" },
{ NET_IPV4_CONF_ARP_NOTIFY, "arp_notify" },
+ { NET_IPV4_CONF_SRC_VMARK, "src_valid_mark" },
{}
};
---
cheers,
jamal




\
 
 \ /
  Last update: 2010-02-05 15:55    [W:0.077 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site