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

int nla_total_size ( int  payload  ) 

Return size of attribute including padding.

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

Returns:
Size of attribute in bytes.

Definition at line 413 of file attr.c.

References nla_attr_size().

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

{
      return NLA_ALIGN(nla_attr_size(payload));
}


Generated by  Doxygen 1.6.0   Back to index