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

int nla_attr_size ( int  payload  ) 

Return size of attribute whithout padding.

  • payload Payload length of attribute.
    <-------- nla_attr_size(payload) --------->
   +------------------+- - -+- - - - - - - - - +- - -+
   | Attribute Header | Pad |     Payload      | Pad |
   +------------------+- - -+- - - - - - - - - +- - -+

Returns:
Size of attribute in bytes without padding.

Definition at line 395 of file attr.c.

Referenced by nla_padlen(), nla_reserve(), and nla_total_size().

{
      return NLA_HDRLEN + payload;
}


Generated by  Doxygen 1.6.0   Back to index