1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2013-04-08 14:07+0900\n"
11 "PO-Revision-Date: 2013-04-08 14:29+0900\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
21 msgid "IPQ_MESSAGE_TYPE"
26 msgid "16 October 2001"
31 msgid "Linux iptables 1.2"
36 msgid "Linux Programmer's Manual"
43 #. Copyright (c) 2000-2001 Netfilter Core Team
44 #. This program is free software; you can redistribute it and/or modify
45 #. it under the terms of the GNU General Public License as published by
46 #. the Free Software Foundation; either version 2 of the License, or
47 #. (at your option) any later version.
48 #. This program is distributed in the hope that it will be useful,
49 #. but WITHOUT ANY WARRANTY; without even the implied warranty of
50 #. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 #. GNU General Public License for more details.
52 #. You should have received a copy of the GNU General Public License
53 #. along with this program; if not, write to the Free Software
54 #. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
61 msgid "ipq_message_type, ipq_get_packet, ipq_getmsgerr \\(em query queue messages"
70 msgid "B<#include E<lt>linux/netfilter.hE<gt>>"
74 msgid "B<#include E<lt>libipq.hE<gt>>"
78 msgid "B<int ipq_message_type(const unsigned char *>I<buf>B<);>"
82 msgid "B<ipq_packet_msg_t *ipq_get_packet(const unsigned char *>I<buf>B<);>"
86 msgid "B<int ipq_get_msgerr(const unsigned char *>I<buf>B<);>"
95 msgid "The B<ipq_message_type> function returns the type of queue message returned to userspace via B<ipq_read>."
99 msgid "B<ipq_message_type> should always be called following a successful call to B<ipq_read> to determine whether the message is a packet message or an error message. The I<buf> parameter should be the same data obtained from the previous call to B<ipq_read>."
103 msgid "B<ipq_message_type> will return one of the following values:"
108 msgid "B<NLMSG_ERROR>"
112 msgid "An error message generated by the Netlink transport."
117 msgid "B<IPQM_PACKET>"
121 msgid "A packet message containing packet metadata and optional packet payload data."
125 msgid "The B<ipq_get_packet> function should be called if B<ipq_message_type> returns B<IPQM_PACKET>. The I<buf> parameter should point to the same data used for the call to B<ipq_message_type>. The pointer returned by B<ipq_get_packet> points to a packet message, which is declared as follows:"
131 "typedef struct ipq_packet_msg {\n"
132 "\tunsigned long packet_id; /* ID of queued packet */\n"
133 "\tunsigned long mark; /* Netfilter mark value */\n"
134 "\tlong timestamp_sec; /* Packet arrival time (seconds) */\n"
135 "\tlong timestamp_usec; /* Packet arrvial time (+useconds) */\n"
136 "\tunsigned int hook; /* Netfilter hook we rode in on */\n"
137 "\tchar indev_name[IFNAMSIZ]; /* Name of incoming interface */\n"
138 "\tchar outdev_name[IFNAMSIZ]; /* Name of outgoing interface */\n"
139 "\tunsigned short hw_protocol; /* Hardware protocol (network order) */\n"
140 "\tunsigned short hw_type; /* Hardware type */\n"
141 "\tunsigned char hw_addrlen; /* Hardware address length */\n"
142 "\tunsigned char hw_addr[8]; /* Hardware address */\n"
143 "\tsize_t data_len; /* Length of packet data */\n"
144 "\tunsigned char payload[0]; /* Optional packet data */\n"
145 "} ipq_packet_msg_t;\n"
149 msgid "Each of these fields may be read by the application. If the queue mode is B<IPQ_COPY_PACKET> and the I<data_len> value is greater than zero, the packet payload contents may be accessed in the memory following the B<ipq_packet_msg_t> structure to a range of I<data_len.>"
153 msgid "The I<packet_id> field contains a packet identifier to be used when calling B<ipq_set_verdict>."
157 msgid "The B<ipq_get_msgerr> function should be called if B<ipq_message_type> returns B<NLMSG_ERROR.> The I<buf> parameter should point to the same data used for the call to B<ipq_message_type>. The value returned by B<ipq_get_msgerr> is set by higher level kernel code and corresponds to standard B<errno> values."
175 msgid "James Morris E<lt>jmorris@intercode.com.auE<gt>"
184 msgid "Copyright (c) 2000-2001 Netfilter Core Team."
188 msgid "Distributed under the GNU General Public License."
197 msgid "B<iptables>(8), B<libipq>(3)."