netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* netlink sockets and rtm_newlink messages
@ 2002-09-26 22:38 Patrick R. McManus
  2002-09-27 13:48 ` Patrick R. McManus
  0 siblings, 1 reply; 6+ messages in thread
From: Patrick R. McManus @ 2002-09-26 22:38 UTC (permalink / raw)
  To: netdev

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-09-30 15:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-26 22:38 netlink sockets and rtm_newlink messages Patrick R. McManus
2002-09-27 13:48 ` Patrick R. McManus
2002-09-27 14:36   ` jamal
2002-09-27 15:55   ` kuznet
2002-09-29 15:09     ` jamal
2002-09-30 15:43       ` kuznet

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).