ipq_set_verdict man page on Slackware

Man page or keyword search:  
man Server   14563 pages
apropos Keyword Search (all sections)
Output format
Slackware logo
[printable version]

IPQ_SET_VERDICT(3)	   Linux Programmer's Manual	    IPQ_SET_VERDICT(3)

NAME
       ipq_set_verdict	— issue verdict and optionally modified packet to ker‐
       nel

SYNOPSIS
       #include <linux/netfilter.h>
       #include <libipq.h>

       int ipq_set_verdict(const struct ipq_handle *h, ipq_id_t	 id,  unsigned
       int verdict, size_t data_len, unsigned char *buf);

DESCRIPTION
       The  ipq_set_verdict  function  issues a verdict on a packet previously
       obtained with ipq_read,	specifing  the	intended  disposition  of  the
       packet,	and  optionally	 supplying  a  modified version of the payload
       data.

       The h parameter is a context handle which  must	previously  have  been
       returned successfully from a call to ipq_create_handle.

       The id parameter is the packet identifier obtained via ipq_get_packet.

       The verdict parameter must be one of:

       NF_ACCEPT
	      Accept the packet and continue traversal within the kernel.

       NF_DROP
	      Drop the packet.

       NF_QUEUE
	      Requeue the packet.

       NF_STOLEN and NF_REPEAT are kernel-internal constants and should not be
       used from userspace as their exact side effects have not been  investi‐
       gated.

       The data_len parameter is the length of the data pointed to by buf, the
       optional replacement payload data.

       If simply setting a verdict without modifying  the  payload  data,  use
       zero for data_len and NULL for buf.

       The  application	 is responsible for recalculating any packet checksums
       when modifying packets.

RETURN VALUE
       On failure, -1 is returned.
       On success, a non-zero positive value is returned.

ERRORS
       On error, a  descriptive	 error	message	 will  be  available  via  the
       ipq_errstr function.

BUGS
       None known.

AUTHOR
       James Morris <jmorris@intercode.com.au>

COPYRIGHT
       Copyright (c) 2000-2001 Netfilter Core Team.

       Distributed under the GNU General Public License.

SEE ALSO
       iptables(8), libipq(3).

Linux iptables 1.2		16 October 2001		    IPQ_SET_VERDICT(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Slackware

List of man pages available for Slackware

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net