pydhcplib icon indicating copy to clipboard operation
pydhcplib copied to clipboard

wrong structure size for SIOCGIFCONF

Open emdete opened this issue 6 years ago • 0 comments

getInterfaceList in pydhcplib/interface.py:89 uses a size of 32 for sizeof(struct ifreq) which is for my system 40 (as defined in linux/if.h).

more such hardcoded offsets and sizes exists in the module, maybe it would be good to move to a more reliable aproach like cython?

emdete avatar Nov 09 '18 10:11 emdete