Sponsored Content
Top Forums UNIX for Advanced & Expert Users C program to detect duplicate ip address if any after assigning ip address to ethernet interface Post 302952422 by Gopi Krishna P on Tuesday 18th of August 2015 11:27:26 PM
Old 08-19-2015
thanks corona , but that looks like a linux command .. is there a c library function for the same functionality
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ethernet Address?

How do I find my ethernet address (HostID) under OS X in the terminal? (2 Replies)
Discussion started by: Dimyas
2 Replies

2. Windows & DOS: Issues & Discussions

DCHP server assigning a wrong Address

Pls could you help me diagnose my problem. I have a system which is a DHCP server and also the Remote Access Server. The DHCP server allocate normal address within the scope range to the LAN system. why it allocates abitrary number such as 169.254.217.90 255.255.0.0 class B address to the remote... (1 Reply)
Discussion started by: kayode
1 Replies

3. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

4. Shell Programming and Scripting

how to detect ip address based location using PHP

I am interested in finding out if there is a reliable and economical way for extracting user's location based on his ip address, using php I tried to get the job done using ip2location.com, but I am not happy how it deals with result inconsistently. (2 Replies)
Discussion started by: siftin-com
2 Replies

5. UNIX for Advanced & Expert Users

detect mac address modication in linux

Hi, How Detect the mac address modification of a machine...in linux Thanks (1 Reply)
Discussion started by: shivarajM
1 Replies

6. Solaris

No value in Ethernet address and Host ID at Ok prompt

Hi All, In Ultra 10 at time system is not displaying value for Ethernet address and Host ID. Also, when i am trying to change the value of environment variables i am getting below message and value is not changing Thanks (4 Replies)
Discussion started by: kumarmani
4 Replies

7. UNIX for Dummies Questions & Answers

Static IP address works on Ethernet but not Wireless

Hi all, I have literally spent all day trying dozens of different combinations, re-installs and tweaks to try and resolve this problem. I would be EXTREMELY grateful if anyone can help/point me in the right direction. I am using OpenBSD 4.6 and am trying to connect to my wireless network with... (1 Reply)
Discussion started by: wcontm
1 Replies

8. Solaris

Get ethernet address

Hi, How do I get ethernet (mac) address of all the interfaces (including the unplumbed interfaces) ? I do not want to use ifconfig -a plumb and unplumb. Looking for some other ways. Even c program will help. I am looking for S9 as well as S10. So dladm also wont work as it is only for S10 ... (2 Replies)
Discussion started by: patjones
2 Replies

9. UNIX for Dummies Questions & Answers

How to detect ip address from last reboot done?

Hi How would i detect the ip address from where the reboot command been given to linux host. My linux host details are as below. # lsb_release -a LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: EnterpriseEnterpriseServer Description: ... (1 Reply)
Discussion started by: pinga123
1 Replies

10. Solaris

How to set gateway address to a particular interface?

How to set gateway address to a particular interface? waht are the files need to update to make it permanent? (2 Replies)
Discussion started by: Naveen.6025
2 Replies
NDPMON(8)						      System Manager's Manual							 NDPMON(8)

NAME
ndpmon - Neighbor Discovery Protocol Monitor SYNOPSIS
ndpmon [ -i interfacename ] [ -f configfile ] [ -d dtd_file ] [ -F filter ] [ -n number ] [ -L ] [ -v ] [ -h ] [ -d dtd_file ] [ -g neighbor_file ] DESCRIPTION
NDPMon is a monitoring software for ipv6 Neighbor Discovery. It syslogs activity and reports by email malicious ND message. NDPMon uses libpcap to listen for icmp6 packets and libxml2 to use configuration and neighbor cache files. The -i flag is used to change the default interface eth0. The -f flag is used to change the path of the configuration file. The default is /etc/ndpmon/config_ndpmon.xml The -e flag is used to change the path to the DTD file for the configuration file. The default is /etc/ndpmon/config_ndpmon.dtd The -n flag uses libpcap to specify a limited number of packet to capture. The -F flag allows one to change the default icmp6 filter. The -L flag is used to disable syslog and mail reports. This is used to do a learning phase and constitue the neighbor cache. The -v is used to enable the DEBUG mode. The -d flag is used to change the path to the DTD file for the neighbor cache. The default is /var/lib/ndpmon/neighbor_list.dtd The -g flag is used to change the path to the neighbor cache. The default is /var/lib/ndpmon/neighbor_list.xml Note that an empty neighbor_cache.xml file must be created before the first time you run ndpmon. NDPMon must be run with root rights to work. REPORT MESSAGES
Here's the list of the report messages generated by ndpmon: wrong couple MAC/IP Separately, the MAC and IP addresses are valid, but not as a couple. wrong router mac The ethernet address of the RA message is not specified in the configuration file. wrong router ip The ip address of the RA message is not specified in the configuration file. wrong prefix The prefix announced in the RA message is not specified in the configuration file. wrong router redirect The RD message does'nt come from a router specified in the configuration file. NA router flag The NA specifies a router but isn't one according to the configuration file. DAD DOS The NA answer to NS to avoid it to get an ip address. changed ethernet address The host switched to a new ethernet address. flip flop The ethernet address has changed from the most recently seen address to the second most recently seen address. reused old ethernet address The ethernet address has changed from the most recently seen address to the third (or greater) least recently seen address. SYSLOG MESSAGES
Here are some of the syslog messages; note that messages that are reported are also sysloged. new activity This ethernet/ip6 address pair has been announced for last time two months or more. new station The ethernet address has not been seen before on the link. ethernet broadcast The mac ethernet address of the host is a broadcast address. ip broadcast The ip address of the host is a broadcast address. bogon The source ip address is not local to the local subnet. ethernet mismatch The source mac ethernet address didn't match the address announced in option of the ND message. FILES
config_ndpmon.xml - contains settings which must be fill by the administrator neighbor_list.xml - neighbor cache: all neighbors known to be on the link SEE ALSO
arpwatch(8) ipv6(7), pcap(3), libxml(3). AUTHOR
Thibault Cholez and Frederic Beck for MADYNES Project, Loria, Fr. BUGS
Please send bug reports to frederic.beck@loria.fr or thibault.cholez@esial.uhp-nancy.fr November 2006 NDPMON(8)
All times are GMT -4. The time now is 01:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy