Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: linux-ipsec: canonical name of a machine

From: Henry Spencer <henry(at)spsystems.net>
Date: Tue Nov 03 1998 - 15:53:59 EST


> ...Is there some resolver function that will identify

Unfortunately, there is no such thing as "the" canonical address of a machine. Addresses belong to interfaces, not machines; a machine with multiple interfaces has multiple addresses, period.

To test whether an address belongs to the machine, you need to use something like the SIOCGIFCONF ioctl, or the output of "ifconfig", which gets you a list of the machine's interfaces. (There really ought to be a /proc file for this, but I don't see one...)

                                                          Henry Spencer
                                                       henry@spsystems.net
                                                     (henry@zoo.toronto.edu)
Received on Tue Nov 3 16:34:39 1998

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:04 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library