LQL Reference Manual |
---|
LQLClassifierU32 — LQLClassifierU32 models the U32 classifier.
struct LQLClassifierU32; guint32 lql_classifier_u32_get_hash (LQLClassifierU32 *self); gboolean lql_classifier_u32_set_hash (LQLClassifierU32 *self, guint32 hash); guint32 lql_classifier_u32_get_link (LQLClassifierU32 *self); gboolean lql_classifier_u32_set_link (LQLClassifierU32 *self, guint32 link); guint32 lql_classifier_u32_get_divisor (LQLClassifierU32 *self); gboolean lql_classifier_u32_set_divisor (LQLClassifierU32 *self, guint32 divisor); guint32 lql_classifier_u32_get_hashMask (LQLClassifierU32 *self); gboolean lql_classifier_u32_set_hashMask (LQLClassifierU32 *self, guint32 hashMask); guint32 lql_classifier_u32_get_hashOffset (LQLClassifierU32 *self); gboolean lql_classifier_u32_set_hashOffset (LQLClassifierU32 *self, guint32 hashOffset); gboolean lql_classifier_u32_set_id (LQLClassifierU32 *self, guint16 id); guint16 lql_classifier_u32_get_id (LQLClassifierU32 *self); gboolean lql_classifier_u32_set_hashHandle (LQLClassifierU32 *self, guint16 hashHandle); guint16 lql_classifier_u32_get_hashHandle (LQLClassifierU32 *self); gboolean lql_classifier_u32_set_hashNode (LQLClassifierU32 *self, guint16 hashNode); guint16 lql_classifier_u32_get_hashNode (LQLClassifierU32 *self); gboolean lql_classifier_u32_add_match (LQLClassifierU32 *self, LQLU32Match *sel); gboolean lql_classifier_u32_add_match_ip_dst (LQLClassifierU32 *self, const gchar *ip); LQLU32Match* lql_classifier_u32_get_match (LQLClassifierU32 *self, int position); int lql_classifier_u32_get_match_len (LQLClassifierU32 *self); LQLClassifierU32* lql_classifier_u32_new (void);
"divisor" guint : Read / Write "hash" guint : Read / Write "hash-mask" guint : Read / Write "hash-offset" guint : Read / Write "link" guint : Read / Write
LQLClassifierU32 models the U32 classifier. This is a very complex classifier. Please see LARTC for documentation and examples. This API is very preliminary and not tested thoroughly. It needs a lot of work.
guint32 lql_classifier_u32_get_hash (LQLClassifierU32 *self);
Get the hash.
self : | The LQLClassifierU32 object to work with. |
Returns : | The hash for this filter. |
gboolean lql_classifier_u32_set_hash (LQLClassifierU32 *self, guint32 hash);
Set the hash value for this classifier.
self : | The LQLClassifier object to work with. |
hash : | The hash value. |
Returns : | TRUE on success, FALSE on error. |
guint32 lql_classifier_u32_get_link (LQLClassifierU32 *self);
self : | |
Returns : |
gboolean lql_classifier_u32_set_link (LQLClassifierU32 *self, guint32 link);
self : | |
link : | |
Returns : |
guint32 lql_classifier_u32_get_divisor (LQLClassifierU32 *self);
self : | |
Returns : |
gboolean lql_classifier_u32_set_divisor (LQLClassifierU32 *self, guint32 divisor);
self : | |
divisor : | |
Returns : |
guint32 lql_classifier_u32_get_hashMask (LQLClassifierU32 *self);
self : | |
Returns : |
gboolean lql_classifier_u32_set_hashMask (LQLClassifierU32 *self, guint32 hashMask);
self : | |
hashMask : | |
Returns : |
guint32 lql_classifier_u32_get_hashOffset (LQLClassifierU32 *self);
self : | |
Returns : |
gboolean lql_classifier_u32_set_hashOffset (LQLClassifierU32 *self, guint32 hashOffset);
self : | |
hashOffset : | |
Returns : |
gboolean lql_classifier_u32_set_id (LQLClassifierU32 *self, guint16 id);
self : | |
id : | |
Returns : |
guint16 lql_classifier_u32_get_id (LQLClassifierU32 *self);
self : | |
Returns : |
gboolean lql_classifier_u32_set_hashHandle (LQLClassifierU32 *self, guint16 hashHandle);
self : | |
hashHandle : | |
Returns : |
guint16 lql_classifier_u32_get_hashHandle (LQLClassifierU32 *self);
self : | |
Returns : |
gboolean lql_classifier_u32_set_hashNode (LQLClassifierU32 *self, guint16 hashNode);
self : | |
hashNode : | |
Returns : |
guint16 lql_classifier_u32_get_hashNode (LQLClassifierU32 *self);
self : | |
Returns : |
gboolean lql_classifier_u32_add_match (LQLClassifierU32 *self, LQLU32Match *sel);
self : | |
sel : | |
Returns : |
gboolean lql_classifier_u32_add_match_ip_dst (LQLClassifierU32 *self, const gchar *ip);
self : | |
ip : | |
Returns : |
LQLU32Match* lql_classifier_u32_get_match (LQLClassifierU32 *self, int position);
self : | |
position : | |
Returns : |
int lql_classifier_u32_get_match_len (LQLClassifierU32 *self);
self : | |
Returns : |
LQLClassifierU32* lql_classifier_u32_new (void);
Build a new instance of LQLClassifierU32.
Returns : | A new LQLClassifierU32 instance. |
<< LQLClassifier | LQLClassifierFwmark >> |