1 Debian patch used original code for 32-bit and sizeof(struct ifreq) for 64-bit builds,
2 but the latter is exactly what Linux kernel does everywhere.
3 diff -urNad src/get_myipaddr.c trunk/src/get_myipaddr.c
4 --- src/get_myipaddr.c 2009-09-03 13:10:32.000000000 +0200
5 +++ src/get_myipaddr.c 2009-09-03 13:15:39.671451172 +0200
7 #endif /* not STRUCT_SOCKADDR_HAS_SA_LEN */
9 /* increment ptr to next interface for next time through the loop */
10 - ptr += sizeof(ifr->ifr_name) + len;
11 + ptr += sizeof(struct ifreq);
13 if (strcmp(ifname, ifr->ifr_name) != 0 ) /* is this the interface we're looking for? */