diff options
author | emanuele-f <black.silver@hotmail.it> | 2016-04-19 22:39:19 +0200 |
---|---|---|
committer | emanuele-f <black.silver@hotmail.it> | 2016-04-19 22:39:19 +0200 |
commit | 7964e11c7fa043894aeaa064ceda5a696ca1e803 (patch) | |
tree | 719279bb9961119edfaacb6ff73268f6399e89db | |
parent | a4d0af1f96bba36f1f98c1090418d49b94ac319a (diff) |
Add header stuff
-rw-r--r-- | src/include/ndpi_util.h | 5 | ||||
-rw-r--r-- | src/lib/ndpi_util.c | 25 |
2 files changed, 29 insertions, 1 deletions
diff --git a/src/include/ndpi_util.h b/src/include/ndpi_util.h index 33e84d050..c7d1e6745 100644 --- a/src/include/ndpi_util.h +++ b/src/include/ndpi_util.h @@ -31,6 +31,9 @@ * WARNING: this API is unstable! Use it at your own risk! */ +#ifndef __NDPI_UTIL_H__ +#define __NDPI_UTIL_H__ + #include <pcap.h> // flow tracking @@ -114,3 +117,5 @@ void ndpi_workflow_free(struct ndpi_workflow * workflow); void ndpi_workflow_process_packet (struct ndpi_workflow * workflow, const struct pcap_pkthdr *header, const u_char *packet); + +#endif diff --git a/src/lib/ndpi_util.c b/src/lib/ndpi_util.c index 40a97f352..1bc75aad0 100644 --- a/src/lib/ndpi_util.c +++ b/src/lib/ndpi_util.c @@ -1,4 +1,27 @@ - +/* + * 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> #ifdef WIN32 |