Identifying the owner of an IP address
From: Rennie deGraaf (ca.ucalgary.cpsc_at_degraaf)
Date: 11/27/04
- Next message: David Schwartz: "Re: Identifying the owner of an IP address"
- Previous message: Wojtek: "curses"
- Next in thread: David Schwartz: "Re: Identifying the owner of an IP address"
- Reply: David Schwartz: "Re: Identifying the owner of an IP address"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 27 Nov 2004 18:54:44 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
~From within a C program, what is the best way to determine if a
particular IP address belongs to the host the program is running on? The
host may be a router, so it can have an arbitrary number of interfaces
and IP addresses, and it might not use DNS. The program runs as root,
so I can use weird low-level kernel interfaces if necessary.
If possible, I need this to work on both Linux 2.4 and Linux 2.6, but
other systems aren't as important at the momment.
Rennie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBqM1zIvU5mZP08HERAl7bAKDOA2wng0tu886sXUokZuv5qP8WSQCaA5ri
8KpQHqFR9ESlDR/f5bEmGEk=
=sA3W
-----END PGP SIGNATURE-----
- Next message: David Schwartz: "Re: Identifying the owner of an IP address"
- Previous message: Wojtek: "curses"
- Next in thread: David Schwartz: "Re: Identifying the owner of an IP address"
- Reply: David Schwartz: "Re: Identifying the owner of an IP address"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|