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

int nla_memcmp ( const struct nlattr nla,
const void *  data,
size_t  size 
)

Compare an attribute with sized memory area

  • nla netlink attribute
  • data memory area
  • size size of memory area

Definition at line 425 of file attr.c.

References nla_data(), and nla_len().

{
      int d = nla_len(nla) - size;

      if (d == 0)
            d = memcmp(nla_data(nla), data, size);

      return d;
}


Generated by  Doxygen 1.6.0   Back to index