OSDN Git Service

Remove ip6tables* as they are now link pages
[linuxjm/iptables.git] / po4a / man3 / ipq_message_type.3.ja.po
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.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
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"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #, no-wrap
21 msgid "IPQ_MESSAGE_TYPE"
22 msgstr ""
23
24 #. type: TH
25 #, no-wrap
26 msgid "16 October 2001"
27 msgstr ""
28
29 #. type: TH
30 #, no-wrap
31 msgid "Linux iptables 1.2"
32 msgstr ""
33
34 #. type: TH
35 #, no-wrap
36 msgid "Linux Programmer's Manual"
37 msgstr ""
38
39 #
40 #
41 #
42 #
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.
55 #. type: SH
56 #, no-wrap
57 msgid "NAME"
58 msgstr ""
59
60 #. type: Plain text
61 msgid "ipq_message_type, ipq_get_packet, ipq_getmsgerr \\(em query queue messages"
62 msgstr ""
63
64 #. type: SH
65 #, no-wrap
66 msgid "SYNOPSIS"
67 msgstr ""
68
69 #. type: Plain text
70 msgid "B<#include E<lt>linux/netfilter.hE<gt>>"
71 msgstr ""
72
73 #. type: Plain text
74 msgid "B<#include E<lt>libipq.hE<gt>>"
75 msgstr ""
76
77 #. type: Plain text
78 msgid "B<int ipq_message_type(const unsigned char *>I<buf>B<);>"
79 msgstr ""
80
81 #. type: Plain text
82 msgid "B<ipq_packet_msg_t *ipq_get_packet(const unsigned char *>I<buf>B<);>"
83 msgstr ""
84
85 #. type: Plain text
86 msgid "B<int ipq_get_msgerr(const unsigned char *>I<buf>B<);>"
87 msgstr ""
88
89 #. type: SH
90 #, no-wrap
91 msgid "DESCRIPTION"
92 msgstr ""
93
94 #. type: Plain text
95 msgid "The B<ipq_message_type> function returns the type of queue message returned to userspace via B<ipq_read>."
96 msgstr ""
97
98 #. type: Plain text
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>."
100 msgstr ""
101
102 #. type: Plain text
103 msgid "B<ipq_message_type> will return one of the following values:"
104 msgstr ""
105
106 #. type: TP
107 #, no-wrap
108 msgid "B<NLMSG_ERROR>"
109 msgstr ""
110
111 #. type: Plain text
112 msgid "An error message generated by the Netlink transport."
113 msgstr ""
114
115 #. type: TP
116 #, no-wrap
117 msgid "B<IPQM_PACKET>"
118 msgstr ""
119
120 #. type: Plain text
121 msgid "A packet message containing packet metadata and optional packet payload data."
122 msgstr ""
123
124 #. type: Plain text
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:"
126 msgstr ""
127
128 #. type: Plain text
129 #, no-wrap
130 msgid ""
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"
146 msgstr ""
147
148 #. type: Plain text
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.>"
150 msgstr ""
151
152 #. type: Plain text
153 msgid "The I<packet_id> field contains a packet identifier to be used when calling B<ipq_set_verdict>."
154 msgstr ""
155
156 #. type: Plain text
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."
158 msgstr ""
159
160 #. type: SH
161 #, no-wrap
162 msgid "BUGS"
163 msgstr ""
164
165 #. type: Plain text
166 msgid "None known."
167 msgstr ""
168
169 #. type: SH
170 #, no-wrap
171 msgid "AUTHOR"
172 msgstr ""
173
174 #. type: Plain text
175 msgid "James Morris E<lt>jmorris@intercode.com.auE<gt>"
176 msgstr ""
177
178 #. type: SH
179 #, no-wrap
180 msgid "COPYRIGHT"
181 msgstr ""
182
183 #. type: Plain text
184 msgid "Copyright (c) 2000-2001 Netfilter Core Team."
185 msgstr ""
186
187 #. type: Plain text
188 msgid "Distributed under the GNU General Public License."
189 msgstr ""
190
191 #. type: SH
192 #, no-wrap
193 msgid "SEE ALSO"
194 msgstr ""
195
196 #. type: Plain text
197 msgid "B<iptables>(8), B<libipq>(3)."
198 msgstr ""