Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - duplicat IP Address: (2 Items)
   
duplicat IP Address  
Hello

I know that there is "duplicat IP Address..." information show in sloginfo when my PC's IP address conflict with others.
 
However, does anybody know what QNX API could provide this facility for our program to detect this situation? 

Because I have many io-net. example: /dev/io-net/en0 (192.168.0.1) 、/dev/io-net2/en0 (192.168.0.1) 
How do I point to the "/dev/io-nt2/eno" ? And what do QNX API?

Thanks for your time.


seanb say :

There is a stat logged: 

# netstat -p arp | grep duplicate 

You could do the equivalent of what netstat does. 




Best Regards
Formosa Plastics Corp.Electronic Group

Ching Hsun Kuo 郭憬勳

TEL     : (07)3711411 EXT 6470 
FAX     : (07)372-7026
E-MAIL: robby0524@fpc.com.tw

100,SueiGuan Road,Jen-Wu Hsiang,Kaohsiung,Taiwan

814高雄縣仁武鄉水管路100號

Re: duplicat IP Address  
On Mon, Aug 31, 2009 at 01:14:39AM -0400, kaku xing wrote:
> Hello
> 
> I know that there is "duplicat IP Address..." information show in sloginfo when my PC's IP address conflict with 
others. 
> However, does anybody know what QNX API could provide this facility for our program to detect this situation? 
> 
> Because I have many io-net. example: /dev/io-net/en0 (192.168.0.1) ???/dev/io-net2/en0 (192.168.0.1) 
> How do I point to the "/dev/io-nt2/eno" ? And what do QNX API?
> 
> Thanks for your time.
> 
> 
> seanb say :
> 
> There is a stat logged: 
> 
> # netstat -p arp | grep duplicate 
> 
> You could do the equivalent of what netstat does. 

netstat honours the SOCK envirinmental variable.  /dev/io-net*
doesn't come into play here.  Check out the 'prefix' argument
to the stack:

# io-pkt -ptcpip
# netstat -parp | grep duplicate

vs

# io-pkt -ptcpip prefix=/alt
# SOCK=/alt netstat -parp | grep duplicate

The source to netstat is in the networking project on foundry27

-seanb