From: "Patrick R. McManus" <mcmanus@ducksong.com>
To: netdev@oss.sgi.com
Subject: Re: netlink sockets and rtm_newlink messages
Date: Fri, 27 Sep 2002 09:48:06 -0400 [thread overview]
Message-ID: <20020927134806.GA12745@ducksong.com> (raw)
In-Reply-To: <20020926223853.GA4062@ducksong.com>
for the sake of google, I'll followup to my own query. Sanity checks
are appreciated too.
the messages weren't identical - ifi_change had IFF_RUNNING set in one
message and not the other. the man page says "ifi_change is reserved
for future use" so I didn't know what to make of it before digging
into the kernel src (2.4.19).
-Pat
[pat atducksong: Sep 26 18:38]
> hello -
>
> I've got a little userspace app that listens to a netlink socket and
> filters for messages of type RTM_NEWLINK to check for interfaces going
> up or down (checking ifi_flags to make that determination)..
>
> the only stumbling point is that I each time I do something like
> "ifconfig eth4 down" my app reads 2 identical RTM_NEWLINK messages
> instead of one (same behavior on up case too.)
>
> any thoughts on why? I didn't really know how to interpret sockaddr
> nl.nl_groups.. 1 seems to give me the same duplicates as ~0.. 0 gives me nothing.
>
>
> -Pat
>
next prev parent reply other threads:[~2002-09-27 13:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-26 22:38 netlink sockets and rtm_newlink messages Patrick R. McManus
2002-09-27 13:48 ` Patrick R. McManus [this message]
2002-09-27 14:36 ` jamal
2002-09-27 15:55 ` kuznet
2002-09-29 15:09 ` jamal
2002-09-30 15:43 ` kuznet
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=20020927134806.GA12745@ducksong.com \
--to=mcmanus@ducksong.com \
--cc=netdev@oss.sgi.com \
/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;
as well as URLs for NNTP newsgroup(s).