On  6/05/10 12:22 AM, Peter Memishian wrote:
I looked at the documentation for 2009/232 but didn't see the answer to a
couple of semantic issues:

   * Does the SIOCGIFHWADDR fail if the given interface is not plumbed
     for the requested address family?

For PF_PACKET, the interface must be known to GLD, so it doesn't need to be plumbed, as such. For PF_INET and PF_INET6, yes, the interface must at least be plumb'd.

   * Does the SIOCGIFHWADDR fail if the given interface does not have
     a hardware address (e.g., IFF_LOOPBACK/IFF_IPMP interfaces)?

It will fail but for different reasons. For PF_PACKET, loopback and IPMP interface names are unknown to GLD, whereas at IP, the interface is not a hardware interface so there is no information to return.

Darren

_______________________________________________
opensolaris-arc mailing list
[email protected]

Reply via email to