LQLClassifierU32

LQLClassifierU32 — LQLClassifierU32 models the U32 classifier.

Synopsis




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);

Object Hierarchy


  GObject
   +----LQLClassifier
         +----LQLClassifierU32

Properties


  "divisor"              guint                : Read / Write
  "hash"                 guint                : Read / Write
  "hash-mask"            guint                : Read / Write
  "hash-offset"          guint                : Read / Write
  "link"                 guint                : Read / Write

Description

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.

Details

struct LQLClassifierU32

struct LQLClassifierU32;

This should not be accessed directly.


lql_classifier_u32_get_hash ()

guint32     lql_classifier_u32_get_hash     (LQLClassifierU32 *self);

Get the hash.

self : The LQLClassifierU32 object to work with.
Returns : The hash for this filter.

lql_classifier_u32_set_hash ()

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.

lql_classifier_u32_get_link ()

guint32     lql_classifier_u32_get_link     (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_set_link ()

gboolean    lql_classifier_u32_set_link     (LQLClassifierU32 *self,
                                             guint32 link);

self :
link :
Returns :

lql_classifier_u32_get_divisor ()

guint32     lql_classifier_u32_get_divisor  (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_set_divisor ()

gboolean    lql_classifier_u32_set_divisor  (LQLClassifierU32 *self,
                                             guint32 divisor);

self :
divisor :
Returns :

lql_classifier_u32_get_hashMask ()

guint32     lql_classifier_u32_get_hashMask (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_set_hashMask ()

gboolean    lql_classifier_u32_set_hashMask (LQLClassifierU32 *self,
                                             guint32 hashMask);

self :
hashMask :
Returns :

lql_classifier_u32_get_hashOffset ()

guint32     lql_classifier_u32_get_hashOffset
                                            (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_set_hashOffset ()

gboolean    lql_classifier_u32_set_hashOffset
                                            (LQLClassifierU32 *self,
                                             guint32 hashOffset);

self :
hashOffset :
Returns :

lql_classifier_u32_set_id ()

gboolean    lql_classifier_u32_set_id       (LQLClassifierU32 *self,
                                             guint16 id);

self :
id :
Returns :

lql_classifier_u32_get_id ()

guint16     lql_classifier_u32_get_id       (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_set_hashHandle ()

gboolean    lql_classifier_u32_set_hashHandle
                                            (LQLClassifierU32 *self,
                                             guint16 hashHandle);

self :
hashHandle :
Returns :

lql_classifier_u32_get_hashHandle ()

guint16     lql_classifier_u32_get_hashHandle
                                            (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_set_hashNode ()

gboolean    lql_classifier_u32_set_hashNode (LQLClassifierU32 *self,
                                             guint16 hashNode);

self :
hashNode :
Returns :

lql_classifier_u32_get_hashNode ()

guint16     lql_classifier_u32_get_hashNode (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_add_match ()

gboolean    lql_classifier_u32_add_match    (LQLClassifierU32 *self,
                                             LQLU32Match *sel);

self :
sel :
Returns :

lql_classifier_u32_add_match_ip_dst ()

gboolean    lql_classifier_u32_add_match_ip_dst
                                            (LQLClassifierU32 *self,
                                             const gchar *ip);

self :
ip :
Returns :

lql_classifier_u32_get_match ()

LQLU32Match* lql_classifier_u32_get_match   (LQLClassifierU32 *self,
                                             int position);

self :
position :
Returns :

lql_classifier_u32_get_match_len ()

int         lql_classifier_u32_get_match_len
                                            (LQLClassifierU32 *self);

self :
Returns :

lql_classifier_u32_new ()

LQLClassifierU32* lql_classifier_u32_new    (void);

Build a new instance of LQLClassifierU32.

Returns : A new LQLClassifierU32 instance.

Properties

"divisor" (guint : Read / Write)

Set/Get the divisor.

"hash" (guint : Read / Write)

Set/Get the hash.

"hash-mask" (guint : Read / Write)

Set/Get the hashMask.

"hash-offset" (guint : Read / Write)

Set/Get the hashOffset.

"link" (guint : Read / Write)

Set/Get the link.