OSDN Git Service

iptables: Update original to iptables-1.4.13
[linuxjm/iptables.git] / original / man3 / libipq.3
index a2dfbfb..611fcdf 100644 (file)
@@ -1,7 +1,5 @@
 .TH LIBIPQ 3 "16 October 2001" "Linux iptables 1.2" "Linux Programmer's Manual" 
 .\"
-.\" $Id: libipq.3,v 1.5 2001/11/24 15:09:20 jamesm Exp $
-.\"
 .\"     Copyright (c) 2000-2001 Netfilter Core Team
 .\"
 .\"     This program is free software; you can redistribute it and/or modify
@@ -20,7 +18,7 @@
 .\"
 .\"
 .SH NAME
-libipq \- iptables userspace packet queuing library.
+libipq \(em iptables userspace packet queuing library.
 .SH SYNOPSIS
 .B #include <linux/netfilter.h>
 .br
@@ -48,10 +46,10 @@ and queued for userspace processing via the QUEUE target.  For example,
 running the following commands:
 .PP
        # modprobe iptable_filter
-.br
+.br    
        # modprobe ip_queue
-.br
-       # iptables -A OUTPUT -p icmp -j QUEUE
+.br    
+       # iptables \-A OUTPUT \-p icmp \-j QUEUE
 .PP
 will cause any locally generated ICMP packets (e.g. ping output) to
 be sent to the ip_queue module, which will then attempt to deliver the
@@ -187,7 +185,7 @@ int main(int argc, char **argv)
        unsigned char buf[BUFSIZE];
        struct ipq_handle *h;
        
-       h = ipq_create_handle(0, PF_INET);
+       h = ipq_create_handle(0, NFPROTO_IPV4);
        if (!h)
                die(h);