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

int nl_addr_iszero ( struct nl_addr *  addr  ) 

Returns true if the address consists of all zeros

  • addr Address to look at.

Definition at line 549 of file addr.c.

{
      int i;

      for (i = 0; i < addr->a_len; i++)
            if (addr->a_addr[i])
                  return 0;

      return 1;
}


Generated by  Doxygen 1.6.0   Back to index