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

int rtnl_u32_add_key_uint32 ( struct rtnl_cls *  cls,
uint32_t  val,
uint32_t  mask,
int  off,
int  offmask 

Append new selector key to match a 32-bit number

  • cls classifier to be modified
  • val value to be matched (host byte-order)
  • mask mask to be applied before matching (host byte-order)
  • off offset, in bytes, to start matching
  • offmask offset mask

Definition at line 542 of file u32.c.

References rtnl_u32_add_key().

      return rtnl_u32_add_key(cls, htonl(val), htonl(mask),
                        off & ~3, offmask);

Generated by  Doxygen 1.6.0   Back to index