1 .TH IPQ_SET_VERDICT 3 "16 October 2001" "Linux iptables 1.2" "Linux Programmer's Manual"
3 .\" Copyright (c) 2000-2001 Netfilter Core Team
5 .\" This program is free software; you can redistribute it and/or modify
6 .\" it under the terms of the GNU General Public License as published by
7 .\" the Free Software Foundation; either version 2 of the License, or
8 .\" (at your option) any later version.
10 .\" This program is distributed in the hope that it will be useful,
11 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
12 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 .\" GNU General Public License for more details.
15 .\" You should have received a copy of the GNU General Public License
16 .\" along with this program; if not, write to the Free Software
17 .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 ipq_set_verdict \(em issue verdict and optionally modified packet to kernel
23 .B #include <linux/netfilter.h>
25 .B #include <libipq.h>
27 .BI "int ipq_set_verdict(const struct ipq_handle *" h ", ipq_id_t " id ", unsigned int " verdict ", size_t " data_len ", unsigned char *" buf ");"
31 function issues a verdict on a packet previously obtained with
33 specifing the intended disposition of the packet, and optionally
34 supplying a modified version of the payload data.
38 parameter is a context handle which must previously have been returned
39 successfully from a call to
40 .BR ipq_create_handle .
44 parameter is the packet identifier obtained via
49 parameter must be one of:
52 Accept the packet and continue traversal within the kernel.
61 \fBNF_STOLEN\fP and \fBNF_REPEAT\fP are kernel-internal constants and should
62 not be used from userspace as their exact side effects have not been
67 parameter is the length of the data pointed to
70 the optional replacement payload data.
72 If simply setting a verdict without modifying the payload data, use zero
78 The application is responsible for recalculating any packet checksums
79 when modifying packets.
81 On failure, \-1 is returned.
83 On success, a non-zero positive value is returned.
85 On error, a descriptive error message will be available
92 James Morris <jmorris@intercode.com.au>
94 Copyright (c) 2000-2001 Netfilter Core Team.
96 Distributed under the GNU General Public License.