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

int nla_padlen ( int  payload  ) 

Return length of padding at the tail of the attribute.

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

Returns:
Length of padding in bytes.

Definition at line 431 of file attr.c.

References nla_attr_size(), and nla_total_size().

Referenced by nla_reserve().

{
      return nla_total_size(payload) - nla_attr_size(payload);
}


Generated by  Doxygen 1.6.0   Back to index