From: Vividh Siddha <vividh@ipinfusion.com>
To: "David S. Miller" <davem@redhat.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: Interface address change netlink socket problem.(Patch attached)
Date: Wed, 09 Oct 2002 15:33:09 -0700 [thread overview]
Message-ID: <3DA4AEA5.8090105@ipinfusion.com> (raw)
In-Reply-To: 20021009.150818.102229501.davem@redhat.com
When you give
ifconfig eth0 10.10.10.50 netmask 0xffffff00 broadcast 10.10.10.255
It first calls devinet_ioctl() with cmd as SIOCSIFADDR. In this we reset
netmask and broadcast address.
When devinet_ioctl() is called with SIOCSIFBRDADDR, the check for old
address and new address suceeds as we changed the broadcast
address(whereas it is unchanged). This then calls inet_del_ifa(delete
notification) and then inet_insert_ifa(add notification).
Similarly when devinet_ioctl() is called with SIOCSIFNETMASK.
I tested this with the netlink socket with the patch applied and it
works as expected.
Thanks,
vividh
David S. Miller wrote:
> Can you explain how not initializing some fields of the 'ifa'
> prevents the extra netlink messages? I don't understand how
> your patch works.
>
>
next prev parent reply other threads:[~2002-10-09 22:30 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-09 21:46 PROBLEM: Interface address change netlink socket problem.(Patch attached) Vividh Siddha
2002-10-09 22:08 ` David S. Miller
2002-10-09 22:33 ` Vividh Siddha [this message]
2002-10-09 22:40 ` David S. Miller
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=3DA4AEA5.8090105@ipinfusion.com \
--to=vividh@ipinfusion.com \
--cc=davem@redhat.com \
--cc=linux-kernel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.