Copyright (c) 2000-2001 Netfilter Core Team
This program is free software; you can redistribute it and/or modify
it 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.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#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 );
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.
On failure, NULL is returned.
On success, ipq_destroy_handle returns zero.
On failure, -1 is returned.
Distributed under the GNU General Public License.