Universal 32-bit Classifier
[Classifier Modules]


Function Documentation

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

Parameters:
cls classifier to be modifier
val value to be matched (network byte-order)
mask mask to be applied before matching (network byte-order)
off offset, in bytes, to start matching
offmask offset mask
General selectors define the pattern, mask and offset the pattern will be matched to the packet contents. Using the general selectors you can match virtually any single bit in the IP (or upper layer) header.

Definition at line 470 of file u32.c.

References nl_data_append().

Referenced by rtnl_u32_add_key_uint16(), and rtnl_u32_add_key_uint32().

int rtnl_u32_add_key_uint16 ( struct rtnl_cls *  cls,
uint16_t  val,
uint16_t  mask,
int  off,
int  offmask 
)

Parameters:
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 521 of file u32.c.

References rtnl_u32_add_key().

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

Parameters:
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().


Generated on Thu May 28 01:01:27 2009 for libnl by  doxygen 1.5.7.1