[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dhcpy6d - a MAC address aware DHCPv6 server

Hi Owen,
> |ioctl(sock, SIOCGIFADDR, &ifr)|
> Shouldn't that do the trick? I don't know if Python can do that or not, but if it can't, that's pretty weak.
As far as I was able to find out this only gives back the local MAC
address which is of no use here.

To be independent of external call I at least for Linux managed to
access neighbor cache via netlink socket as the "ip" command itself
does. Thus no external call is necessary anymore.


Henri Wahl

IT Department
Leibniz-Institut f?r Festk?rper- u.
Werkstoffforschung Dresden

tel. (03 51) 46 59 - 797
email: h.wahl at ifw-dresden.de


IFW Dresden e.V., Helmholtzstra?e 20, D-01069 Dresden
VR Dresden Nr. 1369
Vorstand: Prof. Dr. Ludwig Schultz, Dr. h.c. Dipl.-Finw. Rolf Pfrengle

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4719 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://mailman.nanog.org/pipermail/nanog/attachments/20121113/ac3ced35/attachment.bin>