]>
Commit | Line | Data |
---|---|---|
ade5218c JB |
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. | |
0d9e0091 JR |
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 | |
ade5218c | 6 | @@ -118,7 +118,7 @@ |
0d9e0091 JR |
7 | #endif /* not STRUCT_SOCKADDR_HAS_SA_LEN */ |
8 | ||
9 | /* increment ptr to next interface for next time through the loop */ | |
ade5218c JB |
10 | - ptr += sizeof(ifr->ifr_name) + len; |
11 | + ptr += sizeof(struct ifreq); | |
0d9e0091 JR |
12 | |
13 | if (strcmp(ifname, ifr->ifr_name) != 0 ) /* is this the interface we're looking for? */ | |
14 | continue; |