Browse Source
git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21987 10447126-35f2-4685-b0cf-6dd780d3921fearly
Christian Wiese
18 years ago
3 changed files with 135 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||||||
|
#
|
||||||
|
# Filename: package/.../libnetfilter_queue/disable_test_utils.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 ---
|
||||||
|
|
||||||
|
--- ./Makefile.in.orig 2007-06-13 12:38:44.000000000 +0200
|
||||||
|
+++ ./Makefile.in 2007-06-13 12:39:01.000000000 +0200
|
||||||
|
@@ -149,7 +149,7 @@
|
||||||
|
|
||||||
|
EXTRA_DIST = $(man_MANS)
|
||||||
|
|
||||||
|
-SUBDIRS = include src utils
|
||||||
|
+SUBDIRS = include src
|
||||||
|
|
||||||
|
man_MANS = #nfnetlink_queue.3 nfnetlink_queue.7
|
||||||
|
|
@ -0,0 +1,74 @@ |
|||||||
|
# --- 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,
|
@ -0,0 +1,34 @@ |
|||||||
|
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||||
|
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||||
|
[COPY] |
||||||
|
[COPY] Filename: package/.../libnetfilter_queue/libnetfilter_queue.desc |
||||||
|
[COPY] Copyright (C) 2007 The OpenSDE Project |
||||||
|
[COPY] |
||||||
|
[COPY] More information can be found in the files COPYING and README. |
||||||
|
[COPY] |
||||||
|
[COPY] This program is free software; you can redistribute it and/or modify |
||||||
|
[COPY] it under the terms of the GNU General Public License as published by |
||||||
|
[COPY] the Free Software Foundation; version 2 of the License. A copy of the |
||||||
|
[COPY] GNU General Public License can be found in the file COPYING. |
||||||
|
[COPY] --- SDE-COPYRIGHT-NOTE-END --- |
||||||
|
|
||||||
|
[I] A netfilter library for userspace access to packets that have been queued |
||||||
|
|
||||||
|
[T] libnetfilter_queue is a userspace library providing an API to packets that |
||||||
|
[T] have been queued by the kernel packet filter (iptables). |
||||||
|
|
||||||
|
[U] http://www.netfilter.org/projects/libnetfilter_queue/ |
||||||
|
|
||||||
|
[A] Harald Welte <laforge@gnumonks.org> |
||||||
|
[M] Christian Wiese <morfoh@opensde.org> |
||||||
|
|
||||||
|
[C] extra/network |
||||||
|
|
||||||
|
[F] NOPARALLEL |
||||||
|
|
||||||
|
[L] GPL |
||||||
|
[S] Stable |
||||||
|
[V] 0.0.13 |
||||||
|
[P] X -----5---9 190.100 |
||||||
|
|
||||||
|
[D] 3560660531 libnetfilter_queue-0.0.13.tar.bz2 http://netfilter.org/projects/libnetfilter_queue/files/ |
Loading…
Reference in new issue