summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEtan Kissling <etan_kissling@apple.com>2021-01-19 16:05:39 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-02-09 17:31:31 +0100
commit662c8f44d53492d2e0ebd430dadef12d580ec330 (patch)
treebcaf73295210ad7c10c5ab57962ea3d482316846 /include
parent0fcf33229820f1c89ae75bc54cb41c2acdd5d067 (diff)
src: add pkt_buff function for ICMP
Add support for processing ICMP packets using pkt_buff, similar to existing library support for TCP and UDP. Signed-off-by: Etan Kissling <etan_kissling@apple.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libnetfilter_queue/Makefile.am1
-rw-r--r--include/libnetfilter_queue/libnetfilter_queue_icmp.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/libnetfilter_queue/Makefile.am b/include/libnetfilter_queue/Makefile.am
index 902fbf9..e436bab 100644
--- a/include/libnetfilter_queue/Makefile.am
+++ b/include/libnetfilter_queue/Makefile.am
@@ -1,5 +1,6 @@
pkginclude_HEADERS = libnetfilter_queue.h \
linux_nfnetlink_queue.h \
+ libnetfilter_queue_icmp.h \
libnetfilter_queue_ipv4.h \
libnetfilter_queue_ipv6.h \
libnetfilter_queue_tcp.h \
diff --git a/include/libnetfilter_queue/libnetfilter_queue_icmp.h b/include/libnetfilter_queue/libnetfilter_queue_icmp.h
new file mode 100644
index 0000000..9a8bd52
--- /dev/null
+++ b/include/libnetfilter_queue/libnetfilter_queue_icmp.h
@@ -0,0 +1,8 @@
+#ifndef _LIBNFQUEUE_ICMP_H_
+#define _LIBNFQUEUE_ICMP_H_
+
+struct pkt_buff;
+
+struct icmphdr *nfq_icmp_get_hdr(struct pkt_buff *pktb);
+
+#endif