Logo Search packages:      
Sourcecode: l7-filter-userspace version File versions  Download package


  The l7-queue class handles libnetfilter-queue events and passes 
  packets to their appropriate conntack for classification. 
  By Ethan Sommer <sommere@users.sf.net> and Matthew Strait 
  <quadong@users.sf.net>, (C) 2006-2007

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version
  2 of the License, or (at your option) any later version.

  Based on nfqnl_test.c from  libnetfilter-queue 0.0.12

#ifndef L7_QUEUE_H
#define L7_QUEUE_H

#include "l7-conntrack.h"

#define UNTOUCHED 0
#define NO_MATCH_YET 1
#define NO_MATCH 2

00027 class l7_queue {
  l7_conntrack* l7_connection_tracker;
  int app_data_offset(const unsigned char *data);
  string get_conntrack_key(const unsigned char *data, bool reverse);

  l7_queue(l7_conntrack* connection_tracker);
  void start(int queuenum);
  u_int32_t handle_packet(struct nfq_data *nfa, struct nfq_q_handle *qh);


Generated by  Doxygen 1.6.0   Back to index