Back to index

glibc  2.9
Functions
ifaddrs.h File Reference
#include <inet/ifaddrs.h>
#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Functions

 libc_hidden_proto (getifaddrs) libc_hidden_proto(freeifaddrs) struct in6addrinfo
void __check_pf (bool *seen_ipv4, bool *seen_ipv6, struct in6addrinfo **in6ai, size_t *in6ailen) attribute_hidden
void __check_native (uint32_t a1_index, int *a1_native, uint32_t a2_index, int *a2_native) attribute_hidden

Function Documentation

void __check_native ( uint32_t  a1_index,
int a1_native,
uint32_t  a2_index,
int a2_native 
)

Definition at line 24 of file tst-rfc3484-2.c.

{
}

Here is the call graph for this function:

Here is the caller graph for this function:

void __check_pf ( bool *  seen_ipv4,
bool *  seen_ipv6,
struct in6addrinfo **  in6ai,
size_t in6ailen 
)

Definition at line 26 of file check_pf.c.

{
  /* By default we have no way to determine information about
     deprecated and temporary addresses.  */
  *in6ai = NULL;
  *in6ailen = 0;

  /* Get the interface list via getifaddrs.  */
  struct ifaddrs *ifa = NULL;
  if (getifaddrs (&ifa) != 0)
    {
      /* We cannot determine what interfaces are available.  Be
        pessimistic.  */
      *seen_ipv4 = true;
      *seen_ipv6 = true;
      return;
    }

  *seen_ipv4 = false;
  *seen_ipv6 = false;

  struct ifaddrs *runp;
  for (runp = ifa; runp != NULL; runp = runp->ifa_next)
    if (runp->ifa_addr->sa_family == PF_INET)
      *seen_ipv4 = true;
    else if (runp->ifa_addr->sa_family == PF_INET6)
      *seen_ipv6 = true;

  (void) freeifaddrs (ifa);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 6 of file ifaddrs.h.

{
  enum {
    in6ai_deprecated = 1,
    in6ai_homeaddress = 2
  } flags:8;
  uint8_t prefixlen;
  uint16_t :16;
  uint32_t index;
  uint32_t addr[4];
};

Here is the call graph for this function: