|
|
@ -1,74 +0,0 @@ |
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../libnetfilter_queue/libnetfilter_queue-0.0.13-ifacename.patch |
|
|
|
# Copyright (C) 2007 The OpenSDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
# |
|
|
|
# This patch file is dual-licensed. It is available under the license the |
|
|
|
# patched project is licensed under, as long as it is an OpenSource license |
|
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or 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. |
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
diff -ruN libnetfilter_queue-0.0.13/include/libnetfilter_queue/libnetfilter_queue.h libnetfilter_queue-0.0.13-ifacename/include/libnetfilter_queue/libnetfilter_queue.h
|
|
|
|
--- libnetfilter_queue-0.0.13/include/libnetfilter_queue/libnetfilter_queue.h 2006-12-21 12:33:43.000000000 +0100
|
|
|
|
+++ libnetfilter_queue-0.0.13-ifacename/include/libnetfilter_queue/libnetfilter_queue.h 2007-08-07 02:26:24.000000000 +0200
|
|
|
|
@@ -80,6 +80,15 @@
|
|
|
|
extern u_int32_t nfq_get_outdev(struct nfq_data *nfad); |
|
|
|
extern u_int32_t nfq_get_physoutdev(struct nfq_data *nfad); |
|
|
|
|
|
|
|
+extern int nfq_get_indev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name);
|
|
|
|
+extern int nfq_get_physindev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name);
|
|
|
|
+extern int nfq_get_outdev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name);
|
|
|
|
+extern int nfq_get_physoutdev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name);
|
|
|
|
+
|
|
|
|
extern struct nfqnl_msg_packet_hw *nfq_get_packet_hw(struct nfq_data *nfad); |
|
|
|
|
|
|
|
/* return -1 if problem, length otherwise */ |
|
|
|
diff -ruN libnetfilter_queue-0.0.13/src/libnetfilter_queue.c libnetfilter_queue-0.0.13-ifacename/src/libnetfilter_queue.c
|
|
|
|
--- libnetfilter_queue-0.0.13/src/libnetfilter_queue.c 2006-12-21 12:33:43.000000000 +0100
|
|
|
|
+++ libnetfilter_queue-0.0.13-ifacename/src/libnetfilter_queue.c 2007-08-07 02:26:24.000000000 +0200
|
|
|
|
@@ -419,6 +419,35 @@
|
|
|
|
return ntohl(nfnl_get_data(nfad->data, NFQA_IFINDEX_PHYSOUTDEV, u_int32_t)); |
|
|
|
} |
|
|
|
|
|
|
|
+int nfq_get_indev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name)
|
|
|
|
+{
|
|
|
|
+ u_int32_t ifindex = nfq_get_indev(nfad);
|
|
|
|
+ return nlif_index2name(nlif_handle, ifindex, name);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+int nfq_get_physindev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name)
|
|
|
|
+{
|
|
|
|
+ u_int32_t ifindex = nfq_get_physindev(nfad);
|
|
|
|
+ return nlif_index2name(nlif_handle, ifindex, name);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+int nfq_get_outdev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name)
|
|
|
|
+{
|
|
|
|
+ u_int32_t ifindex = nfq_get_outdev(nfad);
|
|
|
|
+ return nlif_index2name(nlif_handle, ifindex, name);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+int nfq_get_physoutdev_name(struct nlif_handle *nlif_handle,
|
|
|
|
+ struct nfq_data *nfad, char *name)
|
|
|
|
+{
|
|
|
|
+ u_int32_t ifindex = nfq_get_physoutdev(nfad);
|
|
|
|
+ return nlif_index2name(nlif_handle, ifindex, name);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
struct nfqnl_msg_packet_hw *nfq_get_packet_hw(struct nfq_data *nfad) |
|
|
|
{ |
|
|
|
return nfnl_get_pointer_to_data(nfad->data, NFQA_HWADDR, |