From: "Ian Brown" <ianbrn@gmail.com>
To: netdev@vger.kernel.org
Subject: ipv4_devconf.arp_accept mystery
Date: Sun, 23 Dec 2007 18:00:57 +0200 [thread overview]
Message-ID: <d0383f90712230800n6e6d6b92x64eaa8dcff313915@mail.gmail.com> (raw)
Hello,
I have a question regarding unsolicited ARPs in ipv4/arp.c
As I understand, by default this feature is disabled;
How can one set this feature ?
When working with ipv4_devconf.arp_accept is 0 by default.
This is with 2.6.21 kernel.
I wanted ipv4_devconf.arp_accept to be set to 1.
I added:
net.ipv4.conf.default.arp_accept = 1
net.ipv4.conf.eth0.arp_accept = 1
in /etc/sysctl.conf
and rebooted.
I have:
cat /proc/sys/net/ipv4/conf/default/arp_accept
=> 1
cat /proc/sys/net/ipv4/conf/eth0/arp_accept
=>1
Yet ,the printk() I added shows that ipv4_devconf.arp_accept shows 0 !!
Could it be that this variable could not be set ? or is it dependent
upon other things ?
BTW, in newer kernel version we have IPV4_DEVCONF_ALL(ARP_ACCEPT)
instead. So if anybody knows how to set this macro (instead)to be 1, it will be
also fine.
Ian
next reply other threads:[~2007-12-23 16:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-23 16:00 Ian Brown [this message]
2007-12-24 12:51 ` ipv4_devconf.arp_accept mystery Herbert Xu
2007-12-24 13:46 ` Ian Brown
2007-12-25 22:08 ` Benny Amorsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d0383f90712230800n6e6d6b92x64eaa8dcff313915@mail.gmail.com \
--to=ianbrn@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox