what is the reason doing ioctl for flush

Tokuhisa Inagaki <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi all,

I met strange Phenomenon on Solaris10 box running
snmpd(5.4.1) when netstat command is executed.

ex)

# netstat -an -P tcp
TCP: IPv4
 Local Address    Remote Address   Swind Send-Q Rwind Recv-Q        State
---------------- ----------------- ----- ------ ----- ------     -----------
154.4.0.0.*      2.0.0.0.16777343      0   4998     0      0
UnknownState(49152)
24.2.0.0.-3      129.0.0.0.2842    16777343      0     0   5999 ESTABLISHED
      *.49152    47.13.0.0.536      2965      0     0      0    ESTABLISHED
      *.*              *.*          1220  45776  3215      0    ESTABLISHED
      *.*              *.*             0      0  1220  45777

I can see wrong IP address and UnknownState...

This phenomenon occur only snmpd.conf have these configuration.

-----
notificationEvent linkDownTrap LinkDown ifIndex ifDescr ifType
monitor -S -r 10 -e linkDownTrap "Generate linkDown" ifOperStatus == 2
-----

Monitor function get information from /dev/arp at getmib().
netstat command get information from /dev/arp too, I think
this phenomenon occur when snmpd and netstat touch /dev/arp
at the same time.

difference between snmpd and netstat is that

 - snmpd have ioctl for flush /dev/arp (kernel_sunos5.c)

 if (sd >= 0) ioctl(sd, I_FLUSH, FLUSHRW);

 - netstat don't have these code.

Does really snmpd need doing flush?
Any idea??


Thank

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.