LQL Reference Manual |
---|
LQLClassifierTCIndex — LQLClassifierTCIndex models the TCIndex packet classifier.
struct LQLClassifierTCIndex; LQLClassifierTCIndex* lql_classifier_tcindex_new (void); guint32 lql_classifier_tcindex_get_hash (LQLClassifierTCIndex *self); gboolean lql_classifier_tcindex_set_hash (LQLClassifierTCIndex *self, guint32 hash); guint32 lql_classifier_tcindex_get_mask (LQLClassifierTCIndex *self); gboolean lql_classifier_tcindex_set_mask (LQLClassifierTCIndex *self, guint32 mask); guint32 lql_classifier_tcindex_get_shift (LQLClassifierTCIndex *self); gboolean lql_classifier_tcindex_set_shift (LQLClassifierTCIndex *self, guint32 shift); gboolean lql_classifier_tcindex_get_fallThrough (LQLClassifierTCIndex *self); gboolean lql_classifier_tcindex_set_fallThrough (LQLClassifierTCIndex *self, gboolean fallThrough); guint32 lql_classifier_tcindex_get_classHandle (LQLClassifierTCIndex *self); gboolean lql_classifier_tcindex_set_class (LQLClassifierTCIndex *self, LQLClass *klass);
"class" guint : Read / Write "fall-through" gboolean : Read / Write "hash" guint : Read / Write "mask" guint : Read / Write "shift" guint : Read / Write
LQLClassifierTCIndex* lql_classifier_tcindex_new (void);
Build a new instance of LQLClassifierTCIndex.
Returns : | A new LQLClassifierTCIndex instance. |
guint32 lql_classifier_tcindex_get_hash (LQLClassifierTCIndex *self);
Get the hash value for this classifier.
self : | The LQLClassifierTCIndex instance. |
Returns : | The hash value. |
gboolean lql_classifier_tcindex_set_hash (LQLClassifierTCIndex *self, guint32 hash);
Get the hash value for this classifier.
self : | The LQLClassifierTCIndex instance. |
hash : | The new hash value. |
Returns : | TRUE on success, FALSE on failure. |
guint32 lql_classifier_tcindex_get_mask (LQLClassifierTCIndex *self);
Get the mask value for this classifier.
self : | The LQLClassifierTCIndex instance. |
Returns : | TRUE on success, FALSE on failure. |
gboolean lql_classifier_tcindex_set_mask (LQLClassifierTCIndex *self, guint32 mask);
Set the mask value for this classifier.
self : | The LQLClassifierTCIndex instance. |
mask : | The new mask value. |
Returns : | TRUE on success, FALSE on failure. |
guint32 lql_classifier_tcindex_get_shift (LQLClassifierTCIndex *self);
Get the shift value for this classifier.
self : | The LQLClassifierTCIndex instance. |
Returns : | The shift value. |
gboolean lql_classifier_tcindex_set_shift (LQLClassifierTCIndex *self, guint32 shift);
Set the shift value for this classifier.
self : | The LQLClassifierTCIndex instance. |
shift : | The new shift value. |
Returns : | TRUE on success, FALSE on failure. |
gboolean lql_classifier_tcindex_get_fallThrough (LQLClassifierTCIndex *self);
Get the current state of the TCIndex fall-through flag.
self : | The LQLClassifierTCIndex instance. |
Returns : | The state of the fall-through flag. |
gboolean lql_classifier_tcindex_set_fallThrough (LQLClassifierTCIndex *self, gboolean fallThrough);
Set the current state of the TCIndex fall-through flag.
self : | The LQLClassifierTCIndex instance. |
fallThrough : | The new state of the fall-through flag. |
Returns : | TRUE on success, FALSE on failure. |
guint32 lql_classifier_tcindex_get_classHandle (LQLClassifierTCIndex *self);
Get the handle of the class this classifier is directing packets to.
self : | The LQLClassifierTCIndex instance. |
Returns : | The class handle. |
gboolean lql_classifier_tcindex_set_class (LQLClassifierTCIndex *self, LQLClass *klass);
Set the handle of the class this classifier is directing packets to.
self : | The LQLClassifierTCIndex instance. |
klass : | The class handle. |
Returns : | TRUE on success, FALSE on failure. |
<< LQLClassifierFwmark | LQLU32Match >> |