Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

int nl_addr_guess_family ( struct nl_addr *  addr  ) 

Guess address family of an abstract address object based on address size.

  • addr Abstract address object.
    Address family or AF_UNSPEC if guessing wasn't successful.

Definition at line 601 of file addr.c.

      switch (addr->a_len) {
            case 4:
                  return AF_INET;
            case 6:
                  return AF_LLC;
            case 16:
                  return AF_INET6;
                  return AF_UNSPEC;

Generated by  Doxygen 1.6.0   Back to index