Add header stuff
This commit is contained in:
@@ -31,6 +31,9 @@
|
|||||||
* WARNING: this API is unstable! Use it at your own risk!
|
* WARNING: this API is unstable! Use it at your own risk!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __NDPI_UTIL_H__
|
||||||
|
#define __NDPI_UTIL_H__
|
||||||
|
|
||||||
#include <pcap.h>
|
#include <pcap.h>
|
||||||
|
|
||||||
// flow tracking
|
// flow tracking
|
||||||
@@ -114,3 +117,5 @@ void ndpi_workflow_free(struct ndpi_workflow * workflow);
|
|||||||
void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
|
void ndpi_workflow_process_packet (struct ndpi_workflow * workflow,
|
||||||
const struct pcap_pkthdr *header,
|
const struct pcap_pkthdr *header,
|
||||||
const u_char *packet);
|
const u_char *packet);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -1,3 +1,26 @@
|
|||||||
|
/*
|
||||||
|
* ndpi_util.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2011-15 - ntop.org
|
||||||
|
* Copyright (C) 2009-11 - ipoque GmbH
|
||||||
|
*
|
||||||
|
* This file is part of nDPI, an open source deep packet inspection
|
||||||
|
* library based on the OpenDPI and PACE technology by ipoque GmbH
|
||||||
|
*
|
||||||
|
* nDPI is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* nDPI is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with nDPI. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user