IPQ_CREATE_HANDLE - Online Linux Manual PageSection : 3
Updated : 16 October 2001
Source : Linux iptables 1.2
Note : Linux Programmer's Manual

NAMEipq_create_handle, ipq_destroy_handle — create and destroy libipq handles.

SYNOPSIS#include <linux/netfilter.h>
#include <libipq.h> struct ipq_handle *ipq_create_handle(u_int32_t flags, u_int32_t protocol);
int ipq_destroy_handle(struct ipq_handle *h);

DESCRIPTIONThe ipq_create_handle function initialises libipq for an application, attempts to bind to the Netlink socket used by ip_queue, and returns an opaque context handle. It should be the first libipq function to be called by an application. The handle returned should be used in all subsequent library calls which require a handle parameter. The flags parameter is not currently used and should be set to zero by the application for forward compatibility. The protocol parameter is used to specify the protocol of the packets to be queued. Valid values are NFPROTO_IPV4 for IPv4 and NFPROTO_IPV6 for IPv6. Currently, only one protocol may be queued at a time for a handle. The ipq_destroy_handle function frees up resources allocated by ipq_create_handle, and should be used when the handle is no longer required by the application.

RETURN VALUESOn success, ipq_create_handle returns a pointer to a context handle.
On failure, NULL is returned. On success, ipq_destroy_handle returns zero.
On failure, −1 is returned.

ERRORSOn failure, a descriptive error message will be available via the ipq_errstr function.

BUGSNone known.

AUTHORJames Morris <jmorris@intercode.com.au>

COPYRIGHTCopyright (c) 2000-2001 Netfilter Core Team. Distributed under the GNU General Public License.

SEE ALSOiptables(8), libipq(3).
0
Johanes Gumabo
Data Size   :   5,637 byte
man-ipq_destroy_handle.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 259,620
Visitor ID   :     :  
Visitor IP   :   3.138.105.176   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.