blob: 94e984c73c6ed5ff81913d3699a3b5caea6b94bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include_next <ifreq.h>
static inline struct ifreq *
__if_nextreq (struct ifreq *ifr)
{
#ifdef _HAVE_SA_LEN
if (ifr->ifr_addr.sa_len > sizeof ifr->ifr_addr)
return (struct ifreq *) ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len);
#endif
return ifr + 1;
}
extern void __ifreq (struct ifreq **ifreqs, int *num_ifs, int sockfd)
attribute_hidden;
|