1 .TH IPQ_SET_VERDICT 3 "16 October 2001" "Linux iptables 1.2" "Linux Programmer's Manual"
3 .\" $Id: ipq_set_verdict.3,v 1.1 2000/11/20 14:13:32 jamesm Exp $
5 .\" Copyright (c) 2000-2001 Netfilter Core Team
7 .\" This program is free software; you can redistribute it and/or modify
8 .\" it under the terms of the GNU General Public License as published by
9 .\" the Free Software Foundation; either version 2 of the License, or
10 .\" (at your option) any later version.
12 .\" This program is distributed in the hope that it will be useful,
13 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
14 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 .\" GNU General Public License for more details.
17 .\" You should have received a copy of the GNU General Public License
18 .\" along with this program; if not, write to the Free Software
19 .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 ipq_set_verdict - issue verdict and optionally modified packet to kernel
25 .B #include <linux/netfilter.h>
27 .B #include <libipq.h>
29 .BI "int ipq_set_verdict(const struct ipq_handle *" h ", ipq_id_t " id ", unsigned int " verdict ", size_t " data_len ", unsigned char *" buf ");"
33 function issues a verdict on a packet previously obtained with
35 specifing the intended disposition of the packet, and optionally
36 supplying a modified version of the payload data.
40 parameter is a context handle which must previously have been returned
41 successfully from a call to
42 .BR ipq_create_handle .
46 parameter is the packet identifier obtained via
51 parameter must be one of:
54 Accept the packet and continue traversal within the kernel.
62 parameter is the length of the data pointed to
65 the optional replacement payload data.
67 If simply setting a verdict without modifying the payload data, use zero
73 The application is responsible for recalculating any packet checksums
74 when modifying packets.
76 On failure, -1 is returned.
78 On success, a non-zero positive value is returned.
80 On error, a descriptive error message will be available
87 James Morris <jmorris@intercode.com.au>
89 Copyright (c) 2000-2001 Netfilter Core Team.
91 Distributed under the GNU General Public License.