OSDN Git Service

(split) LDP: Update POT and ja.po to LDP v3.54
[linuxjm/LDP_man-pages.git] / po4a / net / po / net.pot
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-09-28 04:06+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\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=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: build/C/man7/arp.7:13
21 #, no-wrap
22 msgid "ARP"
23 msgstr ""
24
25 #. type: TH
26 #: build/C/man7/arp.7:13
27 #, no-wrap
28 msgid "2008-11-25"
29 msgstr ""
30
31 #. type: TH
32 #: build/C/man7/arp.7:13 build/C/man3/cmsg.3:11 build/C/man7/ddp.7:12 build/C/man5/gai.conf.5:19 build/C/man1/getent.1:24 build/C/man3/getipnodebyname.3:26 build/C/man2/getpeername.2:42 build/C/man5/host.conf.5:26 build/C/man7/hostname.7:39 build/C/man5/hosts.5:27 build/C/man5/hosts.equiv.5:6 build/C/man7/icmp.7:12 build/C/man3/inet_ntop.3:26 build/C/man3/inet_pton.3:27 build/C/man7/ip.7:36 build/C/man7/ipv6.7:86 build/C/man7/netdevice.7:18 build/C/man5/nss.5:19 build/C/man5/nsswitch.conf.5:25 build/C/man7/packet.7:12 build/C/man5/protocols.5:29 build/C/man7/raw.7:13 build/C/man3/rcmd.3:43 build/C/man3/rexec.3:41 build/C/man5/services.5:34 build/C/man2/shutdown.2:40 build/C/man7/tcp.7:65 build/C/man7/udp.7:12 build/C/man7/udplite.7:27 build/C/man7/unix.7:18 build/C/man7/x25.7:12
33 #, no-wrap
34 msgid "Linux"
35 msgstr ""
36
37 #. type: TH
38 #: build/C/man7/arp.7:13 build/C/man3/byteorder.3:32 build/C/man3/cmsg.3:11 build/C/man7/ddp.7:12 build/C/man3/endian.3:28 build/C/man3/ether_aton.3:31 build/C/man5/gai.conf.5:19 build/C/man3/getaddrinfo.3:43 build/C/man3/getaddrinfo_a.3:29 build/C/man3/gethostbyname.3:38 build/C/man3/getipnodebyname.3:26 build/C/man3/getnameinfo.3:10 build/C/man3/getnetent.3:30 build/C/man3/getnetent_r.3:26 build/C/man2/getpeername.2:42 build/C/man3/getprotoent.3:30 build/C/man3/getprotoent_r.3:26 build/C/man3/getservent.3:34 build/C/man3/getservent_r.3:26 build/C/man7/hostname.7:39 build/C/man5/hosts.5:27 build/C/man5/hosts.equiv.5:6 build/C/man7/icmp.7:12 build/C/man3/inet.3:42 build/C/man3/inet_ntop.3:26 build/C/man3/inet_pton.3:27 build/C/man7/ip.7:36 build/C/man7/ipv6.7:86 build/C/man7/netdevice.7:18 build/C/man8/nscd.8:23 build/C/man5/nscd.conf.5:20 build/C/man5/nss.5:19 build/C/man5/nsswitch.conf.5:25 build/C/man7/packet.7:12 build/C/man5/protocols.5:29 build/C/man7/raw.7:13 build/C/man3/rcmd.3:43 build/C/man5/resolv.conf.5:23 build/C/man3/resolver.3:32 build/C/man3/rexec.3:41 build/C/man5/services.5:34 build/C/man3/setnetgrent.3:10 build/C/man2/shutdown.2:40 build/C/man7/tcp.7:65 build/C/man7/udp.7:12 build/C/man7/udplite.7:27 build/C/man7/unix.7:18 build/C/man7/x25.7:12
39 #, no-wrap
40 msgid "Linux Programmer's Manual"
41 msgstr ""
42
43 #. type: SH
44 #: build/C/man7/arp.7:14 build/C/man3/byteorder.3:33 build/C/man3/cmsg.3:12 build/C/man7/ddp.7:13 build/C/man3/endian.3:29 build/C/man3/ether_aton.3:32 build/C/man5/gai.conf.5:20 build/C/man3/getaddrinfo.3:44 build/C/man3/getaddrinfo_a.3:30 build/C/man1/getent.1:25 build/C/man3/gethostbyname.3:39 build/C/man3/getipnodebyname.3:27 build/C/man3/getnameinfo.3:11 build/C/man3/getnetent.3:31 build/C/man3/getnetent_r.3:27 build/C/man2/getpeername.2:43 build/C/man3/getprotoent.3:31 build/C/man3/getprotoent_r.3:27 build/C/man3/getservent.3:35 build/C/man3/getservent_r.3:27 build/C/man5/host.conf.5:27 build/C/man7/hostname.7:40 build/C/man5/hosts.5:28 build/C/man5/hosts.equiv.5:7 build/C/man7/icmp.7:13 build/C/man3/inet.3:43 build/C/man3/inet_ntop.3:27 build/C/man3/inet_pton.3:28 build/C/man7/ip.7:37 build/C/man7/ipv6.7:87 build/C/man7/netdevice.7:19 build/C/man5/networks.5:27 build/C/man8/nscd.8:24 build/C/man5/nscd.conf.5:21 build/C/man5/nss.5:20 build/C/man5/nsswitch.conf.5:26 build/C/man7/packet.7:13 build/C/man5/protocols.5:30 build/C/man7/raw.7:14 build/C/man3/rcmd.3:44 build/C/man5/resolv.conf.5:25 build/C/man3/resolver.3:33 build/C/man3/rexec.3:42 build/C/man5/services.5:35 build/C/man3/setnetgrent.3:11 build/C/man2/shutdown.2:41 build/C/man7/tcp.7:66 build/C/man7/udp.7:13 build/C/man7/udplite.7:28 build/C/man7/unix.7:19 build/C/man7/x25.7:13
45 #, no-wrap
46 msgid "NAME"
47 msgstr ""
48
49 #. type: Plain text
50 #: build/C/man7/arp.7:16
51 msgid "arp - Linux ARP kernel module."
52 msgstr ""
53
54 #. type: SH
55 #: build/C/man7/arp.7:16 build/C/man3/byteorder.3:48 build/C/man3/cmsg.3:37 build/C/man7/ddp.7:23 build/C/man3/endian.3:53 build/C/man3/ether_aton.3:57 build/C/man5/gai.conf.5:22 build/C/man3/getaddrinfo.3:75 build/C/man3/getaddrinfo_a.3:50 build/C/man1/getent.1:30 build/C/man3/gethostbyname.3:132 build/C/man3/getipnodebyname.3:44 build/C/man3/getnameinfo.3:32 build/C/man3/getnetent.3:48 build/C/man3/getnetent_r.3:62 build/C/man2/getpeername.2:50 build/C/man3/getprotoent.3:48 build/C/man3/getprotoent_r.3:59 build/C/man3/getservent.3:52 build/C/man3/getservent_r.3:59 build/C/man5/host.conf.5:29 build/C/man7/hostname.7:42 build/C/man5/hosts.5:32 build/C/man5/hosts.equiv.5:11 build/C/man7/icmp.7:15 build/C/man3/inet.3:75 build/C/man3/inet_ntop.3:36 build/C/man3/inet_pton.3:36 build/C/man7/ip.7:53 build/C/man7/ipv6.7:99 build/C/man7/netdevice.7:25 build/C/man5/networks.5:29 build/C/man8/nscd.8:26 build/C/man5/nscd.conf.5:23 build/C/man5/nss.5:22 build/C/man5/nsswitch.conf.5:28 build/C/man7/packet.7:25 build/C/man5/protocols.5:32 build/C/man7/raw.7:22 build/C/man3/rcmd.3:92 build/C/man5/resolv.conf.5:29 build/C/man3/resolver.3:85 build/C/man3/rexec.3:56 build/C/man5/services.5:37 build/C/man3/setnetgrent.3:44 build/C/man2/shutdown.2:47 build/C/man7/tcp.7:76 build/C/man7/udp.7:23 build/C/man7/udplite.7:38 build/C/man7/unix.7:29 build/C/man7/x25.7:21
56 #, no-wrap
57 msgid "DESCRIPTION"
58 msgstr ""
59
60 #. type: Plain text
61 #: build/C/man7/arp.7:24
62 msgid ""
63 "This kernel protocol module implements the Address Resolution Protocol "
64 "defined in RFC\\ 826.  It is used to convert between Layer2 hardware "
65 "addresses and IPv4 protocol addresses on directly connected networks.  The "
66 "user normally doesn't interact directly with this module except to configure "
67 "it; instead it provides a service for other protocols in the kernel."
68 msgstr ""
69
70 #. type: Plain text
71 #: build/C/man7/arp.7:37
72 msgid ""
73 "A user process can receive ARP packets by using B<packet>(7)  sockets.  "
74 "There is also a mechanism for managing the ARP cache in user-space by using "
75 "B<netlink>(7)  sockets.  The ARP table can also be controlled via "
76 "B<ioctl>(2)  on any B<AF_INET> socket."
77 msgstr ""
78
79 #. type: Plain text
80 #: build/C/man7/arp.7:49
81 msgid ""
82 "The ARP module maintains a cache of mappings between hardware addresses and "
83 "protocol addresses.  The cache has a limited size so old and less frequently "
84 "used entries are garbage-collected.  Entries which are marked as permanent "
85 "are never deleted by the garbage-collector.  The cache can be directly "
86 "manipulated by the use of ioctls and its behavior can be tuned by the "
87 "I</proc> interfaces described below."
88 msgstr ""
89
90 #. type: Plain text
91 #: build/C/man7/arp.7:72
92 msgid ""
93 "When there is no positive feedback for an existing mapping after some time "
94 "(see the I</proc> interfaces below), a neighbor cache entry is considered "
95 "stale.  Positive feedback can be gotten from a higher layer; for example "
96 "from a successful TCP ACK.  Other protocols can signal forward progress "
97 "using the B<MSG_CONFIRM> flag to B<sendmsg>(2).  When there is no forward "
98 "progress, ARP tries to reprobe.  It first tries to ask a local arp daemon "
99 "B<app_solicit> times for an updated MAC address.  If that fails and an old "
100 "MAC address is known, a unicast probe is sent B<ucast_solicit> times.  If "
101 "that fails too, it will broadcast a new ARP request to the network.  "
102 "Requests are sent only when there is data queued for sending."
103 msgstr ""
104
105 #. type: Plain text
106 #: build/C/man7/arp.7:77
107 msgid ""
108 "Linux will automatically add a nonpermanent proxy arp entry when it receives "
109 "a request for an address it forwards to and proxy arp is enabled on the "
110 "receiving interface.  When there is a reject route for the target, no proxy "
111 "arp entry is added."
112 msgstr ""
113
114 #. type: SS
115 #: build/C/man7/arp.7:77 build/C/man7/ddp.7:144 build/C/man7/ip.7:1047 build/C/man7/netdevice.7:72 build/C/man7/packet.7:230 build/C/man7/tcp.7:1032 build/C/man7/udp.7:202 build/C/man7/unix.7:284
116 #, no-wrap
117 msgid "Ioctls"
118 msgstr ""
119
120 #. type: Plain text
121 #: build/C/man7/arp.7:84
122 msgid ""
123 "Three ioctls are available on all B<AF_INET> sockets.  They take a pointer "
124 "to a I<struct arpreq> as their argument."
125 msgstr ""
126
127 #. type: Plain text
128 #: build/C/man7/arp.7:94
129 #, no-wrap
130 msgid ""
131 "struct arpreq {\n"
132 "    struct sockaddr arp_pa;      /* protocol address */\n"
133 "    struct sockaddr arp_ha;      /* hardware address */\n"
134 "    int             arp_flags;   /* flags */\n"
135 "    struct sockaddr arp_netmask; /* netmask of protocol address */\n"
136 "    char            arp_dev[16];\n"
137 "};\n"
138 msgstr ""
139
140 #. type: Plain text
141 #: build/C/man7/arp.7:103
142 msgid ""
143 "B<SIOCSARP>, B<SIOCDARP> and B<SIOCGARP> respectively set, delete and get an "
144 "ARP mapping.  Setting and deleting ARP maps are privileged operations and "
145 "may be performed only by a process with the B<CAP_NET_ADMIN> capability or "
146 "an effective UID of 0."
147 msgstr ""
148
149 #. type: Plain text
150 #: build/C/man7/arp.7:113
151 msgid ""
152 "I<arp_pa> must be an B<AF_INET> address and I<arp_ha> must have the same "
153 "type as the device which is specified in I<arp_dev>.  I<arp_dev> is a "
154 "zero-terminated string which names a device."
155 msgstr ""
156
157 #. type: tbl table
158 #: build/C/man7/arp.7:118
159 #, no-wrap
160 msgid "I<arp_flags>\n"
161 msgstr ""
162
163 #. type: tbl table
164 #: build/C/man7/arp.7:119
165 #, no-wrap
166 msgid "flag:meaning\n"
167 msgstr ""
168
169 #. type: tbl table
170 #: build/C/man7/arp.7:120
171 #, no-wrap
172 msgid "ATF_COM:Lookup complete\n"
173 msgstr ""
174
175 #. type: tbl table
176 #: build/C/man7/arp.7:121
177 #, no-wrap
178 msgid "ATF_PERM:Permanent entry\n"
179 msgstr ""
180
181 #. type: tbl table
182 #: build/C/man7/arp.7:122
183 #, no-wrap
184 msgid "ATF_PUBL:Publish entry\n"
185 msgstr ""
186
187 #. type: tbl table
188 #: build/C/man7/arp.7:123
189 #, no-wrap
190 msgid "ATF_USETRAILERS:Trailers requested\n"
191 msgstr ""
192
193 #. type: tbl table
194 #: build/C/man7/arp.7:124
195 #, no-wrap
196 msgid "ATF_NETMASK:Use a netmask\n"
197 msgstr ""
198
199 #. type: tbl table
200 #: build/C/man7/arp.7:125
201 #, no-wrap
202 msgid "ATF_DONTPUB:Don't answer\n"
203 msgstr ""
204
205 #. type: Plain text
206 #: build/C/man7/arp.7:138
207 msgid ""
208 "If the B<ATF_NETMASK> flag is set, then I<arp_netmask> should be valid.  "
209 "Linux 2.2 does not support proxy network ARP entries, so this should be set "
210 "to 0xffffffff, or 0 to remove an existing proxy arp entry.  "
211 "B<ATF_USETRAILERS> is obsolete and should not be used."
212 msgstr ""
213
214 #. type: SS
215 #: build/C/man7/arp.7:138 build/C/man7/ddp.7:122 build/C/man7/icmp.7:41 build/C/man7/ip.7:923 build/C/man7/tcp.7:208 build/C/man7/udp.7:137
216 #, no-wrap
217 msgid "/proc interfaces"
218 msgstr ""
219
220 #. type: Plain text
221 #: build/C/man7/arp.7:151
222 msgid ""
223 "ARP supports a range of I</proc> interfaces to configure parameters on a "
224 "global or per-interface basis.  The interfaces can be accessed by reading or "
225 "writing the I</proc/sys/net/ipv4/neigh/*/*> files.  Each interface in the "
226 "system has its own directory in I</proc/sys/net/ipv4/neigh/>.  The setting "
227 "in the \"default\" directory is used for all newly created devices.  Unless "
228 "otherwise specified, time-related interfaces are specified in seconds."
229 msgstr ""
230
231 #. type: TP
232 #: build/C/man7/arp.7:151
233 #, no-wrap
234 msgid "I<anycast_delay> (since Linux 2.2)"
235 msgstr ""
236
237 #.  Precisely: 2.1.79
238 #. type: Plain text
239 #: build/C/man7/arp.7:158
240 msgid ""
241 "The maximum number of jiffies to delay before replying to a IPv6 neighbor "
242 "solicitation message.  Anycast support is not yet implemented.  Defaults to "
243 "1 second."
244 msgstr ""
245
246 #. type: TP
247 #: build/C/man7/arp.7:158
248 #, no-wrap
249 msgid "I<app_solicit> (since Linux 2.2)"
250 msgstr ""
251
252 #.  Precisely: 2.1.79
253 #. type: Plain text
254 #: build/C/man7/arp.7:165
255 msgid ""
256 "The maximum number of probes to send to the user space ARP daemon via "
257 "netlink before dropping back to multicast probes (see I<mcast_solicit>).  "
258 "Defaults to 0."
259 msgstr ""
260
261 #. type: TP
262 #: build/C/man7/arp.7:165
263 #, no-wrap
264 msgid "I<base_reachable_time> (since Linux 2.2)"
265 msgstr ""
266
267 #.  Precisely: 2.1.79
268 #. type: Plain text
269 #: build/C/man7/arp.7:176
270 msgid ""
271 "Once a neighbor has been found, the entry is considered to be valid for at "
272 "least a random value between I<base_reachable_time>/2 and "
273 "3*I<base_reachable_time>/2.  An entry's validity will be extended if it "
274 "receives positive feedback from higher level protocols.  Defaults to 30 "
275 "seconds.  This file is now obsolete in favor of I<base_reachable_time_ms>."
276 msgstr ""
277
278 #. type: TP
279 #: build/C/man7/arp.7:176
280 #, no-wrap
281 msgid "I<base_reachable_time_ms> (since Linux 2.6.12)"
282 msgstr ""
283
284 #. type: Plain text
285 #: build/C/man7/arp.7:182
286 msgid ""
287 "As for I<base_reachable_time>, but measures time in milliseconds.  Defaults "
288 "to 30000 milliseconds."
289 msgstr ""
290
291 #. type: TP
292 #: build/C/man7/arp.7:182
293 #, no-wrap
294 msgid "I<delay_first_probe_time> (since Linux 2.2)"
295 msgstr ""
296
297 #.  Precisely: 2.1.79
298 #. type: Plain text
299 #: build/C/man7/arp.7:188
300 msgid ""
301 "Delay before first probe after it has been decided that a neighbor is "
302 "stale.  Defaults to 5 seconds."
303 msgstr ""
304
305 #. type: TP
306 #: build/C/man7/arp.7:188
307 #, no-wrap
308 msgid "I<gc_interval> (since Linux 2.2)"
309 msgstr ""
310
311 #.  Precisely: 2.1.79
312 #. type: Plain text
313 #: build/C/man7/arp.7:194
314 msgid ""
315 "How frequently the garbage collector for neighbor entries should attempt to "
316 "run.  Defaults to 30 seconds."
317 msgstr ""
318
319 #. type: TP
320 #: build/C/man7/arp.7:194
321 #, no-wrap
322 msgid "I<gc_stale_time> (since Linux 2.2)"
323 msgstr ""
324
325 #.  Precisely: 2.1.79
326 #. type: Plain text
327 #: build/C/man7/arp.7:201
328 msgid ""
329 "Determines how often to check for stale neighbor entries.  When a neighbor "
330 "entry is considered stale, it is resolved again before sending data to it.  "
331 "Defaults to 60 seconds."
332 msgstr ""
333
334 #. type: TP
335 #: build/C/man7/arp.7:201
336 #, no-wrap
337 msgid "I<gc_thresh1> (since Linux 2.2)"
338 msgstr ""
339
340 #.  Precisely: 2.1.79
341 #. type: Plain text
342 #: build/C/man7/arp.7:208
343 msgid ""
344 "The minimum number of entries to keep in the ARP cache.  The garbage "
345 "collector will not run if there are fewer than this number of entries in the "
346 "cache.  Defaults to 128."
347 msgstr ""
348
349 #. type: TP
350 #: build/C/man7/arp.7:208
351 #, no-wrap
352 msgid "I<gc_thresh2> (since Linux 2.2)"
353 msgstr ""
354
355 #.  Precisely: 2.1.79
356 #. type: Plain text
357 #: build/C/man7/arp.7:215
358 msgid ""
359 "The soft maximum number of entries to keep in the ARP cache.  The garbage "
360 "collector will allow the number of entries to exceed this for 5 seconds "
361 "before collection will be performed.  Defaults to 512."
362 msgstr ""
363
364 #. type: TP
365 #: build/C/man7/arp.7:215
366 #, no-wrap
367 msgid "I<gc_thresh3> (since Linux 2.2)"
368 msgstr ""
369
370 #.  Precisely: 2.1.79
371 #. type: Plain text
372 #: build/C/man7/arp.7:222
373 msgid ""
374 "The hard maximum number of entries to keep in the ARP cache.  The garbage "
375 "collector will always run if there are more than this number of entries in "
376 "the cache.  Defaults to 1024."
377 msgstr ""
378
379 #. type: TP
380 #: build/C/man7/arp.7:222
381 #, no-wrap
382 msgid "I<locktime> (since Linux 2.2)"
383 msgstr ""
384
385 #.  Precisely: 2.1.79
386 #. type: Plain text
387 #: build/C/man7/arp.7:229
388 msgid ""
389 "The minimum number of jiffies to keep an ARP entry in the cache.  This "
390 "prevents ARP cache thrashing if there is more than one potential mapping "
391 "(generally due to network misconfiguration).  Defaults to 1 second."
392 msgstr ""
393
394 #. type: TP
395 #: build/C/man7/arp.7:229
396 #, no-wrap
397 msgid "I<mcast_solicit> (since Linux 2.2)"
398 msgstr ""
399
400 #.  Precisely: 2.1.79
401 #. type: Plain text
402 #: build/C/man7/arp.7:235
403 msgid ""
404 "The maximum number of attempts to resolve an address by multicast/broadcast "
405 "before marking the entry as unreachable.  Defaults to 3."
406 msgstr ""
407
408 #. type: TP
409 #: build/C/man7/arp.7:235
410 #, no-wrap
411 msgid "I<proxy_delay> (since Linux 2.2)"
412 msgstr ""
413
414 #.  Precisely: 2.1.79
415 #. type: Plain text
416 #: build/C/man7/arp.7:243
417 msgid ""
418 "When an ARP request for a known proxy-ARP address is received, delay up to "
419 "I<proxy_delay> jiffies before replying.  This is used to prevent network "
420 "flooding in some cases.  Defaults to 0.8 seconds."
421 msgstr ""
422
423 #. type: TP
424 #: build/C/man7/arp.7:243
425 #, no-wrap
426 msgid "I<proxy_qlen> (since Linux 2.2)"
427 msgstr ""
428
429 #.  Precisely: 2.1.79
430 #. type: Plain text
431 #: build/C/man7/arp.7:248
432 msgid ""
433 "The maximum number of packets which may be queued to proxy-ARP addresses.  "
434 "Defaults to 64."
435 msgstr ""
436
437 #. type: TP
438 #: build/C/man7/arp.7:248
439 #, no-wrap
440 msgid "I<retrans_time> (since Linux 2.2)"
441 msgstr ""
442
443 #.  Precisely: 2.1.79
444 #. type: Plain text
445 #: build/C/man7/arp.7:255
446 msgid ""
447 "The number of jiffies to delay before retransmitting a request.  Defaults to "
448 "1 second.  This file is now obsolete in favor of I<retrans_time_ms>."
449 msgstr ""
450
451 #. type: TP
452 #: build/C/man7/arp.7:255
453 #, no-wrap
454 msgid "I<retrans_time_ms> (since Linux 2.6.12)"
455 msgstr ""
456
457 #. type: Plain text
458 #: build/C/man7/arp.7:259
459 msgid ""
460 "The number of milliseconds to delay before retransmitting a request.  "
461 "Defaults to 1000 milliseconds."
462 msgstr ""
463
464 #. type: TP
465 #: build/C/man7/arp.7:259
466 #, no-wrap
467 msgid "I<ucast_solicit> (since Linux 2.2)"
468 msgstr ""
469
470 #.  Precisely: 2.1.79
471 #. type: Plain text
472 #: build/C/man7/arp.7:266
473 msgid ""
474 "The maximum number of attempts to send unicast probes before asking the ARP "
475 "daemon (see I<app_solicit>).  Defaults to 3."
476 msgstr ""
477
478 #. type: TP
479 #: build/C/man7/arp.7:266
480 #, no-wrap
481 msgid "I<unres_qlen> (since Linux 2.2)"
482 msgstr ""
483
484 #.  Precisely: 2.1.79
485 #. type: Plain text
486 #: build/C/man7/arp.7:272
487 msgid ""
488 "The maximum number of packets which may be queued for each unresolved "
489 "address by other network layers.  Defaults to 3."
490 msgstr ""
491
492 #. type: SH
493 #: build/C/man7/arp.7:272 build/C/man7/ddp.7:221 build/C/man3/endian.3:74 build/C/man3/getnameinfo.3:203 build/C/man7/icmp.7:161 build/C/man7/ipv6.7:361 build/C/man7/packet.7:282 build/C/man7/raw.7:175 build/C/man3/rcmd.3:262 build/C/man3/rexec.3:138 build/C/man7/tcp.7:1149 build/C/man7/udp.7:251 build/C/man7/udplite.7:132 build/C/man7/unix.7:401 build/C/man7/x25.7:100
494 #, no-wrap
495 msgid "VERSIONS"
496 msgstr ""
497
498 #. type: Plain text
499 #: build/C/man7/arp.7:279
500 msgid ""
501 "The I<struct arpreq> changed in Linux 2.0 to include the I<arp_dev> member "
502 "and the ioctl numbers changed at the same time.  Support for the old ioctls "
503 "was dropped in Linux 2.2."
504 msgstr ""
505
506 #. type: Plain text
507 #: build/C/man7/arp.7:285
508 msgid ""
509 "Support for proxy arp entries for networks (netmask not equal 0xffffffff)  "
510 "was dropped in Linux 2.2.  It is replaced by automatic proxy arp setup by "
511 "the kernel for all reachable hosts on other interfaces (when forwarding and "
512 "proxy arp is enabled for the interface)."
513 msgstr ""
514
515 #. type: Plain text
516 #: build/C/man7/arp.7:289
517 msgid "The I<neigh/*> interfaces did not exist before Linux 2.2."
518 msgstr ""
519
520 #. type: SH
521 #: build/C/man7/arp.7:289 build/C/man7/ddp.7:244 build/C/man3/ether_aton.3:145 build/C/man3/gethostbyname.3:441 build/C/man3/inet_ntop.3:112 build/C/man3/inet_pton.3:150 build/C/man7/ip.7:1217 build/C/man7/ipv6.7:400 build/C/man7/netdevice.7:328 build/C/man7/packet.7:363 build/C/man7/raw.7:252 build/C/man3/rcmd.3:278 build/C/man3/rexec.3:158 build/C/man2/shutdown.2:104 build/C/man7/tcp.7:1156 build/C/man7/udplite.7:134 build/C/man7/x25.7:102
522 #, no-wrap
523 msgid "BUGS"
524 msgstr ""
525
526 #. type: Plain text
527 #: build/C/man7/arp.7:293
528 msgid ""
529 "Some timer settings are specified in jiffies, which is architecture- and "
530 "kernel version-dependent; see B<time>(7)."
531 msgstr ""
532
533 #. type: Plain text
534 #: build/C/man7/arp.7:299
535 msgid ""
536 "There is no way to signal positive feedback from user space.  This means "
537 "connection-oriented protocols implemented in user space will generate "
538 "excessive ARP traffic, because ndisc will regularly reprobe the MAC "
539 "address.  The same problem applies for some kernel protocols (e.g., NFS over "
540 "UDP)."
541 msgstr ""
542
543 #. type: Plain text
544 #: build/C/man7/arp.7:302
545 msgid ""
546 "This man page mashes IPv4 specific and shared between IPv4 and IPv6 "
547 "functionality together."
548 msgstr ""
549
550 #. type: SH
551 #: build/C/man7/arp.7:302 build/C/man3/byteorder.3:83 build/C/man3/cmsg.3:217 build/C/man7/ddp.7:249 build/C/man3/endian.3:151 build/C/man3/ether_aton.3:149 build/C/man5/gai.conf.5:93 build/C/man3/getaddrinfo.3:817 build/C/man3/getaddrinfo_a.3:600 build/C/man1/getent.1:368 build/C/man3/gethostbyname.3:446 build/C/man3/getipnodebyname.3:266 build/C/man3/getnameinfo.3:275 build/C/man3/getnetent.3:154 build/C/man3/getnetent_r.3:145 build/C/man2/getpeername.2:143 build/C/man3/getprotoent.3:142 build/C/man3/getprotoent_r.3:237 build/C/man3/getservent.3:159 build/C/man3/getservent_r.3:241 build/C/man5/host.conf.5:199 build/C/man7/hostname.7:85 build/C/man5/hosts.5:115 build/C/man5/hosts.equiv.5:84 build/C/man7/icmp.7:191 build/C/man3/inet.3:297 build/C/man3/inet_ntop.3:118 build/C/man3/inet_pton.3:215 build/C/man7/ip.7:1236 build/C/man7/ipv6.7:411 build/C/man7/netdevice.7:342 build/C/man5/networks.5:74 build/C/man8/nscd.8:85 build/C/man5/nscd.conf.5:232 build/C/man5/nss.5:110 build/C/man5/nsswitch.conf.5:352 build/C/man7/packet.7:394 build/C/man5/protocols.5:81 build/C/man7/raw.7:269 build/C/man3/rcmd.3:285 build/C/man5/resolv.conf.5:287 build/C/man3/resolver.3:274 build/C/man3/rexec.3:167 build/C/man5/services.5:210 build/C/man3/setnetgrent.3:107 build/C/man2/shutdown.2:113 build/C/man7/tcp.7:1168 build/C/man7/udp.7:256 build/C/man7/udplite.7:146 build/C/man7/unix.7:445 build/C/man7/x25.7:118
552 #, no-wrap
553 msgid "SEE ALSO"
554 msgstr ""
555
556 #. type: Plain text
557 #: build/C/man7/arp.7:305
558 msgid "B<capabilities>(7), B<ip>(7)"
559 msgstr ""
560
561 #. type: Plain text
562 #: build/C/man7/arp.7:310
563 msgid ""
564 "RFC\\ 826 for a description of ARP.  RFC\\ 2461 for a description of IPv6 "
565 "neighbor discovery and the base algorithms used.  Linux 2.2+ IPv4 ARP uses "
566 "the IPv6 algorithms when applicable."
567 msgstr ""
568
569 #. type: SH
570 #: build/C/man7/arp.7:310 build/C/man3/byteorder.3:87 build/C/man3/cmsg.3:222 build/C/man7/ddp.7:254 build/C/man3/endian.3:153 build/C/man3/ether_aton.3:151 build/C/man5/gai.conf.5:96 build/C/man3/getaddrinfo.3:827 build/C/man3/getaddrinfo_a.3:607 build/C/man1/getent.1:370 build/C/man3/gethostbyname.3:460 build/C/man3/getipnodebyname.3:271 build/C/man3/getnameinfo.3:308 build/C/man3/getnetent.3:161 build/C/man3/getnetent_r.3:148 build/C/man2/getpeername.2:150 build/C/man3/getprotoent.3:147 build/C/man3/getprotoent_r.3:240 build/C/man3/getservent.3:164 build/C/man3/getservent_r.3:244 build/C/man5/host.conf.5:204 build/C/man7/hostname.7:93 build/C/man5/hosts.5:126 build/C/man5/hosts.equiv.5:88 build/C/man7/icmp.7:195 build/C/man3/inet.3:307 build/C/man3/inet_ntop.3:122 build/C/man3/inet_pton.3:219 build/C/man7/ip.7:1254 build/C/man7/ipv6.7:418 build/C/man7/netdevice.7:347 build/C/man5/networks.5:80 build/C/man8/nscd.8:91 build/C/man5/nscd.conf.5:237 build/C/man5/nss.5:112 build/C/man5/nsswitch.conf.5:355 build/C/man7/packet.7:408 build/C/man5/protocols.5:86 build/C/man7/raw.7:282 build/C/man3/rcmd.3:293 build/C/man5/resolv.conf.5:294 build/C/man3/resolver.3:280 build/C/man3/rexec.3:170 build/C/man5/services.5:222 build/C/man3/setnetgrent.3:111 build/C/man2/shutdown.2:117 build/C/man7/tcp.7:1194 build/C/man7/udp.7:267 build/C/man7/udplite.7:156 build/C/man7/unix.7:454 build/C/man7/x25.7:127
571 #, no-wrap
572 msgid "COLOPHON"
573 msgstr ""
574
575 #. type: Plain text
576 #: build/C/man7/arp.7:317 build/C/man3/byteorder.3:94 build/C/man3/cmsg.3:229 build/C/man7/ddp.7:261 build/C/man3/endian.3:160 build/C/man3/ether_aton.3:158 build/C/man5/gai.conf.5:103 build/C/man3/getaddrinfo.3:834 build/C/man3/getaddrinfo_a.3:614 build/C/man1/getent.1:377 build/C/man3/gethostbyname.3:467 build/C/man3/getipnodebyname.3:278 build/C/man3/getnameinfo.3:315 build/C/man3/getnetent.3:168 build/C/man3/getnetent_r.3:155 build/C/man2/getpeername.2:157 build/C/man3/getprotoent.3:154 build/C/man3/getprotoent_r.3:247 build/C/man3/getservent.3:171 build/C/man3/getservent_r.3:251 build/C/man5/host.conf.5:211 build/C/man7/hostname.7:100 build/C/man5/hosts.5:133 build/C/man5/hosts.equiv.5:95 build/C/man7/icmp.7:202 build/C/man3/inet.3:314 build/C/man3/inet_ntop.3:129 build/C/man3/inet_pton.3:226 build/C/man7/ip.7:1261 build/C/man7/ipv6.7:425 build/C/man7/netdevice.7:354 build/C/man5/networks.5:87 build/C/man8/nscd.8:98 build/C/man5/nscd.conf.5:244 build/C/man5/nss.5:119 build/C/man5/nsswitch.conf.5:362 build/C/man7/packet.7:415 build/C/man5/protocols.5:93 build/C/man7/raw.7:289 build/C/man3/rcmd.3:300 build/C/man5/resolv.conf.5:301 build/C/man3/resolver.3:287 build/C/man3/rexec.3:177 build/C/man5/services.5:229 build/C/man3/setnetgrent.3:118 build/C/man2/shutdown.2:124 build/C/man7/tcp.7:1201 build/C/man7/udp.7:274 build/C/man7/udplite.7:163 build/C/man7/unix.7:461 build/C/man7/x25.7:134
577 msgid ""
578 "This page is part of release 3.54 of the Linux I<man-pages> project.  A "
579 "description of the project, and information about reporting bugs, can be "
580 "found at \\%http://www.kernel.org/doc/man-pages/."
581 msgstr ""
582
583 #. type: TH
584 #: build/C/man3/byteorder.3:32
585 #, no-wrap
586 msgid "BYTEORDER"
587 msgstr ""
588
589 #. type: TH
590 #: build/C/man3/byteorder.3:32
591 #, no-wrap
592 msgid "2009-01-15"
593 msgstr ""
594
595 #. type: TH
596 #: build/C/man3/byteorder.3:32 build/C/man3/endian.3:28 build/C/man3/ether_aton.3:31 build/C/man3/getaddrinfo.3:43 build/C/man3/getaddrinfo_a.3:29 build/C/man3/getnameinfo.3:10 build/C/man3/getnetent.3:30 build/C/man3/getnetent_r.3:26 build/C/man3/getprotoent.3:30 build/C/man3/getprotoent_r.3:26 build/C/man3/getservent.3:34 build/C/man3/getservent_r.3:26 build/C/man3/inet.3:42 build/C/man8/nscd.8:23 build/C/man5/nscd.conf.5:20 build/C/man3/resolver.3:32 build/C/man3/setnetgrent.3:10
597 #, no-wrap
598 msgid "GNU"
599 msgstr ""
600
601 #. type: Plain text
602 #: build/C/man3/byteorder.3:36
603 msgid ""
604 "htonl, htons, ntohl, ntohs - convert values between host and network byte "
605 "order"
606 msgstr ""
607
608 #. type: SH
609 #: build/C/man3/byteorder.3:36 build/C/man3/cmsg.3:14 build/C/man7/ddp.7:15 build/C/man3/endian.3:33 build/C/man3/ether_aton.3:35 build/C/man3/getaddrinfo.3:47 build/C/man3/getaddrinfo_a.3:33 build/C/man1/getent.1:27 build/C/man3/gethostbyname.3:46 build/C/man3/getipnodebyname.3:30 build/C/man3/getnameinfo.3:13 build/C/man3/getnetent.3:34 build/C/man3/getnetent_r.3:30 build/C/man2/getpeername.2:45 build/C/man3/getprotoent.3:34 build/C/man3/getprotoent_r.3:30 build/C/man3/getservent.3:38 build/C/man3/getservent_r.3:30 build/C/man5/hosts.5:30 build/C/man3/inet.3:46 build/C/man3/inet_ntop.3:29 build/C/man3/inet_pton.3:30 build/C/man7/ip.7:39 build/C/man7/ipv6.7:89 build/C/man7/netdevice.7:21 build/C/man7/packet.7:15 build/C/man7/raw.7:16 build/C/man3/rcmd.3:48 build/C/man5/resolv.conf.5:27 build/C/man3/resolver.3:36 build/C/man3/rexec.3:44 build/C/man3/setnetgrent.3:14 build/C/man2/shutdown.2:43 build/C/man7/tcp.7:68 build/C/man7/udp.7:15 build/C/man7/udplite.7:30 build/C/man7/unix.7:21 build/C/man7/x25.7:15
610 #, no-wrap
611 msgid "SYNOPSIS"
612 msgstr ""
613
614 #. type: Plain text
615 #: build/C/man3/byteorder.3:39 build/C/man3/inet_ntop.3:32 build/C/man3/inet_pton.3:33
616 #, no-wrap
617 msgid "B<#include E<lt>arpa/inet.hE<gt>>\n"
618 msgstr ""
619
620 #. type: Plain text
621 #: build/C/man3/byteorder.3:41
622 #, no-wrap
623 msgid "B<uint32_t htonl(uint32_t >I<hostlong>B<);>\n"
624 msgstr ""
625
626 #. type: Plain text
627 #: build/C/man3/byteorder.3:43
628 #, no-wrap
629 msgid "B<uint16_t htons(uint16_t >I<hostshort>B<);>\n"
630 msgstr ""
631
632 #. type: Plain text
633 #: build/C/man3/byteorder.3:45
634 #, no-wrap
635 msgid "B<uint32_t ntohl(uint32_t >I<netlong>B<);>\n"
636 msgstr ""
637
638 #. type: Plain text
639 #: build/C/man3/byteorder.3:47
640 #, no-wrap
641 msgid "B<uint16_t ntohs(uint16_t >I<netshort>B<);>\n"
642 msgstr ""
643
644 #. type: Plain text
645 #: build/C/man3/byteorder.3:54
646 msgid ""
647 "The B<htonl>()  function converts the unsigned integer I<hostlong> from host "
648 "byte order to network byte order."
649 msgstr ""
650
651 #. type: Plain text
652 #: build/C/man3/byteorder.3:60
653 msgid ""
654 "The B<htons>()  function converts the unsigned short integer I<hostshort> "
655 "from host byte order to network byte order."
656 msgstr ""
657
658 #. type: Plain text
659 #: build/C/man3/byteorder.3:66
660 msgid ""
661 "The B<ntohl>()  function converts the unsigned integer I<netlong> from "
662 "network byte order to host byte order."
663 msgstr ""
664
665 #. type: Plain text
666 #: build/C/man3/byteorder.3:72
667 msgid ""
668 "The B<ntohs>()  function converts the unsigned short integer I<netshort> "
669 "from network byte order to host byte order."
670 msgstr ""
671
672 #. type: Plain text
673 #: build/C/man3/byteorder.3:76
674 msgid ""
675 "On the i386 the host byte order is Least Significant Byte first, whereas the "
676 "network byte order, as used on the Internet, is Most Significant Byte first."
677 msgstr ""
678
679 #. type: SH
680 #: build/C/man3/byteorder.3:76 build/C/man3/cmsg.3:141 build/C/man3/endian.3:76 build/C/man3/ether_aton.3:143 build/C/man3/getaddrinfo.3:584 build/C/man3/getaddrinfo_a.3:305 build/C/man3/gethostbyname.3:320 build/C/man3/getipnodebyname.3:258 build/C/man3/getnameinfo.3:206 build/C/man3/getnetent.3:145 build/C/man3/getnetent_r.3:141 build/C/man2/getpeername.2:101 build/C/man3/getprotoent.3:140 build/C/man3/getprotoent_r.3:131 build/C/man3/getservent.3:157 build/C/man3/getservent_r.3:130 build/C/man3/inet.3:210 build/C/man3/inet_ntop.3:100 build/C/man3/inet_pton.3:129 build/C/man3/rcmd.3:270 build/C/man3/resolver.3:272 build/C/man3/rexec.3:149 build/C/man3/setnetgrent.3:92 build/C/man2/shutdown.2:91
681 #, no-wrap
682 msgid "CONFORMING TO"
683 msgstr ""
684
685 #. type: Plain text
686 #: build/C/man3/byteorder.3:78 build/C/man3/inet_pton.3:131
687 msgid "POSIX.1-2001."
688 msgstr ""
689
690 #. type: Plain text
691 #: build/C/man3/byteorder.3:83
692 msgid ""
693 "Some systems require the inclusion of I<E<lt>netinet/in.hE<gt>> instead of "
694 "I<E<lt>arpa/inet.hE<gt>>."
695 msgstr ""
696
697 #. type: Plain text
698 #: build/C/man3/byteorder.3:87
699 msgid "B<endian>(3), B<gethostbyname>(3), B<getservent>(3)"
700 msgstr ""
701
702 #. type: TH
703 #: build/C/man3/cmsg.3:11
704 #, no-wrap
705 msgid "CMSG"
706 msgstr ""
707
708 #. type: TH
709 #: build/C/man3/cmsg.3:11 build/C/man7/ddp.7:12
710 #, no-wrap
711 msgid "2008-11-20"
712 msgstr ""
713
714 #. type: Plain text
715 #: build/C/man3/cmsg.3:14
716 msgid "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - access ancillary data"
717 msgstr ""
718
719 #. type: Plain text
720 #: build/C/man3/cmsg.3:16 build/C/man7/ddp.7:17 build/C/man2/getpeername.2:47 build/C/man7/ip.7:41 build/C/man7/ipv6.7:91 build/C/man7/raw.7:18 build/C/man2/shutdown.2:45 build/C/man7/tcp.7:70 build/C/man7/udp.7:17 build/C/man7/udplite.7:32 build/C/man7/unix.7:23 build/C/man7/x25.7:17
721 msgid "B<#include E<lt>sys/socket.hE<gt>>"
722 msgstr ""
723
724 #. type: Plain text
725 #: build/C/man3/cmsg.3:18
726 msgid "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>"
727 msgstr ""
728
729 #. type: Plain text
730 #: build/C/man3/cmsg.3:20
731 msgid ""
732 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<, struct cmsghdr "
733 "*>I<cmsg>B<);>"
734 msgstr ""
735
736 #. type: Plain text
737 #: build/C/man3/cmsg.3:22
738 msgid "B<size_t CMSG_ALIGN(size_t >I<length>B<);>"
739 msgstr ""
740
741 #. type: Plain text
742 #: build/C/man3/cmsg.3:24
743 msgid "B<size_t CMSG_SPACE(size_t >I<length>B<);>"
744 msgstr ""
745
746 #. type: Plain text
747 #: build/C/man3/cmsg.3:26
748 msgid "B<size_t CMSG_LEN(size_t >I<length>B<);>"
749 msgstr ""
750
751 #. type: Plain text
752 #: build/C/man3/cmsg.3:28
753 msgid "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>"
754 msgstr ""
755
756 #. type: Plain text
757 #: build/C/man3/cmsg.3:36
758 #, no-wrap
759 msgid ""
760 "struct cmsghdr {\n"
761 "    socklen_t cmsg_len;    /* data byte count, including header */\n"
762 "    int       cmsg_level;  /* originating protocol */\n"
763 "    int       cmsg_type;   /* protocol-specific type */\n"
764 "    /* followed by unsigned char cmsg_data[]; */\n"
765 "};\n"
766 msgstr ""
767
768 #. type: Plain text
769 #: build/C/man3/cmsg.3:51
770 msgid ""
771 "These macros are used to create and access control messages (also called "
772 "ancillary data) that are not a part of the socket payload.  This control "
773 "information may include the interface the packet was received on, various "
774 "rarely used header fields, an extended error description, a set of file "
775 "descriptors or UNIX credentials.  For instance, control messages can be used "
776 "to send additional header fields such as IP options.  Ancillary data is sent "
777 "by calling B<sendmsg>(2)  and received by calling B<recvmsg>(2).  See their "
778 "manual pages for more information."
779 msgstr ""
780
781 #. type: Plain text
782 #: build/C/man3/cmsg.3:62
783 msgid ""
784 "Ancillary data is a sequence of I<struct cmsghdr> structures with appended "
785 "data.  This sequence should be accessed using only the macros described in "
786 "this manual page and never directly.  See the specific protocol man pages "
787 "for the available control message types.  The maximum ancillary buffer size "
788 "allowed per socket can be set using I</proc/sys/net/core/optmem_max>; see "
789 "B<socket>(7)."
790 msgstr ""
791
792 #. type: Plain text
793 #: build/C/man3/cmsg.3:69
794 msgid ""
795 "B<CMSG_FIRSTHDR>()  returns a pointer to the first I<cmsghdr> in the "
796 "ancillary data buffer associated with the passed I<msghdr>."
797 msgstr ""
798
799 #. type: Plain text
800 #: build/C/man3/cmsg.3:76
801 msgid ""
802 "B<CMSG_NXTHDR>()  returns the next valid I<cmsghdr> after the passed "
803 "I<cmsghdr>.  It returns NULL when there isn't enough space left in the "
804 "buffer."
805 msgstr ""
806
807 #. type: Plain text
808 #: build/C/man3/cmsg.3:81
809 msgid ""
810 "B<CMSG_ALIGN>(), given a length, returns it including the required "
811 "alignment.  This is a constant expression."
812 msgstr ""
813
814 #. type: Plain text
815 #: build/C/man3/cmsg.3:86
816 msgid ""
817 "B<CMSG_SPACE>()  returns the number of bytes an ancillary element with "
818 "payload of the passed data length occupies.  This is a constant expression."
819 msgstr ""
820
821 #. type: Plain text
822 #: build/C/man3/cmsg.3:90
823 msgid "B<CMSG_DATA>()  returns a pointer to the data portion of a I<cmsghdr>."
824 msgstr ""
825
826 #. type: Plain text
827 #: build/C/man3/cmsg.3:101
828 msgid ""
829 "B<CMSG_LEN>()  returns the value to store in the I<cmsg_len> member of the "
830 "I<cmsghdr> structure, taking into account any necessary alignment.  It takes "
831 "the data length as an argument.  This is a constant expression."
832 msgstr ""
833
834 #. type: Plain text
835 #: build/C/man3/cmsg.3:134
836 msgid ""
837 "To create ancillary data, first initialize the I<msg_controllen> member of "
838 "the I<msghdr> with the length of the control message buffer.  Use "
839 "B<CMSG_FIRSTHDR>()  on the I<msghdr> to get the first control message and "
840 "B<CMSG_NXTHDR>()  to get all subsequent ones.  In each control message, "
841 "initialize I<cmsg_len> (with B<CMSG_LEN>()), the other I<cmsghdr> header "
842 "fields, and the data portion using B<CMSG_DATA>().  Finally, the "
843 "I<msg_controllen> field of the I<msghdr> should be set to the sum of the "
844 "B<CMSG_SPACE>()  of the length of all control messages in the buffer.  For "
845 "more information on the I<msghdr>, see B<recvmsg>(2)."
846 msgstr ""
847
848 #. type: Plain text
849 #: build/C/man3/cmsg.3:141
850 msgid ""
851 "When the control message buffer is too short to store all messages, the "
852 "B<MSG_CTRUNC> flag is set in the I<msg_flags> member of the I<msghdr>."
853 msgstr ""
854
855 #. type: Plain text
856 #: build/C/man3/cmsg.3:146
857 msgid ""
858 "This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, the "
859 "IPv6 advanced API described in RFC\\ 2292 and the SUSv2.  B<CMSG_ALIGN>()  "
860 "is a Linux extension."
861 msgstr ""
862
863 #. type: SH
864 #: build/C/man3/cmsg.3:146 build/C/man7/ddp.7:226 build/C/man3/endian.3:91 build/C/man3/getaddrinfo.3:589 build/C/man3/getaddrinfo_a.3:308 build/C/man3/gethostbyname.3:344 build/C/man3/getipnodebyname.3:261 build/C/man3/getnameinfo.3:208 build/C/man3/getnetent.3:147 build/C/man2/getpeername.2:105 build/C/man5/host.conf.5:190 build/C/man5/hosts.5:88 build/C/man5/hosts.equiv.5:71 build/C/man7/icmp.7:169 build/C/man3/inet.3:218 build/C/man3/inet_pton.3:131 build/C/man7/ip.7:1155 build/C/man7/ipv6.7:390 build/C/man7/netdevice.7:310 build/C/man8/nscd.8:60 build/C/man5/nsswitch.conf.5:333 build/C/man7/packet.7:300 build/C/man7/raw.7:187 build/C/man3/setnetgrent.3:103 build/C/man2/shutdown.2:95 build/C/man7/unix.7:407
865 #, no-wrap
866 msgid "NOTES"
867 msgstr ""
868
869 #. type: Plain text
870 #: build/C/man3/cmsg.3:151
871 msgid ""
872 "For portability, ancillary data should be accessed using only the macros "
873 "described here.  B<CMSG_ALIGN>()  is a Linux extension and should be not "
874 "used in portable programs."
875 msgstr ""
876
877 #. type: Plain text
878 #: build/C/man3/cmsg.3:161
879 msgid ""
880 "In Linux, B<CMSG_LEN>(), B<CMSG_DATA>(), and B<CMSG_ALIGN>()  are constant "
881 "expressions (assuming their argument is constant); this could be used to "
882 "declare the size of global variables.  This may be not portable, however."
883 msgstr ""
884
885 #. type: SH
886 #: build/C/man3/cmsg.3:161 build/C/man3/endian.3:107 build/C/man5/gai.conf.5:74 build/C/man3/getaddrinfo.3:612 build/C/man3/getaddrinfo_a.3:314 build/C/man3/getnameinfo.3:236 build/C/man3/getprotoent_r.3:135 build/C/man3/getservent_r.3:134 build/C/man5/hosts.5:107 build/C/man3/inet.3:254 build/C/man3/inet_ntop.3:115 build/C/man3/inet_pton.3:156 build/C/man5/nss.5:100 build/C/man7/unix.7:437
887 #, no-wrap
888 msgid "EXAMPLE"
889 msgstr ""
890
891 #. type: Plain text
892 #: build/C/man3/cmsg.3:165
893 msgid "This code looks for the B<IP_TTL> option in a received ancillary buffer:"
894 msgstr ""
895
896 #. type: Plain text
897 #: build/C/man3/cmsg.3:172
898 #, no-wrap
899 msgid ""
900 "struct msghdr msgh;\n"
901 "struct cmsghdr *cmsg;\n"
902 "int *ttlptr;\n"
903 "int received_ttl;\n"
904 msgstr ""
905
906 #. type: Plain text
907 #: build/C/man3/cmsg.3:189
908 #, no-wrap
909 msgid ""
910 "/* Receive auxiliary data in msgh */\n"
911 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
912 "        cmsg = CMSG_NXTHDR(&msgh,cmsg)) {\n"
913 "    if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
914 "            && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
915 "        ttlptr = (int *) CMSG_DATA(cmsg);\n"
916 "        received_ttl = *ttlptr;\n"
917 "        break;\n"
918 "    }\n"
919 "}\n"
920 "if (cmsg == NULL) {\n"
921 "    /*\n"
922 "     * Error: IP_TTL not enabled or small buffer\n"
923 "     * or I/O error.\n"
924 "     */\n"
925 "}\n"
926 msgstr ""
927
928 #. type: Plain text
929 #: build/C/man3/cmsg.3:195
930 msgid ""
931 "The code below passes an array of file descriptors over a UNIX domain socket "
932 "using B<SCM_RIGHTS>:"
933 msgstr ""
934
935 #. type: Plain text
936 #: build/C/man3/cmsg.3:203
937 #, no-wrap
938 msgid ""
939 "struct msghdr msg = {0};\n"
940 "struct cmsghdr *cmsg;\n"
941 "int myfds[NUM_FD]; /* Contains the file descriptors to pass. */\n"
942 "char buf[CMSG_SPACE(sizeof myfds)];  /* ancillary data buffer */\n"
943 "int *fdptr;\n"
944 msgstr ""
945
946 #. type: Plain text
947 #: build/C/man3/cmsg.3:215
948 #, no-wrap
949 msgid ""
950 "msg.msg_control = buf;\n"
951 "msg.msg_controllen = sizeof buf;\n"
952 "cmsg = CMSG_FIRSTHDR(&msg);\n"
953 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
954 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
955 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(int) * NUM_FD);\n"
956 "/* Initialize the payload: */\n"
957 "fdptr = (int *) CMSG_DATA(cmsg);\n"
958 "memcpy(fdptr, myfds, NUM_FD * sizeof(int));\n"
959 "/* Sum of the length of all control messages in the buffer: */\n"
960 "msg.msg_controllen = cmsg-E<gt>cmsg_len;\n"
961 msgstr ""
962
963 #. type: Plain text
964 #: build/C/man3/cmsg.3:220
965 msgid "B<recvmsg>(2), B<sendmsg>(2)"
966 msgstr ""
967
968 #. type: Plain text
969 #: build/C/man3/cmsg.3:222
970 msgid "RFC\\ 2292"
971 msgstr ""
972
973 #. type: TH
974 #: build/C/man7/ddp.7:12
975 #, no-wrap
976 msgid "DDP"
977 msgstr ""
978
979 #. type: Plain text
980 #: build/C/man7/ddp.7:15
981 msgid "ddp - Linux AppleTalk protocol implementation"
982 msgstr ""
983
984 #. type: Plain text
985 #: build/C/man7/ddp.7:19
986 msgid "B<#include E<lt>netatalk/at.hE<gt>>"
987 msgstr ""
988
989 #. type: Plain text
990 #: build/C/man7/ddp.7:21
991 msgid "I<ddp_socket>B< = socket(AF_APPLETALK, SOCK_DGRAM, 0);>"
992 msgstr ""
993
994 #. type: Plain text
995 #: build/C/man7/ddp.7:23
996 msgid "I<raw_socket>B< = socket(AF_APPLETALK, SOCK_RAW, >I<protocol>B<);>"
997 msgstr ""
998
999 #. type: Plain text
1000 #: build/C/man7/ddp.7:34
1001 msgid ""
1002 "Linux implements the Appletalk protocols described in I<Inside Appletalk>.  "
1003 "Only the DDP layer and AARP are present in the kernel.  They are designed to "
1004 "be used via the B<netatalk> protocol libraries.  This page documents the "
1005 "interface for those who wish or need to use the DDP layer directly."
1006 msgstr ""
1007
1008 #. type: Plain text
1009 #: build/C/man7/ddp.7:39
1010 msgid ""
1011 "The communication between Appletalk and the user program works using a "
1012 "BSD-compatible socket interface.  For more information on sockets, see "
1013 "B<socket>(7)."
1014 msgstr ""
1015
1016 #. type: Plain text
1017 #: build/C/man7/ddp.7:60
1018 msgid ""
1019 "An AppleTalk socket is created by calling the B<socket>(2)  function with a "
1020 "B<AF_APPLETALK> socket family argument.  Valid socket types are "
1021 "B<SOCK_DGRAM> to open a B<ddp> socket or B<SOCK_RAW> to open a B<raw> "
1022 "socket.  I<protocol> is the Appletalk protocol to be received or sent.  For "
1023 "B<SOCK_RAW> you must specify B<ATPROTO_DDP>."
1024 msgstr ""
1025
1026 #. type: Plain text
1027 #: build/C/man7/ddp.7:65
1028 msgid ""
1029 "Raw sockets may be opened only by a process with effective user ID 0 or when "
1030 "the process has the B<CAP_NET_RAW> capability."
1031 msgstr ""
1032
1033 #. type: SS
1034 #: build/C/man7/ddp.7:65 build/C/man7/ip.7:123 build/C/man7/ipv6.7:142 build/C/man7/raw.7:93 build/C/man7/udp.7:98 build/C/man7/udplite.7:58 build/C/man7/unix.7:55
1035 #, no-wrap
1036 msgid "Address format"
1037 msgstr ""
1038
1039 #. type: Plain text
1040 #: build/C/man7/ddp.7:68
1041 msgid ""
1042 "An Appletalk socket address is defined as a combination of a network number, "
1043 "a node number, and a port number."
1044 msgstr ""
1045
1046 #. type: Plain text
1047 #: build/C/man7/ddp.7:75
1048 #, no-wrap
1049 msgid ""
1050 "struct at_addr {\n"
1051 "    unsigned short s_net;\n"
1052 "    unsigned char  s_node;\n"
1053 "};\n"
1054 msgstr ""
1055
1056 #. type: Plain text
1057 #: build/C/man7/ddp.7:81
1058 #, no-wrap
1059 msgid ""
1060 "struct sockaddr_atalk {\n"
1061 "    sa_family_t    sat_family;    /* address family */\n"
1062 "    unsigned char  sat_port;      /* port */\n"
1063 "    struct at_addr sat_addr;      /* net/node */\n"
1064 "};\n"
1065 msgstr ""
1066
1067 #.  FIXME this doesn't make sense [johnl]
1068 #. type: Plain text
1069 #: build/C/man7/ddp.7:120
1070 msgid ""
1071 "I<sat_family> is always set to B<AF_APPLETALK>.  I<sat_port> contains the "
1072 "port.  The port numbers below 129 are known as I<reserved ports>.  Only "
1073 "processes with the effective user ID 0 or the B<CAP_NET_BIND_SERVICE> "
1074 "capability may B<bind>(2)  to these sockets.  I<sat_addr> is the host "
1075 "address.  The I<net> member of I<struct at_addr> contains the host network "
1076 "in network byte order.  The value of B<AT_ANYNET> is a wildcard and also "
1077 "implies \\(lqthis network.\\(rq The I<node> member of I<struct at_addr> "
1078 "contains the host node number.  The value of B<AT_ANYNODE> is a wildcard and "
1079 "also implies \\(lqthis node.\\(rq The value of B<ATADDR_BCAST> is a link "
1080 "local broadcast address."
1081 msgstr ""
1082
1083 #. type: SS
1084 #: build/C/man7/ddp.7:120 build/C/man7/ip.7:224 build/C/man7/ipv6.7:192 build/C/man7/packet.7:179 build/C/man7/raw.7:109 build/C/man7/tcp.7:858 build/C/man7/udp.7:178 build/C/man7/udplite.7:67 build/C/man7/unix.7:137 build/C/man7/x25.7:72
1085 #, no-wrap
1086 msgid "Socket options"
1087 msgstr ""
1088
1089 #. type: Plain text
1090 #: build/C/man7/ddp.7:122
1091 msgid "No protocol-specific socket options are supported."
1092 msgstr ""
1093
1094 #. type: Plain text
1095 #: build/C/man7/ddp.7:128
1096 msgid ""
1097 "IP supports a set of I</proc> interfaces to configure some global AppleTalk "
1098 "parameters.  The parameters can be accessed by reading or writing files in "
1099 "the directory I</proc/sys/net/atalk/>."
1100 msgstr ""
1101
1102 #. type: TP
1103 #: build/C/man7/ddp.7:128
1104 #, no-wrap
1105 msgid "I<aarp-expiry-time>"
1106 msgstr ""
1107
1108 #. type: Plain text
1109 #: build/C/man7/ddp.7:131
1110 msgid "The time interval (in seconds) before an AARP cache entry expires."
1111 msgstr ""
1112
1113 #. type: TP
1114 #: build/C/man7/ddp.7:131
1115 #, no-wrap
1116 msgid "I<aarp-resolve-time>"
1117 msgstr ""
1118
1119 #. type: Plain text
1120 #: build/C/man7/ddp.7:134
1121 msgid "The time interval (in seconds) before an AARP cache entry is resolved."
1122 msgstr ""
1123
1124 #. type: TP
1125 #: build/C/man7/ddp.7:134
1126 #, no-wrap
1127 msgid "I<aarp-retransmit-limit>"
1128 msgstr ""
1129
1130 #. type: Plain text
1131 #: build/C/man7/ddp.7:138
1132 msgid ""
1133 "The number of retransmissions of an AARP query before the node is declared "
1134 "dead."
1135 msgstr ""
1136
1137 #. type: TP
1138 #: build/C/man7/ddp.7:138
1139 #, no-wrap
1140 msgid "I<aarp-tick-time>"
1141 msgstr ""
1142
1143 #. type: Plain text
1144 #: build/C/man7/ddp.7:141
1145 msgid "The timer rate (in seconds) for the timer driving AARP."
1146 msgstr ""
1147
1148 #. type: Plain text
1149 #: build/C/man7/ddp.7:144
1150 msgid ""
1151 "The default values match the specification and should never need to be "
1152 "changed."
1153 msgstr ""
1154
1155 #.  FIXME Add a section about multicasting
1156 #. type: Plain text
1157 #: build/C/man7/ddp.7:149
1158 msgid "All ioctls described in B<socket>(7)  apply to DDP."
1159 msgstr ""
1160
1161 #. type: SH
1162 #: build/C/man7/ddp.7:149 build/C/man3/gethostbyname.3:295 build/C/man3/getnetent_r.3:129 build/C/man2/getpeername.2:73 build/C/man3/getprotoent_r.3:119 build/C/man3/getservent_r.3:118 build/C/man3/inet_ntop.3:91 build/C/man7/ip.7:1064 build/C/man7/ipv6.7:349 build/C/man7/packet.7:246 build/C/man7/raw.7:144 build/C/man2/shutdown.2:74 build/C/man7/tcp.7:1131 build/C/man7/udp.7:241 build/C/man7/udplite.7:121 build/C/man7/unix.7:322
1163 #, no-wrap
1164 msgid "ERRORS"
1165 msgstr ""
1166
1167 #. type: TP
1168 #: build/C/man7/ddp.7:153 build/C/man7/ip.7:1068 build/C/man7/raw.7:145
1169 #, no-wrap
1170 msgid "B<EACCES>"
1171 msgstr ""
1172
1173 #. type: Plain text
1174 #: build/C/man7/ddp.7:160
1175 msgid ""
1176 "The user tried to execute an operation without the necessary permissions.  "
1177 "These include sending to a broadcast address without having the broadcast "
1178 "flag set, and trying to bind to a reserved port without effective user ID 0 "
1179 "or B<CAP_NET_BIND_SERVICE>."
1180 msgstr ""
1181
1182 #. type: TP
1183 #: build/C/man7/ddp.7:160 build/C/man7/ip.7:1084 build/C/man7/unix.7:323
1184 #, no-wrap
1185 msgid "B<EADDRINUSE>"
1186 msgstr ""
1187
1188 #. type: Plain text
1189 #: build/C/man7/ddp.7:163 build/C/man7/ip.7:1087
1190 msgid "Tried to bind to an address already in use."
1191 msgstr ""
1192
1193 #. type: TP
1194 #: build/C/man7/ddp.7:163 build/C/man7/ip.7:1087 build/C/man7/packet.7:247
1195 #, no-wrap
1196 msgid "B<EADDRNOTAVAIL>"
1197 msgstr ""
1198
1199 #. type: Plain text
1200 #: build/C/man7/ddp.7:167 build/C/man7/ip.7:1091
1201 msgid ""
1202 "A nonexistent interface was requested or the requested source address was "
1203 "not local."
1204 msgstr ""
1205
1206 #. type: TP
1207 #: build/C/man7/ddp.7:167 build/C/man7/ip.7:1091
1208 #, no-wrap
1209 msgid "B<EAGAIN>"
1210 msgstr ""
1211
1212 #. type: Plain text
1213 #: build/C/man7/ddp.7:170 build/C/man7/ip.7:1094
1214 msgid "Operation on a nonblocking socket would block."
1215 msgstr ""
1216
1217 #. type: TP
1218 #: build/C/man7/ddp.7:170 build/C/man7/ip.7:1094
1219 #, no-wrap
1220 msgid "B<EALREADY>"
1221 msgstr ""
1222
1223 #. type: Plain text
1224 #: build/C/man7/ddp.7:173
1225 msgid "A connection operation on a nonblocking socket is already in progress."
1226 msgstr ""
1227
1228 #. type: TP
1229 #: build/C/man7/ddp.7:173 build/C/man7/ip.7:1097
1230 #, no-wrap
1231 msgid "B<ECONNABORTED>"
1232 msgstr ""
1233
1234 #. type: Plain text
1235 #: build/C/man7/ddp.7:177 build/C/man7/ip.7:1101
1236 msgid "A connection was closed during an B<accept>(2)."
1237 msgstr ""
1238
1239 #. type: TP
1240 #: build/C/man7/ddp.7:177 build/C/man7/ip.7:1101
1241 #, no-wrap
1242 msgid "B<EHOSTUNREACH>"
1243 msgstr ""
1244
1245 #. type: Plain text
1246 #: build/C/man7/ddp.7:180
1247 msgid "No routing table entry matches the destination address."
1248 msgstr ""
1249
1250 #. type: TP
1251 #: build/C/man7/ddp.7:180 build/C/man2/getpeername.2:85 build/C/man7/ip.7:1106 build/C/man7/packet.7:253 build/C/man7/raw.7:152 build/C/man2/shutdown.2:79 build/C/man7/unix.7:339
1252 #, no-wrap
1253 msgid "B<EINVAL>"
1254 msgstr ""
1255
1256 #. type: Plain text
1257 #: build/C/man7/ddp.7:183
1258 msgid "Invalid argument passed."
1259 msgstr ""
1260
1261 #. type: TP
1262 #: build/C/man7/ddp.7:183 build/C/man7/ip.7:1112 build/C/man7/unix.7:348
1263 #, no-wrap
1264 msgid "B<EISCONN>"
1265 msgstr ""
1266
1267 #. type: Plain text
1268 #: build/C/man7/ddp.7:187 build/C/man7/ip.7:1116
1269 msgid "B<connect>(2)  was called on an already connected socket."
1270 msgstr ""
1271
1272 #. type: TP
1273 #: build/C/man7/ddp.7:187 build/C/man7/ip.7:1116 build/C/man7/packet.7:256 build/C/man7/raw.7:155
1274 #, no-wrap
1275 msgid "B<EMSGSIZE>"
1276 msgstr ""
1277
1278 #. type: Plain text
1279 #: build/C/man7/ddp.7:190
1280 msgid "Datagram is bigger than the DDP MTU."
1281 msgstr ""
1282
1283 #. type: TP
1284 #: build/C/man7/ddp.7:190 build/C/man7/ipv6.7:351 build/C/man7/packet.7:265
1285 #, no-wrap
1286 msgid "B<ENODEV>"
1287 msgstr ""
1288
1289 #. type: Plain text
1290 #: build/C/man7/ddp.7:193
1291 msgid "Network device not available or not capable of sending IP."
1292 msgstr ""
1293
1294 #. type: TP
1295 #: build/C/man7/ddp.7:193 build/C/man3/getnetent_r.3:130 build/C/man3/getprotoent_r.3:120 build/C/man3/getservent_r.3:119 build/C/man7/ip.7:1124 build/C/man7/packet.7:268 build/C/man7/unix.7:353
1296 #, no-wrap
1297 msgid "B<ENOENT>"
1298 msgstr ""
1299
1300 #. type: Plain text
1301 #: build/C/man7/ddp.7:197 build/C/man7/ip.7:1128
1302 msgid "B<SIOCGSTAMP> was called on a socket where no packet arrived."
1303 msgstr ""
1304
1305 #. type: TP
1306 #: build/C/man7/ddp.7:197
1307 #, no-wrap
1308 msgid "B<ENOMEM> and B<ENOBUFS>"
1309 msgstr ""
1310
1311 #. type: Plain text
1312 #: build/C/man7/ddp.7:200
1313 msgid "Not enough memory available."
1314 msgstr ""
1315
1316 #. type: TP
1317 #: build/C/man7/ddp.7:200 build/C/man7/ip.7:1128
1318 #, no-wrap
1319 msgid "B<ENOPKG>"
1320 msgstr ""
1321
1322 #. type: Plain text
1323 #: build/C/man7/ddp.7:203 build/C/man7/ip.7:1131
1324 msgid "A kernel subsystem was not configured."
1325 msgstr ""
1326
1327 #. type: TP
1328 #: build/C/man7/ddp.7:203 build/C/man7/ip.7:1131
1329 #, no-wrap
1330 msgid "B<ENOPROTOOPT> and B<EOPNOTSUPP>"
1331 msgstr ""
1332
1333 #. type: Plain text
1334 #: build/C/man7/ddp.7:206 build/C/man7/ip.7:1134
1335 msgid "Invalid socket option passed."
1336 msgstr ""
1337
1338 #. type: TP
1339 #: build/C/man7/ddp.7:206 build/C/man2/getpeername.2:93 build/C/man7/ip.7:1134 build/C/man7/packet.7:271 build/C/man2/shutdown.2:84 build/C/man7/unix.7:361
1340 #, no-wrap
1341 msgid "B<ENOTCONN>"
1342 msgstr ""
1343
1344 #. type: Plain text
1345 #: build/C/man7/ddp.7:210 build/C/man7/ip.7:1138
1346 msgid ""
1347 "The operation is defined only on a connected socket, but the socket wasn't "
1348 "connected."
1349 msgstr ""
1350
1351 #. type: TP
1352 #: build/C/man7/ddp.7:210 build/C/man7/ip.7:1138 build/C/man7/packet.7:277 build/C/man7/raw.7:166 build/C/man7/unix.7:368
1353 #, no-wrap
1354 msgid "B<EPERM>"
1355 msgstr ""
1356
1357 #. type: Plain text
1358 #: build/C/man7/ddp.7:215
1359 msgid ""
1360 "User doesn't have permission to set high priority, make a configuration "
1361 "change, or send signals to the requested process or group."
1362 msgstr ""
1363
1364 #. type: TP
1365 #: build/C/man7/ddp.7:215 build/C/man7/ip.7:1142 build/C/man7/tcp.7:1138 build/C/man7/unix.7:372
1366 #, no-wrap
1367 msgid "B<EPIPE>"
1368 msgstr ""
1369
1370 #. type: Plain text
1371 #: build/C/man7/ddp.7:218 build/C/man7/ip.7:1145
1372 msgid "The connection was unexpectedly closed or shut down by the other end."
1373 msgstr ""
1374
1375 #. type: TP
1376 #: build/C/man7/ddp.7:218 build/C/man7/ip.7:1145 build/C/man7/unix.7:394
1377 #, no-wrap
1378 msgid "B<ESOCKTNOSUPPORT>"
1379 msgstr ""
1380
1381 #. type: Plain text
1382 #: build/C/man7/ddp.7:221
1383 msgid "The socket was unconfigured, or an unknown socket type was requested."
1384 msgstr ""
1385
1386 #. type: Plain text
1387 #: build/C/man7/ddp.7:226
1388 msgid ""
1389 "Appletalk is supported by Linux 2.0 or higher.  The I</proc> interfaces "
1390 "exist since Linux 2.2."
1391 msgstr ""
1392
1393 #. type: Plain text
1394 #: build/C/man7/ddp.7:232
1395 msgid ""
1396 "Be very careful with the B<SO_BROADCAST> option - it is not privileged in "
1397 "Linux.  It is easy to overload the network with careless sending to "
1398 "broadcast addresses."
1399 msgstr ""
1400
1401 #. type: SS
1402 #: build/C/man7/ddp.7:232 build/C/man7/ip.7:1204 build/C/man7/packet.7:331
1403 #, no-wrap
1404 msgid "Compatibility"
1405 msgstr ""
1406
1407 #. type: Plain text
1408 #: build/C/man7/ddp.7:239
1409 msgid ""
1410 "The basic AppleTalk socket interface is compatible with B<netatalk> on "
1411 "BSD-derived systems.  Many BSD systems fail to check B<SO_BROADCAST> when "
1412 "sending broadcast frames; this can lead to compatibility problems."
1413 msgstr ""
1414
1415 #. type: Plain text
1416 #: build/C/man7/ddp.7:244
1417 msgid ""
1418 "The raw socket mode is unique to Linux and exists to support the alternative "
1419 "CAP package and AppleTalk monitoring tools more easily."
1420 msgstr ""
1421
1422 #. type: Plain text
1423 #: build/C/man7/ddp.7:246 build/C/man7/ip.7:1219
1424 msgid "There are too many inconsistent error values."
1425 msgstr ""
1426
1427 #. type: Plain text
1428 #: build/C/man7/ddp.7:249
1429 msgid ""
1430 "The ioctls used to configure routing tables, devices, AARP tables and other "
1431 "devices are not yet described."
1432 msgstr ""
1433
1434 #. type: Plain text
1435 #: build/C/man7/ddp.7:254
1436 msgid "B<recvmsg>(2), B<sendmsg>(2), B<capabilities>(7), B<socket>(7)"
1437 msgstr ""
1438
1439 #. type: TH
1440 #: build/C/man3/endian.3:28
1441 #, no-wrap
1442 msgid "ENDIAN"
1443 msgstr ""
1444
1445 #. type: TH
1446 #: build/C/man3/endian.3:28 build/C/man3/getnetent_r.3:26 build/C/man3/getprotoent_r.3:26 build/C/man3/getservent_r.3:26
1447 #, no-wrap
1448 msgid "2010-09-10"
1449 msgstr ""
1450
1451 #. type: Plain text
1452 #: build/C/man3/endian.3:33
1453 msgid ""
1454 "htobe16, htole16, be16toh, le16toh, htobe32, htole32, be32toh, le32toh, "
1455 "htobe64, htole64, be64toh, le64toh - convert values between host and "
1456 "big-/little-endian byte order"
1457 msgstr ""
1458
1459 #. type: Plain text
1460 #: build/C/man3/endian.3:37
1461 #, no-wrap
1462 msgid ""
1463 "B<#define _BSD_SOURCE>             /* See feature_test_macros(7) */\n"
1464 "B<#include E<lt>endian.hE<gt>>\n"
1465 msgstr ""
1466
1467 #. type: Plain text
1468 #: build/C/man3/endian.3:42
1469 #, no-wrap
1470 msgid ""
1471 "B<uint16_t htobe16(uint16_t >I<host_16bits>B<);>\n"
1472 "B<uint16_t htole16(uint16_t >I<host_16bits>B<);>\n"
1473 "B<uint16_t be16toh(uint16_t >I<big_endian_16bits>B<);>\n"
1474 "B<uint16_t le16toh(uint16_t >I<little_endian_16bits>B<);>\n"
1475 msgstr ""
1476
1477 #. type: Plain text
1478 #: build/C/man3/endian.3:47
1479 #, no-wrap
1480 msgid ""
1481 "B<uint32_t htobe32(uint32_t >I<host_32bits>B<);>\n"
1482 "B<uint32_t htole32(uint32_t >I<host_32bits>B<);>\n"
1483 "B<uint32_t be32toh(uint32_t >I<big_endian_32bits>B<);>\n"
1484 "B<uint32_t le32toh(uint32_t >I<little_endian_32bits>B<);>\n"
1485 msgstr ""
1486
1487 #. type: Plain text
1488 #: build/C/man3/endian.3:52
1489 #, no-wrap
1490 msgid ""
1491 "B<uint64_t htobe64(uint64_t >I<host_64bits>B<);>\n"
1492 "B<uint64_t htole64(uint64_t >I<host_64bits>B<);>\n"
1493 "B<uint64_t be64toh(uint64_t >I<big_endian_64bits>B<);>\n"
1494 "B<uint64_t le64toh(uint64_t >I<little_endian_64bits>B<);>\n"
1495 msgstr ""
1496
1497 #. type: Plain text
1498 #: build/C/man3/endian.3:57
1499 msgid ""
1500 "These functions convert the byte encoding of integer values from the byte "
1501 "order that the current CPU (the \"host\") uses, to and from little-endian "
1502 "and big-endian byte order."
1503 msgstr ""
1504
1505 #. type: Plain text
1506 #: build/C/man3/endian.3:62
1507 msgid ""
1508 "The number, I<nn>, in the name of each function indicates the size of "
1509 "integer handled by the function, either 16, 32, or 64 bits."
1510 msgstr ""
1511
1512 #. type: Plain text
1513 #: build/C/man3/endian.3:65
1514 msgid ""
1515 "The functions with names of the form \"htobeI<nn>\" convert from host byte "
1516 "order to big-endian order."
1517 msgstr ""
1518
1519 #. type: Plain text
1520 #: build/C/man3/endian.3:68
1521 msgid ""
1522 "The functions with names of the form \"htoleI<nn>\" convert from host byte "
1523 "order to little-endian order."
1524 msgstr ""
1525
1526 #. type: Plain text
1527 #: build/C/man3/endian.3:71
1528 msgid ""
1529 "The functions with names of the form \"beI<nn>toh\" convert from big-endian "
1530 "order to host byte order."
1531 msgstr ""
1532
1533 #. type: Plain text
1534 #: build/C/man3/endian.3:74
1535 msgid ""
1536 "The functions with names of the form \"leI<nn>toh\" convert from "
1537 "little-endian order to host byte order."
1538 msgstr ""
1539
1540 #. type: Plain text
1541 #: build/C/man3/endian.3:76
1542 msgid "These functions were added to glibc in version 2.9."
1543 msgstr ""
1544
1545 #. type: Plain text
1546 #: build/C/man3/endian.3:91
1547 msgid ""
1548 "These functions are nonstandard.  Similar functions are present on the BSDs, "
1549 "where the required header file is I<E<lt>sys/endian.hE<gt>> instead of "
1550 "I<E<lt>endian.hE<gt>>.  Unfortunately, NetBSD, FreeBSD, and glibc haven't "
1551 "followed the original OpenBSD naming convention for these functions, whereby "
1552 "the I<nn> component always appears at the end of the function name (thus, "
1553 "for example, in NetBSD, FreeBSD, and glibc, the equivalent of OpenBSDs "
1554 "\"betoh32\" is \"be32toh\")."
1555 msgstr ""
1556
1557 #. type: Plain text
1558 #: build/C/man3/endian.3:99
1559 msgid ""
1560 "These functions are similar to the older B<byteorder>(3)  family of "
1561 "functions.  For example, B<be32toh>()  is identical to B<ntohl>()B<.>"
1562 msgstr ""
1563
1564 #. type: Plain text
1565 #: build/C/man3/endian.3:107
1566 msgid ""
1567 "The advantage of the B<byteorder>(3)  functions is that they are standard "
1568 "functions available on all UNIX systems.  On the other hand, the fact that "
1569 "they were designed for use in the context of TCP/IP means that they lack the "
1570 "64-bit and little-endian variants described in this page."
1571 msgstr ""
1572
1573 #. type: Plain text
1574 #: build/C/man3/endian.3:114
1575 msgid ""
1576 "The program below display the results of converting an integer from host "
1577 "byte order to both little-endian and big-endian byte order.  Since host byte "
1578 "order is either little-endian or big-endian, only one of these conversions "
1579 "will have an effect.  When we run this program on a little-endian system "
1580 "such as x86-32, we see the following:"
1581 msgstr ""
1582
1583 #. type: Plain text
1584 #: build/C/man3/endian.3:121
1585 #, no-wrap
1586 msgid ""
1587 "$ B<./a.out>\n"
1588 "x.u32 = 0x44332211\n"
1589 "htole32(x.u32) = 0x44332211\n"
1590 "htobe32(x.u32) = 0x11223344\n"
1591 msgstr ""
1592
1593 #. type: SS
1594 #: build/C/man3/endian.3:123 build/C/man3/getprotoent_r.3:162 build/C/man3/getservent_r.3:160 build/C/man3/inet.3:270 build/C/man3/inet_pton.3:173
1595 #, no-wrap
1596 msgid "Program source"
1597 msgstr ""
1598
1599 #. type: Plain text
1600 #: build/C/man3/endian.3:130
1601 #, no-wrap
1602 msgid ""
1603 "#include E<lt>endian.hE<gt>\n"
1604 "#include E<lt>stdint.hE<gt>\n"
1605 "#include E<lt>stdio.hE<gt>\n"
1606 "#include E<lt>stdlib.hE<gt>\n"
1607 msgstr ""
1608
1609 #. type: Plain text
1610 #: build/C/man3/endian.3:138
1611 #, no-wrap
1612 msgid ""
1613 "int\n"
1614 "main(int argc, char *argv[])\n"
1615 "{\n"
1616 "    union {\n"
1617 "\tuint32_t u32;\n"
1618 "\tuint8_t arr[4];\n"
1619 "    } x;\n"
1620 msgstr ""
1621
1622 #. type: Plain text
1623 #: build/C/man3/endian.3:143
1624 #, no-wrap
1625 msgid ""
1626 "    x.arr[0] = 0x11;\t/* Lowest-address byte */\n"
1627 "    x.arr[1] = 0x22;\n"
1628 "    x.arr[2] = 0x33;\n"
1629 "    x.arr[3] = 0x44;\t/* Highest-address byte */\n"
1630 msgstr ""
1631
1632 #. type: Plain text
1633 #: build/C/man3/endian.3:147
1634 #, no-wrap
1635 msgid ""
1636 "    printf(\"x.u32 = 0x%x\\en\", x.u32);\n"
1637 "    printf(\"htole32(x.u32) = 0x%x\\en\", htole32(x.u32));\n"
1638 "    printf(\"htobe32(x.u32) = 0x%x\\en\", htobe32(x.u32));\n"
1639 msgstr ""
1640
1641 #. type: Plain text
1642 #: build/C/man3/endian.3:150 build/C/man3/getaddrinfo.3:816 build/C/man3/getprotoent_r.3:236 build/C/man3/getservent_r.3:240 build/C/man3/inet_pton.3:214
1643 #, no-wrap
1644 msgid ""
1645 "    exit(EXIT_SUCCESS);\n"
1646 "}\n"
1647 msgstr ""
1648
1649 #. type: Plain text
1650 #: build/C/man3/endian.3:153
1651 msgid "B<byteorder>(3)"
1652 msgstr ""
1653
1654 #. type: TH
1655 #: build/C/man3/ether_aton.3:31
1656 #, no-wrap
1657 msgid "ETHER_ATON"
1658 msgstr ""
1659
1660 #. type: TH
1661 #: build/C/man3/ether_aton.3:31 build/C/man3/rexec.3:41
1662 #, no-wrap
1663 msgid "2013-07-04"
1664 msgstr ""
1665
1666 #. type: Plain text
1667 #: build/C/man3/ether_aton.3:35
1668 msgid ""
1669 "ether_aton, ether_ntoa, ether_ntohost, ether_hostton, ether_line, "
1670 "ether_ntoa_r, ether_aton_r - Ethernet address manipulation routines"
1671 msgstr ""
1672
1673 #. type: Plain text
1674 #: build/C/man3/ether_aton.3:38
1675 #, no-wrap
1676 msgid "B<#include E<lt>netinet/ether.hE<gt>>\n"
1677 msgstr ""
1678
1679 #. type: Plain text
1680 #: build/C/man3/ether_aton.3:40
1681 #, no-wrap
1682 msgid "B<char *ether_ntoa(const struct ether_addr *>I<addr>B<);>\n"
1683 msgstr ""
1684
1685 #. type: Plain text
1686 #: build/C/man3/ether_aton.3:42
1687 #, no-wrap
1688 msgid "B<struct ether_addr *ether_aton(const char *>I<asc>B<);>\n"
1689 msgstr ""
1690
1691 #. type: Plain text
1692 #: build/C/man3/ether_aton.3:44
1693 #, no-wrap
1694 msgid ""
1695 "B<int ether_ntohost(char *>I<hostname>B<, const struct ether_addr "
1696 "*>I<addr>B<);>\n"
1697 msgstr ""
1698
1699 #. type: Plain text
1700 #: build/C/man3/ether_aton.3:46
1701 #, no-wrap
1702 msgid ""
1703 "B<int ether_hostton(const char *>I<hostname>B<, struct ether_addr "
1704 "*>I<addr>B<);>\n"
1705 msgstr ""
1706
1707 #. type: Plain text
1708 #: build/C/man3/ether_aton.3:49
1709 #, no-wrap
1710 msgid ""
1711 "B<int ether_line(const char *>I<line>B<, struct ether_addr *>I<addr>B<,>\n"
1712 "B<               char *>I<hostname>B<);>\n"
1713 msgstr ""
1714
1715 #. type: Plain text
1716 #: build/C/man3/ether_aton.3:51 build/C/man3/gethostbyname.3:70
1717 #, no-wrap
1718 msgid "/* GNU extensions */\n"
1719 msgstr ""
1720
1721 #. type: Plain text
1722 #: build/C/man3/ether_aton.3:53
1723 #, no-wrap
1724 msgid ""
1725 "B<char *ether_ntoa_r(const struct ether_addr *>I<addr>B<, char "
1726 "*>I<buf>B<);>\n"
1727 msgstr ""
1728
1729 #. type: Plain text
1730 #: build/C/man3/ether_aton.3:56
1731 #, no-wrap
1732 msgid ""
1733 "B<struct ether_addr *ether_aton_r(const char *>I<asc>B<,>\n"
1734 "B<                                struct ether_addr *>I<addr>B<);>\n"
1735 msgstr ""
1736
1737 #. type: Plain text
1738 #: build/C/man3/ether_aton.3:67
1739 msgid ""
1740 "B<ether_aton>()  converts the 48-bit Ethernet host address I<asc> from the "
1741 "standard hex-digits-and-colons notation into binary data in network byte "
1742 "order and returns a pointer to it in a statically allocated buffer, which "
1743 "subsequent calls will overwrite.  B<ether_aton>()  returns NULL if the "
1744 "address is invalid."
1745 msgstr ""
1746
1747 #. type: Plain text
1748 #: build/C/man3/ether_aton.3:76
1749 msgid ""
1750 "The B<ether_ntoa>()  function converts the Ethernet host address I<addr> "
1751 "given in network byte order to a string in standard hex-digits-and-colons "
1752 "notation, omitting leading zeros.  The string is returned in a statically "
1753 "allocated buffer, which subsequent calls will overwrite."
1754 msgstr ""
1755
1756 #. type: Plain text
1757 #: build/C/man3/ether_aton.3:83
1758 msgid ""
1759 "The B<ether_ntohost>()  function maps an Ethernet address to the "
1760 "corresponding hostname in I</etc/ethers> and returns nonzero if it cannot be "
1761 "found."
1762 msgstr ""
1763
1764 #. type: Plain text
1765 #: build/C/man3/ether_aton.3:90
1766 msgid ""
1767 "The B<ether_hostton>()  function maps a hostname to the corresponding "
1768 "Ethernet address in I</etc/ethers> and returns nonzero if it cannot be "
1769 "found."
1770 msgstr ""
1771
1772 #. type: Plain text
1773 #: build/C/man3/ether_aton.3:102
1774 msgid ""
1775 "The B<ether_line>()  function parses a line in I</etc/ethers> format "
1776 "(ethernet address followed by whitespace followed by hostname; \\(aq#\\(aq "
1777 "introduces a comment) and returns an address and hostname pair, or nonzero "
1778 "if it cannot be parsed.  The buffer pointed to by I<hostname> must be "
1779 "sufficiently long, for example, have the same length as I<line>."
1780 msgstr ""
1781
1782 #. type: Plain text
1783 #: build/C/man3/ether_aton.3:113
1784 msgid ""
1785 "The functions B<ether_ntoa_r>()  and B<ether_aton_r>()  are reentrant "
1786 "thread-safe versions of B<ether_ntoa>()  and B<ether_aton>()  respectively, "
1787 "and do not use static buffers."
1788 msgstr ""
1789
1790 #. type: Plain text
1791 #: build/C/man3/ether_aton.3:119
1792 msgid "The structure I<ether_addr> is defined in I<E<lt>net/ethernet.hE<gt>> as:"
1793 msgstr ""
1794
1795 #. type: Plain text
1796 #: build/C/man3/ether_aton.3:125
1797 #, no-wrap
1798 msgid ""
1799 "struct ether_addr {\n"
1800 "    uint8_t ether_addr_octet[6];\n"
1801 "}\n"
1802 msgstr ""
1803
1804 #. type: SH
1805 #: build/C/man3/ether_aton.3:127 build/C/man3/rexec.3:142
1806 #, no-wrap
1807 msgid "ATTRIBUTES"
1808 msgstr ""
1809
1810 #. type: SS
1811 #: build/C/man3/ether_aton.3:128 build/C/man3/rexec.3:143
1812 #, no-wrap
1813 msgid "Multithreading (see pthreads(7))"
1814 msgstr ""
1815
1816 #. type: Plain text
1817 #: build/C/man3/ether_aton.3:134
1818 msgid "The B<ether_aton>()  and B<ether_ntoa>()  functions are not thread-safe."
1819 msgstr ""
1820
1821 #. type: Plain text
1822 #: build/C/man3/ether_aton.3:143
1823 msgid ""
1824 "The B<ether_ntohost>(), B<ether_hostton>(), B<ether_line>(), "
1825 "B<ether_ntoa_r>()  and B<ether_aton_r>()  functions are thread-safe."
1826 msgstr ""
1827
1828 #. type: Plain text
1829 #: build/C/man3/ether_aton.3:145
1830 msgid "4.3BSD, SunOS."
1831 msgstr ""
1832
1833 #. type: Plain text
1834 #: build/C/man3/ether_aton.3:149
1835 msgid "The glibc 2.2.5 implementation of B<ether_line>()  is broken."
1836 msgstr ""
1837
1838 #. type: Plain text
1839 #: build/C/man3/ether_aton.3:151
1840 msgid "B<ethers>(5)"
1841 msgstr ""
1842
1843 #. type: TH
1844 #: build/C/man5/gai.conf.5:19
1845 #, no-wrap
1846 msgid "GAI.CONF"
1847 msgstr ""
1848
1849 #. type: TH
1850 #: build/C/man5/gai.conf.5:19 build/C/man5/nss.5:19
1851 #, no-wrap
1852 msgid "2013-02-13"
1853 msgstr ""
1854
1855 #. type: Plain text
1856 #: build/C/man5/gai.conf.5:22
1857 msgid "gai.conf - getaddrinfo(3) configuration file"
1858 msgstr ""
1859
1860 #. type: Plain text
1861 #: build/C/man5/gai.conf.5:36
1862 msgid ""
1863 "A call to B<getaddrinfo>(3)  might return multiple answers.  According to "
1864 "RFC\\ 3484 these answers must be sorted so that the answer with the highest "
1865 "success rate is first in the list.  The RFC provides an algorithm for the "
1866 "sorting.  The static rules are not always adequate, though.  For this "
1867 "reason, the RFC also requires that system administrators should have the "
1868 "possibility to dynamically change the sorting.  For the glibc "
1869 "implementation, this can be achieved with the I</etc/gai.conf> file."
1870 msgstr ""
1871
1872 #. type: Plain text
1873 #: build/C/man5/gai.conf.5:40
1874 msgid ""
1875 "Each line in the configuration file consists of a keyword and its "
1876 "parameters.  White spaces in any place are ignored.  Lines starting with "
1877 "\\(aq#\\(aq are comments and are ignored."
1878 msgstr ""
1879
1880 #. type: Plain text
1881 #: build/C/man5/gai.conf.5:42
1882 msgid "The keywords currently recognized are:"
1883 msgstr ""
1884
1885 #. type: TP
1886 #: build/C/man5/gai.conf.5:42
1887 #, no-wrap
1888 msgid "B<label> I<netmask> I<precedence>"
1889 msgstr ""
1890
1891 #. type: Plain text
1892 #: build/C/man5/gai.conf.5:51
1893 msgid ""
1894 "The value is added to the label table used in the RFC\\ 3484 sorting.  If "
1895 "any B<label> definition is present in the configuration file is present, the "
1896 "default table is not used.  All the label definitions of the default table "
1897 "which are to be maintained have to be duplicated.  Following the keyword, "
1898 "the line has to contain a network mask and a label value."
1899 msgstr ""
1900
1901 #. type: TP
1902 #: build/C/man5/gai.conf.5:51
1903 #, no-wrap
1904 msgid "B<precedence> I<netmask> I<precedence>"
1905 msgstr ""
1906
1907 #. type: Plain text
1908 #: build/C/man5/gai.conf.5:58
1909 msgid ""
1910 "This keyword is similar to B<label>, but instead the value is added to the "
1911 "precedence table as specified in RFC\\ 3484.  Once again, the presence of a "
1912 "single B<precedence> line in the configuration file causes the default table "
1913 "to not be used."
1914 msgstr ""
1915
1916 #. type: TP
1917 #: build/C/man5/gai.conf.5:58
1918 #, no-wrap
1919 msgid "B<reload> E<lt>B<yes>|B<no>E<gt>"
1920 msgstr ""
1921
1922 #. type: Plain text
1923 #: build/C/man5/gai.conf.5:67
1924 msgid ""
1925 "This keyword controls whether a process checks whether the configuration "
1926 "file has been changed since the last time it was read.  If the value is "
1927 "\"B<yes>\" the file is re-read.  This might cause problems in multithreaded "
1928 "applications and is generally a bad idea.  The default is \"B<no>\"."
1929 msgstr ""
1930
1931 #. type: TP
1932 #: build/C/man5/gai.conf.5:67
1933 #, no-wrap
1934 msgid "B<scopev4> I<mask> I<value>"
1935 msgstr ""
1936
1937 #. type: Plain text
1938 #: build/C/man5/gai.conf.5:72
1939 msgid ""
1940 "Add another rule to the RFC\\ 3484 scope table for IPv4 address.  By "
1941 "default, the scope IDs described in section 3.2 in RFC\\ 3438 are used.  "
1942 "Changing these defaults should hardly ever be necessary."
1943 msgstr ""
1944
1945 #. type: SH
1946 #: build/C/man5/gai.conf.5:72 build/C/man3/getaddrinfo.3:582 build/C/man3/gethostbyname.3:310 build/C/man3/getnameinfo.3:197 build/C/man3/getnetent.3:141 build/C/man3/getprotoent.3:134 build/C/man3/getservent.3:153 build/C/man5/host.conf.5:180 build/C/man5/hosts.5:86 build/C/man5/hosts.equiv.5:69 build/C/man5/networks.5:70 build/C/man5/nss.5:98 build/C/man5/nsswitch.conf.5:298 build/C/man5/protocols.5:77 build/C/man5/resolv.conf.5:284 build/C/man3/resolver.3:267 build/C/man5/services.5:185 build/C/man3/setnetgrent.3:88 build/C/man7/udplite.7:126
1947 #, no-wrap
1948 msgid "FILES"
1949 msgstr ""
1950
1951 #. type: Plain text
1952 #: build/C/man5/gai.conf.5:74 build/C/man3/getaddrinfo.3:584
1953 msgid "I</etc/gai.conf>"
1954 msgstr ""
1955
1956 #. type: Plain text
1957 #: build/C/man5/gai.conf.5:77
1958 msgid ""
1959 "The default table according to RFC\\ 3484 would be specified with the "
1960 "following configuration file:"
1961 msgstr ""
1962
1963 #. type: Plain text
1964 #: build/C/man5/gai.conf.5:89
1965 #, no-wrap
1966 msgid ""
1967 "label  ::1/128       0\n"
1968 "label  ::/0          1\n"
1969 "label  2002::/16     2\n"
1970 "label ::/96          3\n"
1971 "label ::ffff:0:0/96  4\n"
1972 "precedence  ::1/128       50\n"
1973 "precedence  ::/0          40\n"
1974 "precedence  2002::/16     30\n"
1975 "precedence ::/96          20\n"
1976 "precedence ::ffff:0:0/96  10\n"
1977 msgstr ""
1978
1979 #. type: Plain text
1980 #: build/C/man5/gai.conf.5:96
1981 msgid "B<getaddrinfo(3),> RFC\\ 3484"
1982 msgstr ""
1983
1984 #. type: TH
1985 #: build/C/man3/getaddrinfo.3:43
1986 #, no-wrap
1987 msgid "GETADDRINFO"
1988 msgstr ""
1989
1990 #. type: TH
1991 #: build/C/man3/getaddrinfo.3:43 build/C/man3/getnameinfo.3:10
1992 #, no-wrap
1993 msgid "2013-01-15"
1994 msgstr ""
1995
1996 #. type: Plain text
1997 #: build/C/man3/getaddrinfo.3:47
1998 msgid ""
1999 "getaddrinfo, freeaddrinfo, gai_strerror - network address and service "
2000 "translation"
2001 msgstr ""
2002
2003 #. type: Plain text
2004 #: build/C/man3/getaddrinfo.3:52 build/C/man3/getipnodebyname.3:35
2005 #, no-wrap
2006 msgid ""
2007 "B<#include E<lt>sys/types.hE<gt>>\n"
2008 "B<#include E<lt>sys/socket.hE<gt>>\n"
2009 "B<#include E<lt>netdb.hE<gt>>\n"
2010 msgstr ""
2011
2012 #. type: Plain text
2013 #: build/C/man3/getaddrinfo.3:56
2014 #, no-wrap
2015 msgid ""
2016 "B<int getaddrinfo(const char *>I<node>B<, const char *>I<service>B<,>\n"
2017 "B<                const struct addrinfo *>I<hints>B<,>\n"
2018 "B<                struct addrinfo **>I<res>B<);>\n"
2019 msgstr ""
2020
2021 #. type: Plain text
2022 #: build/C/man3/getaddrinfo.3:58
2023 #, no-wrap
2024 msgid "B<void freeaddrinfo(struct addrinfo *>I<res>B<);>\n"
2025 msgstr ""
2026
2027 #. type: Plain text
2028 #: build/C/man3/getaddrinfo.3:60
2029 #, no-wrap
2030 msgid "B<const char *gai_strerror(int >I<errcode>B<);>\n"
2031 msgstr ""
2032
2033 #. type: Plain text
2034 #: build/C/man3/getaddrinfo.3:65 build/C/man3/gethostbyname.3:93 build/C/man3/getnameinfo.3:26 build/C/man3/getnetent_r.3:52 build/C/man3/getprotoent_r.3:49 build/C/man3/getservent_r.3:49 build/C/man3/inet.3:70 build/C/man3/rcmd.3:81 build/C/man3/setnetgrent.3:34
2035 msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
2036 msgstr ""
2037
2038 #. type: Plain text
2039 #: build/C/man3/getaddrinfo.3:71
2040 msgid "B<getaddrinfo>(), B<freeaddrinfo>(), B<gai_strerror>():"
2041 msgstr ""
2042
2043 #. type: Plain text
2044 #: build/C/man3/getaddrinfo.3:73
2045 msgid "_POSIX_C_SOURCE\\ E<gt>=\\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE"
2046 msgstr ""
2047
2048 #.  .BR getipnodebyname (3),
2049 #.  .BR getipnodebyaddr (3),
2050 #. type: Plain text
2051 #: build/C/man3/getaddrinfo.3:100
2052 msgid ""
2053 "Given I<node> and I<service>, which identify an Internet host and a service, "
2054 "B<getaddrinfo>()  returns one or more I<addrinfo> structures, each of which "
2055 "contains an Internet address that can be specified in a call to B<bind>(2)  "
2056 "or B<connect>(2).  The B<getaddrinfo>()  function combines the functionality "
2057 "provided by the B<gethostbyname>(3)  and B<getservbyname>(3)  functions into "
2058 "a single interface, but unlike the latter functions, B<getaddrinfo>()  is "
2059 "reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies."
2060 msgstr ""
2061
2062 #. type: Plain text
2063 #: build/C/man3/getaddrinfo.3:106
2064 msgid ""
2065 "The I<addrinfo> structure used by B<getaddrinfo>()  contains the following "
2066 "fields:"
2067 msgstr ""
2068
2069 #. type: Plain text
2070 #: build/C/man3/getaddrinfo.3:119
2071 #, no-wrap
2072 msgid ""
2073 "struct addrinfo {\n"
2074 "    int              ai_flags;\n"
2075 "    int              ai_family;\n"
2076 "    int              ai_socktype;\n"
2077 "    int              ai_protocol;\n"
2078 "    socklen_t        ai_addrlen;\n"
2079 "    struct sockaddr *ai_addr;\n"
2080 "    char            *ai_canonname;\n"
2081 "    struct addrinfo *ai_next;\n"
2082 "};\n"
2083 msgstr ""
2084
2085 #. type: Plain text
2086 #: build/C/man3/getaddrinfo.3:141
2087 msgid ""
2088 "The I<hints> argument points to an I<addrinfo> structure that specifies "
2089 "criteria for selecting the socket address structures returned in the list "
2090 "pointed to by I<res>.  If I<hints> is not NULL it points to an I<addrinfo> "
2091 "structure whose I<ai_family>, I<ai_socktype>, and I<ai_protocol> specify "
2092 "criteria that limit the set of socket addresses returned by "
2093 "B<getaddrinfo>(), as follows:"
2094 msgstr ""
2095
2096 #. type: TP
2097 #: build/C/man3/getaddrinfo.3:141
2098 #, no-wrap
2099 msgid "I<ai_family>"
2100 msgstr ""
2101
2102 #. type: Plain text
2103 #: build/C/man3/getaddrinfo.3:157
2104 msgid ""
2105 "This field specifies the desired address family for the returned addresses.  "
2106 "Valid values for this field include B<AF_INET> and B<AF_INET6>.  The value "
2107 "B<AF_UNSPEC> indicates that B<getaddrinfo>()  should return socket addresses "
2108 "for any address family (either IPv4 or IPv6, for example) that can be used "
2109 "with I<node> and I<service>."
2110 msgstr ""
2111
2112 #. type: TP
2113 #: build/C/man3/getaddrinfo.3:157
2114 #, no-wrap
2115 msgid "I<ai_socktype>"
2116 msgstr ""
2117
2118 #. type: Plain text
2119 #: build/C/man3/getaddrinfo.3:166
2120 msgid ""
2121 "This field specifies the preferred socket type, for example B<SOCK_STREAM> "
2122 "or B<SOCK_DGRAM>.  Specifying 0 in this field indicates that socket "
2123 "addresses of any type can be returned by B<getaddrinfo>()."
2124 msgstr ""
2125
2126 #. type: TP
2127 #: build/C/man3/getaddrinfo.3:166
2128 #, no-wrap
2129 msgid "I<ai_protocol>"
2130 msgstr ""
2131
2132 #. type: Plain text
2133 #: build/C/man3/getaddrinfo.3:172
2134 msgid ""
2135 "This field specifies the protocol for the returned socket addresses.  "
2136 "Specifying 0 in this field indicates that socket addresses with any protocol "
2137 "can be returned by B<getaddrinfo>()."
2138 msgstr ""
2139
2140 #. type: TP
2141 #: build/C/man3/getaddrinfo.3:172
2142 #, no-wrap
2143 msgid "I<ai_flags>"
2144 msgstr ""
2145
2146 #. type: Plain text
2147 #: build/C/man3/getaddrinfo.3:176
2148 msgid ""
2149 "This field specifies additional options, described below.  Multiple flags "
2150 "are specified by bitwise OR-ing them together."
2151 msgstr ""
2152
2153 #. type: Plain text
2154 #: build/C/man3/getaddrinfo.3:194
2155 msgid ""
2156 "All the other fields in the structure pointed to by I<hints> must contain "
2157 "either 0 or a NULL pointer, as appropriate.  Specifying I<hints> as NULL is "
2158 "equivalent to setting I<ai_socktype> and I<ai_protocol> to 0; I<ai_family> "
2159 "to B<AF_UNSPEC>; and I<ai_flags> to B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)>."
2160 msgstr ""
2161
2162 #. type: Plain text
2163 #: build/C/man3/getaddrinfo.3:212
2164 msgid ""
2165 "I<node> specifies either a numerical network address (for IPv4, "
2166 "numbers-and-dots notation as supported by B<inet_aton>(3); for IPv6, "
2167 "hexadecimal string format as supported by B<inet_pton>(3)), or a network "
2168 "hostname, whose network addresses are looked up and resolved.  If "
2169 "I<hints.ai_flags> contains the B<AI_NUMERICHOST> flag then I<node> must be a "
2170 "numerical network address.  The B<AI_NUMERICHOST> flag suppresses any "
2171 "potentially lengthy network host address lookups."
2172 msgstr ""
2173
2174 #. type: Plain text
2175 #: build/C/man3/getaddrinfo.3:237
2176 msgid ""
2177 "If the B<AI_PASSIVE> flag is specified in I<hints.ai_flags>, and I<node> is "
2178 "NULL, then the returned socket addresses will be suitable for B<bind>(2)ing "
2179 "a socket that will B<accept>(2)  connections.  The returned socket address "
2180 "will contain the \"wildcard address\" (B<INADDR_ANY> for IPv4 addresses, "
2181 "B<IN6ADDR_ANY_INIT> for IPv6 address).  The wildcard address is used by "
2182 "applications (typically servers)  that intend to accept connections on any "
2183 "of the hosts's network addresses.  If I<node> is not NULL, then the "
2184 "B<AI_PASSIVE> flag is ignored."
2185 msgstr ""
2186
2187 #. type: Plain text
2188 #: build/C/man3/getaddrinfo.3:257
2189 msgid ""
2190 "If the B<AI_PASSIVE> flag is not set in I<hints.ai_flags>, then the returned "
2191 "socket addresses will be suitable for use with B<connect>(2), B<sendto>(2), "
2192 "or B<sendmsg>(2).  If I<node> is NULL, then the network address will be set "
2193 "to the loopback interface address (B<INADDR_LOOPBACK> for IPv4 addresses, "
2194 "B<IN6ADDR_LOOPBACK_INIT> for IPv6 address); this is used by applications "
2195 "that intend to communicate with peers running on the same host."
2196 msgstr ""
2197
2198 #. type: Plain text
2199 #: build/C/man3/getaddrinfo.3:280
2200 msgid ""
2201 "I<service> sets the port in each returned address structure.  If this "
2202 "argument is a service name (see B<services>(5)), it is translated to the "
2203 "corresponding port number.  This argument can also be specified as a decimal "
2204 "number, which is simply converted to binary.  If I<service> is NULL, then "
2205 "the port number of the returned socket addresses will be left "
2206 "uninitialized.  If B<AI_NUMERICSERV> is specified in I<hints.ai_flags> and "
2207 "I<service> is not NULL, then I<service> must point to a string containing a "
2208 "numeric port number.  This flag is used to inhibit the invocation of a name "
2209 "resolution service in cases where it is known not to be required."
2210 msgstr ""
2211
2212 #. type: Plain text
2213 #: build/C/man3/getaddrinfo.3:286
2214 msgid "Either I<node> or I<service>, but not both, may be NULL."
2215 msgstr ""
2216
2217 #. type: Plain text
2218 #: build/C/man3/getaddrinfo.3:302
2219 msgid ""
2220 "The B<getaddrinfo>()  function allocates and initializes a linked list of "
2221 "I<addrinfo> structures, one for each network address that matches I<node> "
2222 "and I<service>, subject to any restrictions imposed by I<hints>, and returns "
2223 "a pointer to the start of the list in I<res>.  The items in the linked list "
2224 "are linked by the I<ai_next> field."
2225 msgstr ""
2226
2227 #. type: Plain text
2228 #: build/C/man3/getaddrinfo.3:324
2229 msgid ""
2230 "There are several reasons why the linked list may have more than one "
2231 "I<addrinfo> structure, including: the network host is multihomed, accessible "
2232 "over multiple protocols (e.g., both B<AF_INET> and B<AF_INET6>); or the same "
2233 "service is available from multiple socket types (one B<SOCK_STREAM> address "
2234 "and another B<SOCK_DGRAM> address, for example).  Normally, the application "
2235 "should try using the addresses in the order in which they are returned.  The "
2236 "sorting function used within B<getaddrinfo>()  is defined in RFC\\ 3484; the "
2237 "order can be tweaked for a particular system by editing I</etc/gai.conf> "
2238 "(available since glibc 2.5)."
2239 msgstr ""
2240
2241 #.  In glibc prior to 2.3.4, the ai_canonname of each addrinfo
2242 #.  structure was set pointing to the canonical name; that was
2243 #.  more than POSIX.1-2001 specified, or other implementations provided.
2244 #.  MTK, Aug 05
2245 #. type: Plain text
2246 #: build/C/man3/getaddrinfo.3:339
2247 msgid ""
2248 "If I<hints.ai_flags> includes the B<AI_CANONNAME> flag, then the "
2249 "I<ai_canonname> field of the first of the I<addrinfo> structures in the "
2250 "returned list is set to point to the official name of the host."
2251 msgstr ""
2252
2253 #. type: Plain text
2254 #: build/C/man3/getaddrinfo.3:343
2255 msgid ""
2256 "The remaining fields of each returned I<addrinfo> structure are initialized "
2257 "as follows:"
2258 msgstr ""
2259
2260 #. type: IP
2261 #: build/C/man3/getaddrinfo.3:343 build/C/man3/getaddrinfo.3:366 build/C/man3/getaddrinfo_a.3:191 build/C/man3/getaddrinfo_a.3:195 build/C/man3/getaddrinfo_a.3:197 build/C/man5/nsswitch.conf.5:144 build/C/man5/nsswitch.conf.5:148 build/C/man7/unix.7:74 build/C/man7/unix.7:91 build/C/man7/unix.7:111
2262 #, no-wrap
2263 msgid "*"
2264 msgstr ""
2265
2266 #. type: Plain text
2267 #: build/C/man3/getaddrinfo.3:366
2268 msgid ""
2269 "The I<ai_family>, I<ai_socktype>, and I<ai_protocol> fields return the "
2270 "socket creation parameters (i.e., these fields have the same meaning as the "
2271 "corresponding arguments of B<socket>(2)).  For example, I<ai_family> might "
2272 "return B<AF_INET> or B<AF_INET6>; I<ai_socktype> might return B<SOCK_DGRAM> "
2273 "or B<SOCK_STREAM>; and I<ai_protocol> returns the protocol for the socket."
2274 msgstr ""
2275
2276 #. type: Plain text
2277 #: build/C/man3/getaddrinfo.3:373
2278 msgid ""
2279 "A pointer to the socket address is placed in the I<ai_addr> field, and the "
2280 "length of the socket address, in bytes, is placed in the I<ai_addrlen> "
2281 "field."
2282 msgstr ""
2283
2284 #. type: Plain text
2285 #: build/C/man3/getaddrinfo.3:385
2286 msgid ""
2287 "If I<hints.ai_flags> includes the B<AI_ADDRCONFIG> flag, then IPv4 addresses "
2288 "are returned in the list pointed to by I<res> only if the local system has "
2289 "at least one IPv4 address configured, and IPv6 addresses are returned only "
2290 "if the local system has at least one IPv6 address configured.  The loopback "
2291 "address is not considered for this case as valid as a configured address."
2292 msgstr ""
2293
2294 #. type: Plain text
2295 #: build/C/man3/getaddrinfo.3:410
2296 msgid ""
2297 "If I<hints.ai_flags> specifies the B<AI_V4MAPPED> flag, and "
2298 "I<hints.ai_family> was specified as B<AF_INET6>, and no matching IPv6 "
2299 "addresses could be found, then return IPv4-mapped IPv6 addresses in the list "
2300 "pointed to by I<res>.  If both B<AI_V4MAPPED> and B<AI_ALL> are specified in "
2301 "I<hints.ai_flags>, then return both IPv6 and IPv4-mapped IPv6 addresses in "
2302 "the list pointed to by I<res>.  B<AI_ALL> is ignored if B<AI_V4MAPPED> is "
2303 "not also specified."
2304 msgstr ""
2305
2306 #. type: Plain text
2307 #: build/C/man3/getaddrinfo.3:416
2308 msgid ""
2309 "The B<freeaddrinfo>()  function frees the memory that was allocated for the "
2310 "dynamically allocated linked list I<res>."
2311 msgstr ""
2312
2313 #. type: SS
2314 #: build/C/man3/getaddrinfo.3:416
2315 #, no-wrap
2316 msgid "Extensions to getaddrinfo() for Internationalized Domain Names"
2317 msgstr ""
2318
2319 #. type: Plain text
2320 #: build/C/man3/getaddrinfo.3:425
2321 msgid ""
2322 "Starting with glibc 2.3.4, B<getaddrinfo>()  has been extended to "
2323 "selectively allow the incoming and outgoing hostnames to be transparently "
2324 "converted to and from the Internationalized Domain Name (IDN) format (see "
2325 "RFC 3490, I<Internationalizing Domain Names in Applications (IDNA)>).  Four "
2326 "new flags are defined:"
2327 msgstr ""
2328
2329 #. type: TP
2330 #: build/C/man3/getaddrinfo.3:425
2331 #, no-wrap
2332 msgid "B<AI_IDN>"
2333 msgstr ""
2334
2335 #. type: Plain text
2336 #: build/C/man3/getaddrinfo.3:431
2337 msgid ""
2338 "If this flag is specified, then the node name given in I<node> is converted "
2339 "to IDN format if necessary.  The source encoding is that of the current "
2340 "locale."
2341 msgstr ""
2342
2343 #.  Implementation Detail:
2344 #.  To minimize effects on system performance the implementation might
2345 #.  want to check whether the input string contains any non-ASCII
2346 #.  characters.  If there are none the IDN step can be skipped completely.
2347 #.  On systems which allow not-ASCII safe encodings for a locale this
2348 #.  might be a problem.
2349 #. type: Plain text
2350 #: build/C/man3/getaddrinfo.3:443
2351 msgid ""
2352 "If the input name contains non-ASCII characters, then the IDN encoding is "
2353 "used.  Those parts of the node name (delimited by dots) that contain "
2354 "non-ASCII characters are encoded using ASCII Compatible Encoding (ACE)  "
2355 "before being passed to the name resolution functions."
2356 msgstr ""
2357
2358 #. type: TP
2359 #: build/C/man3/getaddrinfo.3:443
2360 #, no-wrap
2361 msgid "B<AI_CANONIDN>"
2362 msgstr ""
2363
2364 #. type: Plain text
2365 #: build/C/man3/getaddrinfo.3:455
2366 msgid ""
2367 "After a successful name lookup, and if the B<AI_CANONNAME> flag was "
2368 "specified, B<getaddrinfo>()  will return the canonical name of the node "
2369 "corresponding to the I<addrinfo> structure value passed back.  The return "
2370 "value is an exact copy of the value returned by the name resolution "
2371 "function."
2372 msgstr ""
2373
2374 #
2375 #. Implementation Detail:
2376 #. If no component of the returned name starts with xn\-\- the IDN
2377 #. step can be skipped, therefore avoiding unnecessary slowdowns.
2378 #. type: Plain text
2379 #: build/C/man3/getaddrinfo.3:468
2380 msgid ""
2381 "If the name is encoded using ACE, then it will contain the I<xn--> prefix "
2382 "for one or more components of the name.  To convert these components into a "
2383 "readable form the B<AI_CANONIDN> flag can be passed in addition to "
2384 "B<AI_CANONNAME>.  The resulting string is encoded using the current locale's "
2385 "encoding."
2386 msgstr ""
2387
2388 #. type: TP
2389 #: build/C/man3/getaddrinfo.3:468
2390 #, no-wrap
2391 msgid "B<AI_IDN_ALLOW_UNASSIGNED>, B<AI_IDN_USE_STD3_ASCII_RULES>"
2392 msgstr ""
2393
2394 #. type: Plain text
2395 #: build/C/man3/getaddrinfo.3:475 build/C/man3/getnameinfo.3:139
2396 msgid ""
2397 "Setting these flags will enable the IDNA_ALLOW_UNASSIGNED (allow unassigned "
2398 "Unicode code points) and IDNA_USE_STD3_ASCII_RULES (check output to make "
2399 "sure it is a STD3 conforming hostname)  flags respectively to be used in the "
2400 "IDNA handling."
2401 msgstr ""
2402
2403 #. type: SH
2404 #: build/C/man3/getaddrinfo.3:475 build/C/man3/getaddrinfo_a.3:242 build/C/man3/gethostbyname.3:283 build/C/man3/getipnodebyname.3:186 build/C/man3/getnameinfo.3:139 build/C/man3/getnetent.3:130 build/C/man3/getnetent_r.3:118 build/C/man2/getpeername.2:68 build/C/man3/getprotoent.3:123 build/C/man3/getprotoent_r.3:108 build/C/man3/getservent.3:142 build/C/man3/getservent_r.3:107 build/C/man3/inet_ntop.3:83 build/C/man3/inet_pton.3:116 build/C/man3/rcmd.3:239 build/C/man3/resolver.3:245 build/C/man3/setnetgrent.3:86 build/C/man2/shutdown.2:69
2405 #, no-wrap
2406 msgid "RETURN VALUE"
2407 msgstr ""
2408
2409 #.  FIXME glibc defines the following additional errors, some which
2410 #.  can probably be returned by getaddrinfo(); they need to
2411 #.  be documented.
2412 #.  #ifdef __USE_GNU
2413 #.  #define EAI_INPROGRESS  -100  /* Processing request in progress.  */
2414 #.  #define EAI_CANCELED    -101  /* Request canceled.  */
2415 #.  #define EAI_NOTCANCELED -102  /* Request not canceled.  */
2416 #.  #define EAI_ALLDONE     -103  /* All requests done.  */
2417 #.  #define EAI_INTR        -104  /* Interrupted by a signal.  */
2418 #.  #define EAI_IDN_ENCODE  -105  /* IDN encoding failed.  */
2419 #.  #endif
2420 #. type: Plain text
2421 #: build/C/man3/getaddrinfo.3:489
2422 msgid ""
2423 "B<getaddrinfo>()  returns 0 if it succeeds, or one of the following nonzero "
2424 "error codes:"
2425 msgstr ""
2426
2427 #. type: TP
2428 #: build/C/man3/getaddrinfo.3:489
2429 #, no-wrap
2430 msgid "B<EAI_ADDRFAMILY>"
2431 msgstr ""
2432
2433 #.  Not in SUSv3
2434 #. type: Plain text
2435 #: build/C/man3/getaddrinfo.3:494
2436 msgid ""
2437 "The specified network host does not have any network addresses in the "
2438 "requested address family."
2439 msgstr ""
2440
2441 #. type: TP
2442 #: build/C/man3/getaddrinfo.3:494 build/C/man3/getaddrinfo_a.3:247 build/C/man3/getaddrinfo_a.3:264 build/C/man3/getnameinfo.3:155
2443 #, no-wrap
2444 msgid "B<EAI_AGAIN>"
2445 msgstr ""
2446
2447 #. type: Plain text
2448 #: build/C/man3/getaddrinfo.3:498
2449 msgid "The name server returned a temporary failure indication.  Try again later."
2450 msgstr ""
2451
2452 #. type: TP
2453 #: build/C/man3/getaddrinfo.3:498 build/C/man3/getnameinfo.3:159
2454 #, no-wrap
2455 msgid "B<EAI_BADFLAGS>"
2456 msgstr ""
2457
2458 #. type: Plain text
2459 #: build/C/man3/getaddrinfo.3:508
2460 msgid ""
2461 "I<hints.ai_flags> contains invalid flags; or, I<hints.ai_flags> included "
2462 "B<AI_CANONNAME> and I<name> was NULL."
2463 msgstr ""
2464
2465 #. type: TP
2466 #: build/C/man3/getaddrinfo.3:508 build/C/man3/getnameinfo.3:164
2467 #, no-wrap
2468 msgid "B<EAI_FAIL>"
2469 msgstr ""
2470
2471 #. type: Plain text
2472 #: build/C/man3/getaddrinfo.3:511
2473 msgid "The name server returned a permanent failure indication."
2474 msgstr ""
2475
2476 #. type: TP
2477 #: build/C/man3/getaddrinfo.3:511 build/C/man3/getnameinfo.3:167
2478 #, no-wrap
2479 msgid "B<EAI_FAMILY>"
2480 msgstr ""
2481
2482 #. type: Plain text
2483 #: build/C/man3/getaddrinfo.3:514
2484 msgid "The requested address family is not supported."
2485 msgstr ""
2486
2487 #. type: TP
2488 #: build/C/man3/getaddrinfo.3:514 build/C/man3/getaddrinfo_a.3:252 build/C/man3/getnameinfo.3:171
2489 #, no-wrap
2490 msgid "B<EAI_MEMORY>"
2491 msgstr ""
2492
2493 #. type: Plain text
2494 #: build/C/man3/getaddrinfo.3:517 build/C/man3/getaddrinfo_a.3:255 build/C/man3/getnameinfo.3:174 build/C/man7/unix.7:361
2495 msgid "Out of memory."
2496 msgstr ""
2497
2498 #. type: TP
2499 #: build/C/man3/getaddrinfo.3:517
2500 #, no-wrap
2501 msgid "B<EAI_NODATA>"
2502 msgstr ""
2503
2504 #.  Not in SUSv3
2505 #. type: Plain text
2506 #: build/C/man3/getaddrinfo.3:522
2507 msgid ""
2508 "The specified network host exists, but does not have any network addresses "
2509 "defined."
2510 msgstr ""
2511
2512 #. type: TP
2513 #: build/C/man3/getaddrinfo.3:522 build/C/man3/getnameinfo.3:174
2514 #, no-wrap
2515 msgid "B<EAI_NONAME>"
2516 msgstr ""
2517
2518 #. type: Plain text
2519 #: build/C/man3/getaddrinfo.3:539
2520 msgid ""
2521 "The I<node> or I<service> is not known; or both I<node> and I<service> are "
2522 "NULL; or B<AI_NUMERICSERV> was specified in I<hints.ai_flags> and I<service> "
2523 "was not a numeric port-number string."
2524 msgstr ""
2525
2526 #. type: TP
2527 #: build/C/man3/getaddrinfo.3:539
2528 #, no-wrap
2529 msgid "B<EAI_SERVICE>"
2530 msgstr ""
2531
2532 #. type: Plain text
2533 #: build/C/man3/getaddrinfo.3:560
2534 msgid ""
2535 "The requested service is not available for the requested socket type.  It "
2536 "may be available through another socket type.  For example, this error could "
2537 "occur if I<service> was \"shell\" (a service available only on stream "
2538 "sockets), and either I<hints.ai_protocol> was B<IPPROTO_UDP>, or "
2539 "I<hints.ai_socktype> was B<SOCK_DGRAM>; or the error could occur if "
2540 "I<service> was not NULL, and I<hints.ai_socktype> was B<SOCK_RAW> (a socket "
2541 "type that does not support the concept of services)."
2542 msgstr ""
2543
2544 #. type: TP
2545 #: build/C/man3/getaddrinfo.3:560
2546 #, no-wrap
2547 msgid "B<EAI_SOCKTYPE>"
2548 msgstr ""
2549
2550 #. type: Plain text
2551 #: build/C/man3/getaddrinfo.3:572
2552 msgid ""
2553 "The requested socket type is not supported.  This could occur, for example, "
2554 "if I<hints.ai_socktype> and I<hints.ai_protocol> are inconsistent (e.g., "
2555 "B<SOCK_DGRAM> and B<IPPROTO_TCP>, respectively)."
2556 msgstr ""
2557
2558 #. type: TP
2559 #: build/C/man3/getaddrinfo.3:572 build/C/man3/getaddrinfo_a.3:255 build/C/man3/getnameinfo.3:187
2560 #, no-wrap
2561 msgid "B<EAI_SYSTEM>"
2562 msgstr ""
2563
2564 #. type: Plain text
2565 #: build/C/man3/getaddrinfo.3:577
2566 msgid "Other system error, check I<errno> for details."
2567 msgstr ""
2568
2569 #. type: Plain text
2570 #: build/C/man3/getaddrinfo.3:582
2571 msgid ""
2572 "The B<gai_strerror>()  function translates these error codes to a human "
2573 "readable string, suitable for error reporting."
2574 msgstr ""
2575
2576 #. type: Plain text
2577 #: build/C/man3/getaddrinfo.3:589
2578 msgid "POSIX.1-2001.  The B<getaddrinfo>()  function is documented in RFC\\ 2553."
2579 msgstr ""
2580
2581 #. type: Plain text
2582 #: build/C/man3/getaddrinfo.3:594
2583 msgid ""
2584 "B<getaddrinfo>()  supports the I<address>B<%>I<scope-id> notation for "
2585 "specifying the IPv6 scope-ID."
2586 msgstr ""
2587
2588 #. type: Plain text
2589 #: build/C/man3/getaddrinfo.3:602
2590 msgid ""
2591 "B<AI_ADDRCONFIG>, B<AI_ALL>, and B<AI_V4MAPPED> are available since glibc "
2592 "2.3.3.  B<AI_NUMERICSERV> is available since glibc 2.3.4."
2593 msgstr ""
2594
2595 #. type: Plain text
2596 #: build/C/man3/getaddrinfo.3:612
2597 msgid ""
2598 "According to POSIX.1-2001, specifying I<hints> as NULL should cause "
2599 "I<ai_flags> to be assumed as 0.  The GNU C library instead assumes a value "
2600 "of B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)> for this case, since this value is "
2601 "considered an improvement on the specification."
2602 msgstr ""
2603
2604 #.  getnameinfo.3 refers to this example
2605 #.  socket.2 refers to this example
2606 #.  bind.2 refers to this example
2607 #.  connect.2 refers to this example
2608 #.  recvfrom.2 refers to this example
2609 #.  sendto.2 refers to this example
2610 #. type: Plain text
2611 #: build/C/man3/getaddrinfo.3:626
2612 msgid ""
2613 "The following programs demonstrate the use of B<getaddrinfo>(), "
2614 "B<gai_strerror>(), B<freeaddrinfo>(), and B<getnameinfo>(3).  The programs "
2615 "are an echo server and client for UDP datagrams."
2616 msgstr ""
2617
2618 #. type: SS
2619 #: build/C/man3/getaddrinfo.3:626
2620 #, no-wrap
2621 msgid "Server program"
2622 msgstr ""
2623
2624 #. type: Plain text
2625 #: build/C/man3/getaddrinfo.3:636
2626 #, no-wrap
2627 msgid ""
2628 "#include E<lt>sys/types.hE<gt>\n"
2629 "#include E<lt>stdio.hE<gt>\n"
2630 "#include E<lt>stdlib.hE<gt>\n"
2631 "#include E<lt>unistd.hE<gt>\n"
2632 "#include E<lt>string.hE<gt>\n"
2633 "#include E<lt>sys/socket.hE<gt>\n"
2634 "#include E<lt>netdb.hE<gt>\n"
2635 msgstr ""
2636
2637 #. type: Plain text
2638 #: build/C/man3/getaddrinfo.3:638 build/C/man3/getaddrinfo.3:733
2639 #, no-wrap
2640 msgid "#define BUF_SIZE 500\n"
2641 msgstr ""
2642
2643 #. type: Plain text
2644 #: build/C/man3/getaddrinfo.3:649
2645 #, no-wrap
2646 msgid ""
2647 "int\n"
2648 "main(int argc, char *argv[])\n"
2649 "{\n"
2650 "    struct addrinfo hints;\n"
2651 "    struct addrinfo *result, *rp;\n"
2652 "    int sfd, s;\n"
2653 "    struct sockaddr_storage peer_addr;\n"
2654 "    socklen_t peer_addr_len;\n"
2655 "    ssize_t nread;\n"
2656 "    char buf[BUF_SIZE];\n"
2657 msgstr ""
2658
2659 #. type: Plain text
2660 #: build/C/man3/getaddrinfo.3:654
2661 #, no-wrap
2662 msgid ""
2663 "    if (argc != 2) {\n"
2664 "        fprintf(stderr, \"Usage: %s port\\en\", argv[0]);\n"
2665 "        exit(EXIT_FAILURE);\n"
2666 "    }\n"
2667 msgstr ""
2668
2669 #. type: Plain text
2670 #: build/C/man3/getaddrinfo.3:663
2671 #, no-wrap
2672 msgid ""
2673 "    memset(&hints, 0, sizeof(struct addrinfo));\n"
2674 "    hints.ai_family = AF_UNSPEC;    /* Allow IPv4 or IPv6 */\n"
2675 "    hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n"
2676 "    hints.ai_flags = AI_PASSIVE;    /* For wildcard IP address */\n"
2677 "    hints.ai_protocol = 0;          /* Any protocol */\n"
2678 "    hints.ai_canonname = NULL;\n"
2679 "    hints.ai_addr = NULL;\n"
2680 "    hints.ai_next = NULL;\n"
2681 msgstr ""
2682
2683 #. type: Plain text
2684 #: build/C/man3/getaddrinfo.3:669
2685 #, no-wrap
2686 msgid ""
2687 "    s = getaddrinfo(NULL, argv[1], &hints, &result);\n"
2688 "    if (s != 0) {\n"
2689 "        fprintf(stderr, \"getaddrinfo: %s\\en\", gai_strerror(s));\n"
2690 "        exit(EXIT_FAILURE);\n"
2691 "    }\n"
2692 msgstr ""
2693
2694 #. type: Plain text
2695 #: build/C/man3/getaddrinfo.3:674
2696 #, no-wrap
2697 msgid ""
2698 "    /* getaddrinfo() returns a list of address structures.\n"
2699 "       Try each address until we successfully bind(2).\n"
2700 "       If socket(2) (or bind(2)) fails, we (close the socket\n"
2701 "       and) try the next address. */\n"
2702 msgstr ""
2703
2704 #. type: Plain text
2705 #: build/C/man3/getaddrinfo.3:680
2706 #, no-wrap
2707 msgid ""
2708 "    for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n"
2709 "        sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n"
2710 "                rp-E<gt>ai_protocol);\n"
2711 "        if (sfd == -1)\n"
2712 "            continue;\n"
2713 msgstr ""
2714
2715 #. type: Plain text
2716 #: build/C/man3/getaddrinfo.3:683
2717 #, no-wrap
2718 msgid ""
2719 "        if (bind(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) == 0)\n"
2720 "            break;                  /* Success */\n"
2721 msgstr ""
2722
2723 #. type: Plain text
2724 #: build/C/man3/getaddrinfo.3:686 build/C/man3/getaddrinfo.3:779
2725 #, no-wrap
2726 msgid ""
2727 "        close(sfd);\n"
2728 "    }\n"
2729 msgstr ""
2730
2731 #. type: Plain text
2732 #: build/C/man3/getaddrinfo.3:691
2733 #, no-wrap
2734 msgid ""
2735 "    if (rp == NULL) {               /* No address succeeded */\n"
2736 "        fprintf(stderr, \"Could not bind\\en\");\n"
2737 "        exit(EXIT_FAILURE);\n"
2738 "    }\n"
2739 msgstr ""
2740
2741 #. type: Plain text
2742 #: build/C/man3/getaddrinfo.3:693 build/C/man3/getaddrinfo.3:786
2743 #, no-wrap
2744 msgid "    freeaddrinfo(result);           /* No longer needed */\n"
2745 msgstr ""
2746
2747 #. type: Plain text
2748 #: build/C/man3/getaddrinfo.3:695
2749 #, no-wrap
2750 msgid "    /* Read datagrams and echo them back to sender */\n"
2751 msgstr ""
2752
2753 #. type: Plain text
2754 #: build/C/man3/getaddrinfo.3:702
2755 #, no-wrap
2756 msgid ""
2757 "    for (;;) {\n"
2758 "        peer_addr_len = sizeof(struct sockaddr_storage);\n"
2759 "        nread = recvfrom(sfd, buf, BUF_SIZE, 0,\n"
2760 "                (struct sockaddr *) &peer_addr, &peer_addr_len);\n"
2761 "        if (nread == -1)\n"
2762 "            continue;               /* Ignore failed request */\n"
2763 msgstr ""
2764
2765 #. type: Plain text
2766 #: build/C/man3/getaddrinfo.3:704
2767 #, no-wrap
2768 msgid "        char host[NI_MAXHOST], service[NI_MAXSERV];\n"
2769 msgstr ""
2770
2771 #. type: Plain text
2772 #: build/C/man3/getaddrinfo.3:713
2773 #, no-wrap
2774 msgid ""
2775 "        s = getnameinfo((struct sockaddr *) &peer_addr,\n"
2776 "                        peer_addr_len, host, NI_MAXHOST,\n"
2777 "                        service, NI_MAXSERV, NI_NUMERICSERV);\n"
2778 "       if (s == 0)\n"
2779 "            printf(\"Received %ld bytes from %s:%s\\en\",\n"
2780 "                    (long) nread, host, service);\n"
2781 "        else\n"
2782 "            fprintf(stderr, \"getnameinfo: %s\\en\", gai_strerror(s));\n"
2783 msgstr ""
2784
2785 #. type: Plain text
2786 #: build/C/man3/getaddrinfo.3:720
2787 #, no-wrap
2788 msgid ""
2789 "        if (sendto(sfd, buf, nread, 0,\n"
2790 "                    (struct sockaddr *) &peer_addr,\n"
2791 "                    peer_addr_len) != nread)\n"
2792 "            fprintf(stderr, \"Error sending response\\en\");\n"
2793 "    }\n"
2794 "}\n"
2795 msgstr ""
2796
2797 #. type: SS
2798 #: build/C/man3/getaddrinfo.3:721
2799 #, no-wrap
2800 msgid "Client program"
2801 msgstr ""
2802
2803 #. type: Plain text
2804 #: build/C/man3/getaddrinfo.3:731
2805 #, no-wrap
2806 msgid ""
2807 "#include E<lt>sys/types.hE<gt>\n"
2808 "#include E<lt>sys/socket.hE<gt>\n"
2809 "#include E<lt>netdb.hE<gt>\n"
2810 "#include E<lt>stdio.hE<gt>\n"
2811 "#include E<lt>stdlib.hE<gt>\n"
2812 "#include E<lt>unistd.hE<gt>\n"
2813 "#include E<lt>string.hE<gt>\n"
2814 msgstr ""
2815
2816 #. type: Plain text
2817 #: build/C/man3/getaddrinfo.3:743
2818 #, no-wrap
2819 msgid ""
2820 "int\n"
2821 "main(int argc, char *argv[])\n"
2822 "{\n"
2823 "    struct addrinfo hints;\n"
2824 "    struct addrinfo *result, *rp;\n"
2825 "    int sfd, s, j;\n"
2826 "    size_t len;\n"
2827 "    ssize_t nread;\n"
2828 "    char buf[BUF_SIZE];\n"
2829 msgstr ""
2830
2831 #. type: Plain text
2832 #: build/C/man3/getaddrinfo.3:748
2833 #, no-wrap
2834 msgid ""
2835 "    if (argc E<lt> 3) {\n"
2836 "        fprintf(stderr, \"Usage: %s host port msg...\\en\", argv[0]);\n"
2837 "        exit(EXIT_FAILURE);\n"
2838 "    }\n"
2839 msgstr ""
2840
2841 #. type: Plain text
2842 #: build/C/man3/getaddrinfo.3:750
2843 #, no-wrap
2844 msgid "    /* Obtain address(es) matching host/port */\n"
2845 msgstr ""
2846
2847 #. type: Plain text
2848 #: build/C/man3/getaddrinfo.3:756
2849 #, no-wrap
2850 msgid ""
2851 "    memset(&hints, 0, sizeof(struct addrinfo));\n"
2852 "    hints.ai_family = AF_UNSPEC;    /* Allow IPv4 or IPv6 */\n"
2853 "    hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n"
2854 "    hints.ai_flags = 0;\n"
2855 "    hints.ai_protocol = 0;          /* Any protocol */\n"
2856 msgstr ""
2857
2858 #. type: Plain text
2859 #: build/C/man3/getaddrinfo.3:762
2860 #, no-wrap
2861 msgid ""
2862 "    s = getaddrinfo(argv[1], argv[2], &hints, &result);\n"
2863 "    if (s != 0) {\n"
2864 "        fprintf(stderr, \"getaddrinfo: %s\\en\", gai_strerror(s));\n"
2865 "        exit(EXIT_FAILURE);\n"
2866 "    }\n"
2867 msgstr ""
2868
2869 #. type: Plain text
2870 #: build/C/man3/getaddrinfo.3:767
2871 #, no-wrap
2872 msgid ""
2873 "    /* getaddrinfo() returns a list of address structures.\n"
2874 "       Try each address until we successfully connect(2).\n"
2875 "       If socket(2) (or connect(2)) fails, we (close the socket\n"
2876 "       and) try the next address. */\n"
2877 msgstr ""
2878
2879 #. type: Plain text
2880 #: build/C/man3/getaddrinfo.3:773
2881 #, no-wrap
2882 msgid ""
2883 "    for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n"
2884 "        sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n"
2885 "                     rp-E<gt>ai_protocol);\n"
2886 "        if (sfd == -1)\n"
2887 "            continue;\n"
2888 msgstr ""
2889
2890 #. type: Plain text
2891 #: build/C/man3/getaddrinfo.3:776
2892 #, no-wrap
2893 msgid ""
2894 "        if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n"
2895 "            break;                  /* Success */\n"
2896 msgstr ""
2897
2898 #. type: Plain text
2899 #: build/C/man3/getaddrinfo.3:784
2900 #, no-wrap
2901 msgid ""
2902 "    if (rp == NULL) {               /* No address succeeded */\n"
2903 "        fprintf(stderr, \"Could not connect\\en\");\n"
2904 "        exit(EXIT_FAILURE);\n"
2905 "    }\n"
2906 msgstr ""
2907
2908 #. type: Plain text
2909 #: build/C/man3/getaddrinfo.3:789
2910 #, no-wrap
2911 msgid ""
2912 "    /* Send remaining command-line arguments as separate\n"
2913 "       datagrams, and read responses from server */\n"
2914 msgstr ""
2915
2916 #. type: Plain text
2917 #: build/C/man3/getaddrinfo.3:793
2918 #, no-wrap
2919 msgid ""
2920 "    for (j = 3; j E<lt> argc; j++) {\n"
2921 "        len = strlen(argv[j]) + 1;\n"
2922 "                /* +1 for terminating null byte */\n"
2923 msgstr ""
2924
2925 #. type: Plain text
2926 #: build/C/man3/getaddrinfo.3:799
2927 #, no-wrap
2928 msgid ""
2929 "        if (len + 1 E<gt> BUF_SIZE) {\n"
2930 "            fprintf(stderr,\n"
2931 "                    \"Ignoring long message in argument %d\\en\", j);\n"
2932 "            continue;\n"
2933 "        }\n"
2934 msgstr ""
2935
2936 #. type: Plain text
2937 #: build/C/man3/getaddrinfo.3:804
2938 #, no-wrap
2939 msgid ""
2940 "        if (write(sfd, argv[j], len) != len) {\n"
2941 "            fprintf(stderr, \"partial/failed write\\en\");\n"
2942 "            exit(EXIT_FAILURE);\n"
2943 "        }\n"
2944 msgstr ""
2945
2946 #. type: Plain text
2947 #: build/C/man3/getaddrinfo.3:810
2948 #, no-wrap
2949 msgid ""
2950 "        nread = read(sfd, buf, BUF_SIZE);\n"
2951 "        if (nread == -1) {\n"
2952 "            perror(\"read\");\n"
2953 "            exit(EXIT_FAILURE);\n"
2954 "        }\n"
2955 msgstr ""
2956
2957 #. type: Plain text
2958 #: build/C/man3/getaddrinfo.3:813
2959 #, no-wrap
2960 msgid ""
2961 "        printf(\"Received %ld bytes: %s\\en\", (long) nread, buf);\n"
2962 "    }\n"
2963 msgstr ""
2964
2965 #.  .BR getipnodebyaddr (3),
2966 #.  .BR getipnodebyname (3),
2967 #. type: Plain text
2968 #: build/C/man3/getaddrinfo.3:827
2969 msgid ""
2970 "B<getaddrinfo_a>(3), B<gethostbyname>(3), B<getnameinfo>(3), B<inet>(3), "
2971 "B<gai.conf>(5), B<hostname>(7), B<ip>(7)"
2972 msgstr ""
2973
2974 #. type: TH
2975 #: build/C/man3/getaddrinfo_a.3:29
2976 #, no-wrap
2977 msgid "GETADDRINFO_A"
2978 msgstr ""
2979
2980 #. type: TH
2981 #: build/C/man3/getaddrinfo_a.3:29
2982 #, no-wrap
2983 msgid "2010-09-27"
2984 msgstr ""
2985
2986 #. type: Plain text
2987 #: build/C/man3/getaddrinfo_a.3:33
2988 msgid ""
2989 "getaddrinfo_a, gai_suspend, gai_error, gai_cancel - asynchronous network "
2990 "address and service translation"
2991 msgstr ""
2992
2993 #. type: Plain text
2994 #: build/C/man3/getaddrinfo_a.3:37
2995 #, no-wrap
2996 msgid ""
2997 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
2998 "B<#include E<lt>netdb.hE<gt>>\n"
2999 msgstr ""
3000
3001 #. type: Plain text
3002 #: build/C/man3/getaddrinfo_a.3:40
3003 #, no-wrap
3004 msgid ""
3005 "B<int getaddrinfo_a(int >I<mode>B<, struct gaicb *>I<list[]>B<,>\n"
3006 "B<                int >I<nitems>B<, struct sigevent *>I<sevp>B<);>\n"
3007 msgstr ""
3008
3009 #. type: Plain text
3010 #: build/C/man3/getaddrinfo_a.3:43
3011 #, no-wrap
3012 msgid ""
3013 "B<int gai_suspend(struct gaicb *>I<list[]>B<, int >I<nitems>B<,>\n"
3014 "B<                struct timespec *>I<timeout>B<);>\n"
3015 msgstr ""
3016
3017 #. type: Plain text
3018 #: build/C/man3/getaddrinfo_a.3:45
3019 #, no-wrap
3020 msgid "B<int gai_error(struct gaicb *>I<req>B<);>\n"
3021 msgstr ""
3022
3023 #. type: Plain text
3024 #: build/C/man3/getaddrinfo_a.3:47
3025 #, no-wrap
3026 msgid "B<int gai_cancel(struct gaicb *>I<req>B<);>\n"
3027 msgstr ""
3028
3029 #. type: Plain text
3030 #: build/C/man3/getaddrinfo_a.3:49
3031 #, no-wrap
3032 msgid "Link with I<-lanl>.\n"
3033 msgstr ""
3034
3035 #. type: Plain text
3036 #: build/C/man3/getaddrinfo_a.3:57
3037 msgid ""
3038 "The B<getaddrinfo_a>()  function performs the same task as "
3039 "B<getaddrinfo>(3), but allows multiple name look-ups to be performed "
3040 "asynchronously, with optional notification on completion of look-up "
3041 "operations."
3042 msgstr ""
3043
3044 #. type: Plain text
3045 #: build/C/man3/getaddrinfo_a.3:61
3046 msgid "The I<mode> argument has one of the following values:"
3047 msgstr ""
3048
3049 #. type: TP
3050 #: build/C/man3/getaddrinfo_a.3:61
3051 #, no-wrap
3052 msgid "B<GAI_WAIT>"
3053 msgstr ""
3054
3055 #. type: Plain text
3056 #: build/C/man3/getaddrinfo_a.3:65
3057 msgid ""
3058 "Perform the look-ups synchronously.  The call blocks until the look-ups have "
3059 "completed."
3060 msgstr ""
3061
3062 #. type: TP
3063 #: build/C/man3/getaddrinfo_a.3:65
3064 #, no-wrap
3065 msgid "B<GAI_NOWAIT>"
3066 msgstr ""
3067
3068 #. type: Plain text
3069 #: build/C/man3/getaddrinfo_a.3:73
3070 msgid ""
3071 "Perform the look-ups asynchronously.  The call returns immediately, and the "
3072 "requests are resolved in the background.  See the discussion of the I<sevp> "
3073 "argument below."
3074 msgstr ""
3075
3076 #. type: Plain text
3077 #: build/C/man3/getaddrinfo_a.3:88
3078 msgid ""
3079 "The array I<list> specifies the look-up requests to process.  The I<nitems> "
3080 "argument specifies the number of elements in I<list>.  The requested look-up "
3081 "operations are started in parallel.  NULL elements in I<list> are ignored.  "
3082 "Each request is described by a I<gaicb> structure, defined as follows:"
3083 msgstr ""
3084
3085 #. type: Plain text
3086 #: build/C/man3/getaddrinfo_a.3:97
3087 #, no-wrap
3088 msgid ""
3089 "struct gaicb {\n"
3090 "    const char            *ar_name;\n"
3091 "    const char            *ar_service;\n"
3092 "    const struct addrinfo *ar_request;\n"
3093 "    struct addrinfo       *ar_result;\n"
3094 "};\n"
3095 msgstr ""
3096
3097 #. type: Plain text
3098 #: build/C/man3/getaddrinfo_a.3:128
3099 msgid ""
3100 "The elements of this structure correspond to the arguments of "
3101 "B<getaddrinfo>(3).  Thus, I<ar_name> corresponds to the I<node> argument and "
3102 "I<ar_service> to the I<service> argument, identifying an Internet host and a "
3103 "service.  The I<ar_request> element corresponds to the I<hints> argument, "
3104 "specifying the criteria for selecting the returned socket address "
3105 "structures.  Finally, I<ar_result> corresponds to the I<res> argument; you "
3106 "do not need to initialize this element, it will be automatically set when "
3107 "the request is resolved.  The I<addrinfo> structure referenced by the last "
3108 "two elements is described in B<getaddrinfo>(3)."
3109 msgstr ""
3110
3111 #. type: Plain text
3112 #: build/C/man3/getaddrinfo_a.3:144
3113 msgid ""
3114 "When I<mode> is specified as B<GAI_NOWAIT>, notifications about resolved "
3115 "requests can be obtained by employing the I<sigevent> structure pointed to "
3116 "by the I<sevp> argument.  For the definition and general details of this "
3117 "structure, see B<sigevent>(7).  The I<sevp-E<gt>sigev_notify> field can have "
3118 "the following values:"
3119 msgstr ""
3120
3121 #. type: TP
3122 #: build/C/man3/getaddrinfo_a.3:144
3123 #, no-wrap
3124 msgid "B<SIGEV_NONE>"
3125 msgstr ""
3126
3127 #. type: Plain text
3128 #: build/C/man3/getaddrinfo_a.3:147
3129 msgid "Don't provide any notification."
3130 msgstr ""
3131
3132 #. type: TP
3133 #: build/C/man3/getaddrinfo_a.3:147
3134 #, no-wrap
3135 msgid "B<SIGEV_SIGNAL>"
3136 msgstr ""
3137
3138 #.  si_pid and si_uid are also set, to the values of the calling process,
3139 #.  which doesn't provide useful information, so we'll skip mentioning it.
3140 #. type: Plain text
3141 #: build/C/man3/getaddrinfo_a.3:163
3142 msgid ""
3143 "When a look-up completes, generate the signal I<sigev_signo> for the "
3144 "process.  See B<sigevent>(7)  for general details.  The I<si_code> field of "
3145 "the I<siginfo_t> structure will be set to B<SI_ASYNCNL>."
3146 msgstr ""
3147
3148 #. type: TP
3149 #: build/C/man3/getaddrinfo_a.3:163
3150 #, no-wrap
3151 msgid "B<SIGEV_THREAD>"
3152 msgstr ""
3153
3154 #. type: Plain text
3155 #: build/C/man3/getaddrinfo_a.3:171
3156 msgid ""
3157 "When a look-up completes, invoke I<sigev_notify_function> as if it were the "
3158 "start function of a new thread.  See B<sigevent>(7)  for details."
3159 msgstr ""
3160
3161 #. type: Plain text
3162 #: build/C/man3/getaddrinfo_a.3:180
3163 msgid ""
3164 "For B<SIGEV_SIGNAL> and B<SIGEV_THREAD>, it may be useful to point "
3165 "I<sevp-E<gt>sigev_value.sival_ptr> to I<list>."
3166 msgstr ""
3167
3168 #. type: Plain text
3169 #: build/C/man3/getaddrinfo_a.3:191
3170 msgid ""
3171 "The B<gai_suspend>()  function suspends execution of the calling thread, "
3172 "waiting for the completion of one or more requests in the array I<list>.  "
3173 "The I<nitems> argument specifies the size of the array I<list>.  The call "
3174 "blocks until one of the following occurs:"
3175 msgstr ""
3176
3177 #. type: Plain text
3178 #: build/C/man3/getaddrinfo_a.3:195
3179 msgid "One or more of the operations in I<list> completes."
3180 msgstr ""
3181
3182 #. type: Plain text
3183 #: build/C/man3/getaddrinfo_a.3:197
3184 msgid "The call is interrupted by a signal that is caught."
3185 msgstr ""
3186
3187 #. type: Plain text
3188 #: build/C/man3/getaddrinfo_a.3:210
3189 msgid ""
3190 "The time interval specified in I<timeout> elapses.  This argument specifies "
3191 "a timeout in seconds plus nanoseconds (see B<nanosleep>(2)  for details of "
3192 "the I<timespec> structure).  If I<timeout> is NULL, then the call blocks "
3193 "indefinitely (until one of the events above occurs)."
3194 msgstr ""
3195
3196 #. type: Plain text
3197 #: build/C/man3/getaddrinfo_a.3:215
3198 msgid ""
3199 "No explicit indication of which request was completed is given; you must "
3200 "determine which request(s) have completed by iterating with B<gai_error>()  "
3201 "over the list of requests."
3202 msgstr ""
3203
3204 #. type: Plain text
3205 #: build/C/man3/getaddrinfo_a.3:225
3206 msgid ""
3207 "The B<gai_error>()  function returns the status of the request I<req>: "
3208 "either B<EAI_INPROGRESS> if the request was not completed yet, 0 if it was "
3209 "handled successfully, or an error code if the request could not be resolved."
3210 msgstr ""
3211
3212 #. type: Plain text
3213 #: build/C/man3/getaddrinfo_a.3:242
3214 msgid ""
3215 "The B<gai_cancel>()  function cancels the request I<req>.  If the request "
3216 "has been canceled successfully, the error status of the request will be set "
3217 "to B<EAI_CANCELLED> and normal asynchronous notification will be performed.  "
3218 "The request cannot be canceled if it is currently being processed; in that "
3219 "case, it will be handled as if B<gai_cancel>()  has never been called.  If "
3220 "I<req> is NULL, an attempt is made to cancel all outstanding requests that "
3221 "the process has made."
3222 msgstr ""
3223
3224 #. type: Plain text
3225 #: build/C/man3/getaddrinfo_a.3:247
3226 msgid ""
3227 "The B<getaddrinfo_a>()  function returns 0 if all of the requests have been "
3228 "enqueued successfully, or one of the following nonzero error codes:"
3229 msgstr ""
3230
3231 #. type: Plain text
3232 #: build/C/man3/getaddrinfo_a.3:252
3233 msgid ""
3234 "The resources necessary to enqueue the look-up requests were not available.  "
3235 "The application may check the error status of each request to determine "
3236 "which ones failed."
3237 msgstr ""
3238
3239 #. type: Plain text
3240 #: build/C/man3/getaddrinfo_a.3:259
3241 msgid "I<mode> is invalid."
3242 msgstr ""
3243
3244 #. type: Plain text
3245 #: build/C/man3/getaddrinfo_a.3:264
3246 msgid ""
3247 "The B<gai_suspend>()  function returns 0 if at least one of the listed "
3248 "requests has been completed.  Otherwise, it returns one of the following "
3249 "nonzero error codes:"
3250 msgstr ""
3251
3252 #. type: Plain text
3253 #: build/C/man3/getaddrinfo_a.3:267
3254 msgid "The given timeout expired before any of the requests could be completed."
3255 msgstr ""
3256
3257 #. type: TP
3258 #: build/C/man3/getaddrinfo_a.3:267 build/C/man3/getaddrinfo_a.3:297
3259 #, no-wrap
3260 msgid "B<EAI_ALLDONE>"
3261 msgstr ""
3262
3263 #. type: Plain text
3264 #: build/C/man3/getaddrinfo_a.3:270
3265 msgid "There were no actual requests given to the function."
3266 msgstr ""
3267
3268 #. type: TP
3269 #: build/C/man3/getaddrinfo_a.3:270
3270 #, no-wrap
3271 msgid "B<EAI_INTR>"
3272 msgstr ""
3273
3274 #. type: Plain text
3275 #: build/C/man3/getaddrinfo_a.3:275
3276 msgid ""
3277 "A signal has interrupted the function.  Note that this interruption might "
3278 "have been caused by signal notification of some completed look-up request."
3279 msgstr ""
3280
3281 #. type: Plain text
3282 #: build/C/man3/getaddrinfo_a.3:287
3283 msgid ""
3284 "The B<gai_error>()  function can return B<EAI_INPROGRESS> for an unfinished "
3285 "look-up request, 0 for a successfully completed look-up (as described "
3286 "above), one of the error codes that could be returned by B<getaddrinfo>(3), "
3287 "or the error code B<EAI_CANCELLED> if the request has been canceled "
3288 "explicitly before it could be finished."
3289 msgstr ""
3290
3291 #. type: Plain text
3292 #: build/C/man3/getaddrinfo_a.3:291
3293 msgid "The B<gai_cancel>()  function can return one of these values:"
3294 msgstr ""
3295
3296 #. type: TP
3297 #: build/C/man3/getaddrinfo_a.3:291
3298 #, no-wrap
3299 msgid "B<EAI_CANCELLED>"
3300 msgstr ""
3301
3302 #. type: Plain text
3303 #: build/C/man3/getaddrinfo_a.3:294
3304 msgid "The request has been canceled successfully."
3305 msgstr ""
3306
3307 #. type: TP
3308 #: build/C/man3/getaddrinfo_a.3:294
3309 #, no-wrap
3310 msgid "B<EAI_NOTCANCELLED>"
3311 msgstr ""
3312
3313 #. type: Plain text
3314 #: build/C/man3/getaddrinfo_a.3:297
3315 msgid "The request has not been canceled."
3316 msgstr ""
3317
3318 #. type: Plain text
3319 #: build/C/man3/getaddrinfo_a.3:300
3320 msgid "The request has already completed."
3321 msgstr ""
3322
3323 #. type: Plain text
3324 #: build/C/man3/getaddrinfo_a.3:305 build/C/man3/getnameinfo.3:197
3325 msgid ""
3326 "The B<gai_strerror>(3)  function translates these error codes to a human "
3327 "readable string, suitable for error reporting."
3328 msgstr ""
3329
3330 #. type: Plain text
3331 #: build/C/man3/getaddrinfo_a.3:308
3332 msgid ""
3333 "These functions are GNU extensions; they first appeared in glibc in version "
3334 "2.2.3."
3335 msgstr ""
3336
3337 #. type: Plain text
3338 #: build/C/man3/getaddrinfo_a.3:314
3339 msgid ""
3340 "The interface of B<getaddrinfo_a>()  was modeled after the B<lio_listio>(3)  "
3341 "interface."
3342 msgstr ""
3343
3344 #. type: Plain text
3345 #: build/C/man3/getaddrinfo_a.3:318
3346 msgid ""
3347 "Two examples are provided: a simple example that resolves several requests "
3348 "in parallel synchronously, and a complex example showing some of the "
3349 "asynchronous capabilities."
3350 msgstr ""
3351
3352 #. type: SS
3353 #: build/C/man3/getaddrinfo_a.3:318
3354 #, no-wrap
3355 msgid "Synchronous example"
3356 msgstr ""
3357
3358 #. type: Plain text
3359 #: build/C/man3/getaddrinfo_a.3:323
3360 msgid ""
3361 "The program below simply resolves several hostnames in parallel, giving a "
3362 "speed-up compared to resolving the hostnames sequentially using "
3363 "B<getaddrinfo>(3).  The program might be used like this:"
3364 msgstr ""
3365
3366 #. type: Plain text
3367 #: build/C/man3/getaddrinfo_a.3:330
3368 #, no-wrap
3369 msgid ""
3370 "$ B<./a.out ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz>\n"
3371 "ftp.us.kernel.org: 128.30.2.36\n"
3372 "enoent.linuxfoundation.org: Name or service not known\n"
3373 "gnu.cz: 87.236.197.13\n"
3374 msgstr ""
3375
3376 #. type: Plain text
3377 #: build/C/man3/getaddrinfo_a.3:334
3378 msgid "Here is the program source code"
3379 msgstr ""
3380
3381 #. type: Plain text
3382 #: build/C/man3/getaddrinfo_a.3:341 build/C/man3/getaddrinfo_a.3:430
3383 #, no-wrap
3384 msgid ""
3385 "#define _GNU_SOURCE\n"
3386 "#include E<lt>netdb.hE<gt>\n"
3387 "#include E<lt>stdio.hE<gt>\n"
3388 "#include E<lt>stdlib.hE<gt>\n"
3389 "#include E<lt>string.hE<gt>\n"
3390 msgstr ""
3391
3392 #. type: Plain text
3393 #: build/C/man3/getaddrinfo_a.3:349
3394 #, no-wrap
3395 msgid ""
3396 "int\n"
3397 "main(int argc, char *argv[])\n"
3398 "{\n"
3399 "    int i, ret;\n"
3400 "    struct gaicb *reqs[argc - 1];\n"
3401 "    char host[NI_MAXHOST];\n"
3402 "    struct addrinfo *res;\n"
3403 msgstr ""
3404
3405 #. type: Plain text
3406 #: build/C/man3/getaddrinfo_a.3:354
3407 #, no-wrap
3408 msgid ""
3409 "    if (argc E<lt> 2) {\n"
3410 "        fprintf(stderr, \"Usage: %s HOST...\\en\", argv[0]);\n"
3411 "        exit(EXIT_FAILURE);\n"
3412 "    }\n"
3413 msgstr ""
3414
3415 #. type: Plain text
3416 #: build/C/man3/getaddrinfo_a.3:364
3417 #, no-wrap
3418 msgid ""
3419 "    for (i = 0; i E<lt> argc - 1; i++) {\n"
3420 "        reqs[i] = malloc(sizeof(*reqs[0]));\n"
3421 "        if (reqs[i] == NULL) {\n"
3422 "            perror(\"malloc\");\n"
3423 "            exit(EXIT_FAILURE);\n"
3424 "        }\n"
3425 "        memset(reqs[i], 0, sizeof(*reqs[0]));\n"
3426 "        reqs[i]-E<gt>ar_name = argv[i + 1];\n"
3427 "    }\n"
3428 msgstr ""
3429
3430 #. type: Plain text
3431 #: build/C/man3/getaddrinfo_a.3:371
3432 #, no-wrap
3433 msgid ""
3434 "    ret = getaddrinfo_a(GAI_WAIT, reqs, argc - 1, NULL);\n"
3435 "    if (ret != 0) {\n"
3436 "        fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n"
3437 "                gai_strerror(ret));\n"
3438 "        exit(EXIT_FAILURE);\n"
3439 "    }\n"
3440 msgstr ""
3441
3442 #. type: Plain text
3443 #: build/C/man3/getaddrinfo_a.3:377
3444 #, no-wrap
3445 msgid ""
3446 "    for (i = 0; i E<lt> argc - 1; i++) {\n"
3447 "        printf(\"%s: \", reqs[i]-E<gt>ar_name);\n"
3448 "        ret = gai_error(reqs[i]);\n"
3449 "        if (ret == 0) {\n"
3450 "            res = reqs[i]-E<gt>ar_result;\n"
3451 msgstr ""
3452
3453 #. type: Plain text
3454 #: build/C/man3/getaddrinfo_a.3:387
3455 #, no-wrap
3456 msgid ""
3457 "            ret = getnameinfo(res-E<gt>ai_addr, res-E<gt>ai_addrlen,\n"
3458 "                    host, sizeof(host),\n"
3459 "                    NULL, 0, NI_NUMERICHOST);\n"
3460 "            if (ret != 0) {\n"
3461 "                fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n"
3462 "                        gai_strerror(ret));\n"
3463 "                exit(EXIT_FAILURE);\n"
3464 "            }\n"
3465 "            puts(host);\n"
3466 msgstr ""
3467
3468 #. type: Plain text
3469 #: build/C/man3/getaddrinfo_a.3:394
3470 #, no-wrap
3471 msgid ""
3472 "        } else {\n"
3473 "            puts(gai_strerror(ret));\n"
3474 "        }\n"
3475 "    }\n"
3476 "    exit(EXIT_SUCCESS);\n"
3477 "}\n"
3478 msgstr ""
3479
3480 #. type: SS
3481 #: build/C/man3/getaddrinfo_a.3:395
3482 #, no-wrap
3483 msgid "Asynchronous example"
3484 msgstr ""
3485
3486 #. type: Plain text
3487 #: build/C/man3/getaddrinfo_a.3:400
3488 msgid ""
3489 "This example shows a simple interactive B<getaddrinfo_a>()  front-end.  The "
3490 "notification facility is not demonstrated."
3491 msgstr ""
3492
3493 #. type: Plain text
3494 #: build/C/man3/getaddrinfo_a.3:402
3495 msgid "An example session might look like this:"
3496 msgstr ""
3497
3498 #. type: Plain text
3499 #: build/C/man3/getaddrinfo_a.3:419
3500 #, no-wrap
3501 msgid ""
3502 "$ B<./a.out>\n"
3503 "E<gt> a ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz\n"
3504 "E<gt> c 2\n"
3505 "[2] gnu.cz: Request not canceled\n"
3506 "E<gt> w 0 1\n"
3507 "[00] ftp.us.kernel.org: Finished\n"
3508 "E<gt> l\n"
3509 "[00] ftp.us.kernel.org: 216.165.129.139\n"
3510 "[01] enoent.linuxfoundation.org: Processing request in progress\n"
3511 "[02] gnu.cz: 87.236.197.13\n"
3512 "E<gt> l\n"
3513 "[00] ftp.us.kernel.org: 216.165.129.139\n"
3514 "[01] enoent.linuxfoundation.org: Name or service not known\n"
3515 "[02] gnu.cz: 87.236.197.13\n"
3516 msgstr ""
3517
3518 #. type: Plain text
3519 #: build/C/man3/getaddrinfo_a.3:423
3520 msgid "The program source is as follows:"
3521 msgstr ""
3522
3523 #. type: Plain text
3524 #: build/C/man3/getaddrinfo_a.3:433
3525 #, no-wrap
3526 msgid ""
3527 "static struct gaicb **reqs = NULL;\n"
3528 "static int nreqs = 0;\n"
3529 msgstr ""
3530
3531 #. type: Plain text
3532 #: build/C/man3/getaddrinfo_a.3:438
3533 #, no-wrap
3534 msgid ""
3535 "static char *\n"
3536 "getcmd(void)\n"
3537 "{\n"
3538 "    static char buf[256];\n"
3539 msgstr ""
3540
3541 #. type: Plain text
3542 #: build/C/man3/getaddrinfo_a.3:442
3543 #, no-wrap
3544 msgid ""
3545 "    fputs(\"E<gt> \", stdout); fflush(stdout);\n"
3546 "    if (fgets(buf, sizeof(buf), stdin) == NULL)\n"
3547 "        return NULL;\n"
3548 msgstr ""
3549
3550 #. type: Plain text
3551 #: build/C/man3/getaddrinfo_a.3:445
3552 #, no-wrap
3553 msgid ""
3554 "    if (buf[strlen(buf) - 1] == \\(aq\\en\\(aq)\n"
3555 "        buf[strlen(buf) - 1] = 0;\n"
3556 msgstr ""
3557
3558 #. type: Plain text
3559 #: build/C/man3/getaddrinfo_a.3:448
3560 #, no-wrap
3561 msgid ""
3562 "    return buf;\n"
3563 "}\n"
3564 msgstr ""
3565
3566 #. type: Plain text
3567 #: build/C/man3/getaddrinfo_a.3:456
3568 #, no-wrap
3569 msgid ""
3570 "/* Add requests for specified hostnames */\n"
3571 "static void\n"
3572 "add_requests(void)\n"
3573 "{\n"
3574 "    int nreqs_base = nreqs;\n"
3575 "    char *host;\n"
3576 "    int ret;\n"
3577 msgstr ""
3578
3579 #. type: Plain text
3580 #: build/C/man3/getaddrinfo_a.3:460
3581 #, no-wrap
3582 msgid ""
3583 "    while ((host = strtok(NULL, \" \"))) {\n"
3584 "        nreqs++;\n"
3585 "        reqs = realloc(reqs, nreqs * sizeof(reqs[0]));\n"
3586 msgstr ""
3587
3588 #. type: Plain text
3589 #: build/C/man3/getaddrinfo_a.3:464
3590 #, no-wrap
3591 msgid ""
3592 "        reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0]));\n"
3593 "        reqs[nreqs - 1]-E<gt>ar_name = strdup(host);\n"
3594 "    }\n"
3595 msgstr ""
3596
3597 #. type: Plain text
3598 #: build/C/man3/getaddrinfo_a.3:466
3599 #, no-wrap
3600 msgid "    /* Queue nreqs_base..nreqs requests. */\n"
3601 msgstr ""
3602
3603 #. type: Plain text
3604 #: build/C/man3/getaddrinfo_a.3:475
3605 #, no-wrap
3606 msgid ""
3607 "    ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base],\n"
3608 "                        nreqs - nreqs_base, NULL);\n"
3609 "    if (ret) {\n"
3610 "        fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n"
3611 "                gai_strerror(ret));\n"
3612 "        exit(EXIT_FAILURE);\n"
3613 "    }\n"
3614 "}\n"
3615 msgstr ""
3616
3617 #. type: Plain text
3618 #: build/C/man3/getaddrinfo_a.3:484
3619 #, no-wrap
3620 msgid ""
3621 "/* Wait until at least one of specified requests completes */\n"
3622 "static void\n"
3623 "wait_requests(void)\n"
3624 "{\n"
3625 "    char *id;\n"
3626 "    int i, ret, n;\n"
3627 "    struct gaicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs));\n"
3628 "                /* NULL elements are ignored by gai_suspend(). */\n"
3629 msgstr ""
3630
3631 #. type: Plain text
3632 #: build/C/man3/getaddrinfo_a.3:487 build/C/man3/getaddrinfo_a.3:524
3633 #, no-wrap
3634 msgid ""
3635 "    while ((id = strtok(NULL, \" \")) != NULL) {\n"
3636 "        n = atoi(id);\n"
3637 msgstr ""
3638
3639 #. type: Plain text
3640 #: build/C/man3/getaddrinfo_a.3:492 build/C/man3/getaddrinfo_a.3:529
3641 #, no-wrap
3642 msgid ""
3643 "        if (n E<gt>= nreqs) {\n"
3644 "            printf(\"Bad request number: %s\\en\", id);\n"
3645 "            return;\n"
3646 "        }\n"
3647 msgstr ""
3648
3649 #. type: Plain text
3650 #: build/C/man3/getaddrinfo_a.3:495
3651 #, no-wrap
3652 msgid ""
3653 "        wait_reqs[n] = reqs[n];\n"
3654 "    }\n"
3655 msgstr ""
3656
3657 #. type: Plain text
3658 #: build/C/man3/getaddrinfo_a.3:501
3659 #, no-wrap
3660 msgid ""
3661 "    ret = gai_suspend(wait_reqs, nreqs, NULL);\n"
3662 "    if (ret) {\n"
3663 "        printf(\"gai_suspend(): %s\\en\", gai_strerror(ret));\n"
3664 "        return;\n"
3665 "    }\n"
3666 msgstr ""
3667
3668 #. type: Plain text
3669 #: build/C/man3/getaddrinfo_a.3:505
3670 #, no-wrap
3671 msgid ""
3672 "    for (i = 0; i E<lt> nreqs; i++) {\n"
3673 "        if (wait_reqs[i] == NULL)\n"
3674 "            continue;\n"
3675 msgstr ""
3676
3677 #. type: Plain text
3678 #: build/C/man3/getaddrinfo_a.3:509
3679 #, no-wrap
3680 msgid ""
3681 "        ret = gai_error(reqs[i]);\n"
3682 "        if (ret == EAI_INPROGRESS)\n"
3683 "            continue;\n"
3684 msgstr ""
3685
3686 #. type: Plain text
3687 #: build/C/man3/getaddrinfo_a.3:514
3688 #, no-wrap
3689 msgid ""
3690 "        printf(\"[%02d] %s: %s\\en\", i, reqs[i]-E<gt>ar_name,\n"
3691 "               ret == 0 ? \"Finished\" : gai_strerror(ret));\n"
3692 "    }\n"
3693 "}\n"
3694 msgstr ""
3695
3696 #. type: Plain text
3697 #: build/C/man3/getaddrinfo_a.3:521
3698 #, no-wrap
3699 msgid ""
3700 "/* Cancel specified requests */\n"
3701 "static void\n"
3702 "cancel_requests(void)\n"
3703 "{\n"
3704 "    char *id;\n"
3705 "    int ret, n;\n"
3706 msgstr ""
3707
3708 #. type: Plain text
3709 #: build/C/man3/getaddrinfo_a.3:535
3710 #, no-wrap
3711 msgid ""
3712 "        ret = gai_cancel(reqs[n]);\n"
3713 "        printf(\"[%s] %s: %s\\en\", id, reqs[atoi(id)]-E<gt>ar_name,\n"
3714 "               gai_strerror(ret));\n"
3715 "    }\n"
3716 "}\n"
3717 msgstr ""
3718
3719 #. type: Plain text
3720 #: build/C/man3/getaddrinfo_a.3:543
3721 #, no-wrap
3722 msgid ""
3723 "/* List all requests */\n"
3724 "static void\n"
3725 "list_requests(void)\n"
3726 "{\n"
3727 "    int i, ret;\n"
3728 "    char host[NI_MAXHOST];\n"
3729 "    struct addrinfo *res;\n"
3730 msgstr ""
3731
3732 #. type: Plain text
3733 #: build/C/man3/getaddrinfo_a.3:547
3734 #, no-wrap
3735 msgid ""
3736 "    for (i = 0; i E<lt> nreqs; i++) {\n"
3737 "        printf(\"[%02d] %s: \", i, reqs[i]-E<gt>ar_name);\n"
3738 "        ret = gai_error(reqs[i]);\n"
3739 msgstr ""
3740
3741 #. type: Plain text
3742 #: build/C/man3/getaddrinfo_a.3:550
3743 #, no-wrap
3744 msgid ""
3745 "        if (!ret) {\n"
3746 "            res = reqs[i]-E<gt>ar_result;\n"
3747 msgstr ""
3748
3749 #. type: Plain text
3750 #: build/C/man3/getaddrinfo_a.3:565
3751 #, no-wrap
3752 msgid ""
3753 "            ret = getnameinfo(res-E<gt>ai_addr, res-E<gt>ai_addrlen,\n"
3754 "                              host, sizeof(host),\n"
3755 "                              NULL, 0, NI_NUMERICHOST);\n"
3756 "            if (ret) {\n"
3757 "                fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n"
3758 "                        gai_strerror(ret));\n"
3759 "                exit(EXIT_FAILURE);\n"
3760 "            }\n"
3761 "            puts(host);\n"
3762 "        } else {\n"
3763 "            puts(gai_strerror(ret));\n"
3764 "        }\n"
3765 "    }\n"
3766 "}\n"
3767 msgstr ""
3768
3769 #. type: Plain text
3770 #: build/C/man3/getaddrinfo_a.3:571
3771 #, no-wrap
3772 msgid ""
3773 "int\n"
3774 "main(int argc, char *argv[])\n"
3775 "{\n"
3776 "    char *cmdline;\n"
3777 "    char *cmd;\n"
3778 msgstr ""
3779
3780 #. type: Plain text
3781 #: build/C/man3/getaddrinfo_a.3:574
3782 #, no-wrap
3783 msgid ""
3784 "    while ((cmdline = getcmd()) != NULL) {\n"
3785 "        cmd = strtok(cmdline, \" \");\n"
3786 msgstr ""
3787
3788 #. type: Plain text
3789 #: build/C/man3/getaddrinfo_a.3:599
3790 #, no-wrap
3791 msgid ""
3792 "        if (cmd == NULL) {\n"
3793 "            list_requests();\n"
3794 "        } else {\n"
3795 "            switch (cmd[0]) {\n"
3796 "            case \\(aqa\\(aq:\n"
3797 "                add_requests();\n"
3798 "                break;\n"
3799 "            case \\(aqw\\(aq:\n"
3800 "                wait_requests();\n"
3801 "                break;\n"
3802 "            case \\(aqc\\(aq:\n"
3803 "                cancel_requests();\n"
3804 "                break;\n"
3805 "            case \\(aql\\(aq:\n"
3806 "                list_requests();\n"
3807 "                break;\n"
3808 "            default:\n"
3809 "                fprintf(stderr, \"Bad command: %c\\en\", cmd[0]);\n"
3810 "                break;\n"
3811 "            }\n"
3812 "        }\n"
3813 "    }\n"
3814 "    exit(EXIT_SUCCESS);\n"
3815 "}\n"
3816 msgstr ""
3817
3818 #. type: Plain text
3819 #: build/C/man3/getaddrinfo_a.3:607
3820 msgid ""
3821 "B<getaddrinfo>(3), B<inet>(3), B<lio_listio>(3), B<hostname>(7), B<ip>(7), "
3822 "B<sigevent>(7)"
3823 msgstr ""
3824
3825 #. type: TH
3826 #: build/C/man1/getent.1:24
3827 #, no-wrap
3828 msgid "GETENT"
3829 msgstr ""
3830
3831 #. type: TH
3832 #: build/C/man1/getent.1:24
3833 #, no-wrap
3834 msgid "2013-03-15"
3835 msgstr ""
3836
3837 #. type: TH
3838 #: build/C/man1/getent.1:24
3839 #, no-wrap
3840 msgid "User Commands"
3841 msgstr ""
3842
3843 #. type: Plain text
3844 #: build/C/man1/getent.1:27
3845 msgid "getent - get entries from Name Service Switch libraries"
3846 msgstr ""
3847
3848 #. type: Plain text
3849 #: build/C/man1/getent.1:30
3850 msgid "B<getent> I<database> [I<key> ...]"
3851 msgstr ""
3852
3853 #. type: Plain text
3854 #: build/C/man1/getent.1:45
3855 msgid ""
3856 "The B<getent> command displays entries from databases supported by the Name "
3857 "Service Switch libraries, which are configured in I</etc/nsswitch.conf>.  If "
3858 "one or more I<key> arguments are provided, then only the entries that match "
3859 "the supplied keys will be displayed.  Otherwise, if no I<key> is provided, "
3860 "all entries will be displayed (unless the database does not support "
3861 "enumeration)."
3862 msgstr ""
3863
3864 #. type: Plain text
3865 #: build/C/man1/getent.1:49
3866 msgid ""
3867 "The I<database> may be any of those supported by the GNU C Library, listed "
3868 "below:"
3869 msgstr ""
3870
3871 #. type: TP
3872 #: build/C/man1/getent.1:50
3873 #, no-wrap
3874 msgid "B<ahosts>"
3875 msgstr ""
3876
3877 #. type: Plain text
3878 #: build/C/man1/getent.1:71
3879 msgid ""
3880 "When no I<key> is provided, use B<sethostent>(3), B<gethostent>(3), and "
3881 "B<endhostent>(3)  to enumerate the hosts database.  This is identical to "
3882 "using B<hosts>.  When one or more I<key> arguments are provided, pass each "
3883 "I<key> in succession to B<getaddrinfo>(3)  with the address family "
3884 "B<AF_UNSPEC>, enumerating each socket address structure returned."
3885 msgstr ""
3886
3887 #. type: TP
3888 #: build/C/man1/getent.1:71
3889 #, no-wrap
3890 msgid "B<ahostsv4>"
3891 msgstr ""
3892
3893 #. type: Plain text
3894 #: build/C/man1/getent.1:77
3895 msgid "Same as B<ahosts>, but use the address family B<AF_INET>."
3896 msgstr ""
3897
3898 #. type: TP
3899 #: build/C/man1/getent.1:77
3900 #, no-wrap
3901 msgid "B<ahostsv6>"
3902 msgstr ""
3903
3904 #. type: Plain text
3905 #: build/C/man1/getent.1:88
3906 msgid ""
3907 "Same as B<ahosts>, but use the address family B<AF_INET6>.  The call to "
3908 "B<getaddrinfo>(3)  in this case includes the B<AI_V4MAPPED> flag."
3909 msgstr ""
3910
3911 #. type: TP
3912 #: build/C/man1/getent.1:88 build/C/man5/nsswitch.conf.5:44
3913 #, no-wrap
3914 msgid "B<aliases>"
3915 msgstr ""
3916
3917 #. type: Plain text
3918 #: build/C/man1/getent.1:105
3919 msgid ""
3920 "When no I<key> is provided, use B<setaliasent>(3), B<getaliasent>(3), and "
3921 "B<endaliasent>(3)  to enumerate the aliases database.  When one or more "
3922 "I<key> arguments are provided, pass each I<key> in succession to "
3923 "B<getaliasbyname>(3)  and display the result."
3924 msgstr ""
3925
3926 #. type: TP
3927 #: build/C/man1/getent.1:105 build/C/man5/nsswitch.conf.5:49
3928 #, no-wrap
3929 msgid "B<ethers>"
3930 msgstr ""
3931
3932 #. type: Plain text
3933 #: build/C/man1/getent.1:121
3934 msgid ""
3935 "When one or more I<key> arguments are provided, pass each I<key> in "
3936 "succession to B<ether_aton>(3)  and B<ether_hostton>(3)  until a result is "
3937 "obtained, and display the result.  Enumeration is not supported on "
3938 "B<ethers>, so a I<key> must be provided."
3939 msgstr ""
3940
3941 #. type: TP
3942 #: build/C/man1/getent.1:121 build/C/man5/nsswitch.conf.5:52
3943 #, no-wrap
3944 msgid "B<group>"
3945 msgstr ""
3946
3947 #. type: Plain text
3948 #: build/C/man1/getent.1:142
3949 msgid ""
3950 "When no I<key> is provided, use B<setgrent>(3), B<getgrent>(3), and "
3951 "B<endgrent>(3)  to enumerate the group database.  When one or more I<key> "
3952 "arguments are provided, pass each numeric I<key> to B<getgrgid>(3)  and each "
3953 "nonnumeric I<key> to B<getgrnam>(3)  and display the result."
3954 msgstr ""
3955
3956 #. type: TP
3957 #: build/C/man1/getent.1:142
3958 #, no-wrap
3959 msgid "B<gshadow>"
3960 msgstr ""
3961
3962 #. type: Plain text
3963 #: build/C/man1/getent.1:159
3964 msgid ""
3965 "When no I<key> is provided, use B<setsgent>(3), B<getsgent>(3), and "
3966 "B<endsgent>(3)  to enumerate the gshadow database.  When one or more I<key> "
3967 "arguments are provided, pass each I<key> in succession to B<getsgnam>(3)  "
3968 "and display the result."
3969 msgstr ""
3970
3971 #. type: TP
3972 #: build/C/man1/getent.1:159 build/C/man5/nsswitch.conf.5:57
3973 #, no-wrap
3974 msgid "B<hosts>"
3975 msgstr ""
3976
3977 #. type: Plain text
3978 #: build/C/man1/getent.1:182
3979 msgid ""
3980 "When no I<key> is provided, use B<sethostent>(3), B<gethostent>(3), and "
3981 "B<endhostent>(3)  to enumerate the hosts database.  When one or more I<key> "
3982 "arguments are provided, pass each I<key> to B<gethostbyaddr>(3)  or "
3983 "B<gethostbyname2>(3), depending on whether a call to B<inet_pton>(3)  "
3984 "indicates that the I<key> is an IPv6 or IPv4 address or not, and display the "
3985 "result."
3986 msgstr ""
3987
3988 #. type: TP
3989 #: build/C/man1/getent.1:182 build/C/man5/nsswitch.conf.5:62
3990 #, no-wrap
3991 msgid "B<initgroups>"
3992 msgstr ""
3993
3994 #. type: Plain text
3995 #: build/C/man1/getent.1:196
3996 msgid ""
3997 "When one or more I<key> arguments are provided, pass each I<key> in "
3998 "succession to B<getgrouplist>(3)  and display the result.  Enumeration is "
3999 "not supported on B<initgroups>, so a I<key> must be provided."
4000 msgstr ""
4001
4002 #. type: TP
4003 #: build/C/man1/getent.1:196 build/C/man5/nsswitch.conf.5:67
4004 #, no-wrap
4005 msgid "B<netgroup>"
4006 msgstr ""
4007
4008 #. type: Plain text
4009 #: build/C/man1/getent.1:222
4010 msgid ""
4011 "When one I<key> is provided, pass the I<key> to B<setnetgrent>(3)  and, "
4012 "using B<getnetgrent>(3)  display the resulting string triple (I<hostname>, "
4013 "I<username>, I<domainname>).  Alternatively, three I<keys> may be provided, "
4014 "which are interpreted as the I<hostname>, I<username> and I<domainname> to "
4015 "match to a netgroup name via B<innetgr>(3).  Enumeration is not supported on "
4016 "B<netgroup>, so either one or three I<keys> must be provided."
4017 msgstr ""
4018
4019 #. type: TP
4020 #: build/C/man1/getent.1:222 build/C/man5/nsswitch.conf.5:71
4021 #, no-wrap
4022 msgid "B<networks>"
4023 msgstr ""
4024
4025 #. type: Plain text
4026 #: build/C/man1/getent.1:243
4027 msgid ""
4028 "When no I<key> is provided, use B<setnetent>(3), B<getnetent>(3), and "
4029 "B<endnetent>(3)  to enumerate the networks database.  When one or more "
4030 "I<key> arguments are provided, pass each numeric I<key> to "
4031 "B<getnetbyaddr>(3)  and each nonnumeric I<key> to B<getnetbyname>(3)  and "
4032 "display the result."
4033 msgstr ""
4034
4035 #. type: TP
4036 #: build/C/man1/getent.1:243 build/C/man5/nsswitch.conf.5:76
4037 #, no-wrap
4038 msgid "B<passwd>"
4039 msgstr ""
4040
4041 #. type: Plain text
4042 #: build/C/man1/getent.1:264
4043 msgid ""
4044 "When no I<key> is provided, use B<setpwent>(3), B<getpwent>(3), and "
4045 "B<endpwent>(3)  to enumerate the passwd database.  When one or more I<key> "
4046 "arguments are provided, pass each numeric I<key> to B<getpwuid>(3)  and each "
4047 "nonnumeric I<key> to B<getpwnam>(3)  and display the result."
4048 msgstr ""
4049
4050 #. type: TP
4051 #: build/C/man1/getent.1:264 build/C/man5/nsswitch.conf.5:81
4052 #, no-wrap
4053 msgid "B<protocols>"
4054 msgstr ""
4055
4056 #. type: Plain text
4057 #: build/C/man1/getent.1:285
4058 msgid ""
4059 "When no I<key> is provided, use B<setprotoent>(3), B<getprotoent>(3), and "
4060 "B<endprotoent>(3)  to enumerate the protocols database.  When one or more "
4061 "I<key> arguments are provided, pass each numeric I<key> to "
4062 "B<getprotobynumber>(3)  and each nonnumeric I<key> to B<getprotobyname>(3)  "
4063 "and display the result."
4064 msgstr ""
4065
4066 #. type: TP
4067 #: build/C/man1/getent.1:285 build/C/man5/nsswitch.conf.5:89
4068 #, no-wrap
4069 msgid "B<rpc>"
4070 msgstr ""
4071
4072 #. type: Plain text
4073 #: build/C/man1/getent.1:306
4074 msgid ""
4075 "When no I<key> is provided, use B<setrpcent>(3), B<getrpcent>(3), and "
4076 "B<endrpcent>(3)  to enumerate the rpc database.  When one or more I<key> "
4077 "arguments are provided, pass each numeric I<key> to B<getrpcbynumber>(3)  "
4078 "and each nonnumeric I<key> to B<getrpcbyname>(3)  and display the result."
4079 msgstr ""
4080
4081 #. type: TP
4082 #: build/C/man1/getent.1:306 build/C/man5/nsswitch.conf.5:94
4083 #, no-wrap
4084 msgid "B<services>"
4085 msgstr ""
4086
4087 #. type: Plain text
4088 #: build/C/man1/getent.1:327
4089 msgid ""
4090 "When no I<key> is provided, use B<setservent>(3), B<getservent>(3), and "
4091 "B<endservent>(3)  to enumerate the services database.  When one or more "
4092 "I<key> arguments are provided, pass each numeric I<key> to "
4093 "B<getservbynumber>(3)  and each nonnumeric I<key> to B<getservbyname>(3)  "
4094 "and display the result."
4095 msgstr ""
4096
4097 #. type: TP
4098 #: build/C/man1/getent.1:327 build/C/man5/nsswitch.conf.5:99
4099 #, no-wrap
4100 msgid "B<shadow>"
4101 msgstr ""
4102
4103 #. type: Plain text
4104 #: build/C/man1/getent.1:344
4105 msgid ""
4106 "When no I<key> is provided, use B<setspent>(3), B<getspent>(3), and "
4107 "B<endspent>(3)  to enumerate the shadow database.  When one or more I<key> "
4108 "arguments are provided, pass each I<key> in succession to B<getspnam>(3)  "
4109 "and display the result."
4110 msgstr ""
4111
4112 #. type: SH
4113 #: build/C/man1/getent.1:345
4114 #, no-wrap
4115 msgid "EXIT STATUS"
4116 msgstr ""
4117
4118 #. type: Plain text
4119 #: build/C/man1/getent.1:348
4120 msgid "One of the following exit values can be returned by B<getent>:"
4121 msgstr ""
4122
4123 #. type: TP
4124 #: build/C/man1/getent.1:349
4125 #, no-wrap
4126 msgid "B<0>"
4127 msgstr ""
4128
4129 #. type: Plain text
4130 #: build/C/man1/getent.1:352
4131 msgid "Command completed successfully."
4132 msgstr ""
4133
4134 #. type: TP
4135 #: build/C/man1/getent.1:352
4136 #, no-wrap
4137 msgid "B<1>"
4138 msgstr ""
4139
4140 #. type: Plain text
4141 #: build/C/man1/getent.1:357
4142 msgid "Missing arguments, or I<database> unknown."
4143 msgstr ""
4144
4145 #. type: TP
4146 #: build/C/man1/getent.1:357
4147 #, no-wrap
4148 msgid "B<2>"
4149 msgstr ""
4150
4151 #. type: Plain text
4152 #: build/C/man1/getent.1:363
4153 msgid "One or more supplied I<key> could not be found in the I<database>."
4154 msgstr ""
4155
4156 #. type: TP
4157 #: build/C/man1/getent.1:363
4158 #, no-wrap
4159 msgid "B<3>"
4160 msgstr ""
4161
4162 #. type: Plain text
4163 #: build/C/man1/getent.1:367
4164 msgid "Enumeration not supported on this I<database>."
4165 msgstr ""
4166
4167 #. type: Plain text
4168 #: build/C/man1/getent.1:370
4169 msgid "B<nsswitch.conf>(5)"
4170 msgstr ""
4171
4172 #. type: TH
4173 #: build/C/man3/gethostbyname.3:38
4174 #, no-wrap
4175 msgid "GETHOSTBYNAME"
4176 msgstr ""
4177
4178 #. type: TH
4179 #: build/C/man3/gethostbyname.3:38
4180 #, no-wrap
4181 msgid "2013-09-04"
4182 msgstr ""
4183
4184 #. type: Plain text
4185 #: build/C/man3/gethostbyname.3:46
4186 msgid ""
4187 "gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent, h_errno, "
4188 "herror, hstrerror, gethostbyaddr_r, gethostbyname2, gethostbyname2_r, "
4189 "gethostbyname_r, gethostent_r - get network host entry"
4190 msgstr ""
4191
4192 #. type: Plain text
4193 #: build/C/man3/gethostbyname.3:50
4194 #, no-wrap
4195 msgid ""
4196 "B<#include E<lt>netdb.hE<gt>>\n"
4197 "B<extern int h_errno;>\n"
4198 msgstr ""
4199
4200 #. type: Plain text
4201 #: build/C/man3/gethostbyname.3:52
4202 #, no-wrap
4203 msgid "B<struct hostent *gethostbyname(const char *>I<name>B<);>\n"
4204 msgstr ""
4205
4206 #. type: Plain text
4207 #: build/C/man3/gethostbyname.3:56
4208 #, no-wrap
4209 msgid ""
4210 "B<#include E<lt>sys/socket.hE<gt>>       /* for AF_INET */\n"
4211 "B<struct hostent *gethostbyaddr(const void *>I<addr>B<,>\n"
4212 "B<                              socklen_t >I<len>B<, int >I<type>B<);>\n"
4213 msgstr ""
4214
4215 #. type: Plain text
4216 #: build/C/man3/gethostbyname.3:58
4217 #, no-wrap
4218 msgid "B<void sethostent(int >I<stayopen>B<);>\n"
4219 msgstr ""
4220
4221 #. type: Plain text
4222 #: build/C/man3/gethostbyname.3:60
4223 #, no-wrap
4224 msgid "B<void endhostent(void);>\n"
4225 msgstr ""
4226
4227 #. type: Plain text
4228 #: build/C/man3/gethostbyname.3:62
4229 #, no-wrap
4230 msgid "B<void herror(const char *>I<s>B<);>\n"
4231 msgstr ""
4232
4233 #. type: Plain text
4234 #: build/C/man3/gethostbyname.3:64
4235 #, no-wrap
4236 msgid "B<const char *hstrerror(int >I<err>B<);>\n"
4237 msgstr ""
4238
4239 #. type: Plain text
4240 #: build/C/man3/gethostbyname.3:66
4241 #, no-wrap
4242 msgid "/* System V/POSIX extension */\n"
4243 msgstr ""
4244
4245 #. type: Plain text
4246 #: build/C/man3/gethostbyname.3:68
4247 #, no-wrap
4248 msgid "B<struct hostent *gethostent(void);>\n"
4249 msgstr ""
4250
4251 #. type: Plain text
4252 #: build/C/man3/gethostbyname.3:72
4253 #, no-wrap
4254 msgid "B<struct hostent *gethostbyname2(const char *>I<name>B<, int >I<af>B<);>\n"
4255 msgstr ""
4256
4257 #. type: Plain text
4258 #: build/C/man3/gethostbyname.3:76
4259 #, no-wrap
4260 msgid ""
4261 "B<int gethostent_r(>\n"
4262 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t "
4263 ">I<buflen>B<,>\n"
4264 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
4265 msgstr ""
4266
4267 #. type: Plain text
4268 #: build/C/man3/gethostbyname.3:80
4269 #, no-wrap
4270 msgid ""
4271 "B<int gethostbyaddr_r(const void *>I<addr>B<, socklen_t >I<len>B<, int "
4272 ">I<type>B<,>\n"
4273 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t "
4274 ">I<buflen>B<,>\n"
4275 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
4276 msgstr ""
4277
4278 #. type: Plain text
4279 #: build/C/man3/gethostbyname.3:84
4280 #, no-wrap
4281 msgid ""
4282 "B<int gethostbyname_r(const char *>I<name>B<,>\n"
4283 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t "
4284 ">I<buflen>B<,>\n"
4285 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
4286 msgstr ""
4287
4288 #. type: Plain text
4289 #: build/C/man3/gethostbyname.3:88
4290 #, no-wrap
4291 msgid ""
4292 "B<int gethostbyname2_r(const char *>I<name>B<, int >I<af,>\n"
4293 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t "
4294 ">I<buflen>B<,>\n"
4295 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
4296 msgstr ""
4297
4298 #. type: Plain text
4299 #: build/C/man3/gethostbyname.3:102
4300 msgid ""
4301 "B<gethostbyname2>(), B<gethostent_r>(), B<gethostbyaddr_r>(), "
4302 "B<gethostbyname_r>(), B<gethostbyname2_r>():"
4303 msgstr ""
4304
4305 #. type: Plain text
4306 #: build/C/man3/gethostbyname.3:104 build/C/man3/gethostbyname.3:112 build/C/man3/getnetent_r.3:60 build/C/man3/getprotoent_r.3:57 build/C/man3/getservent_r.3:57
4307 msgid "_BSD_SOURCE || _SVID_SOURCE"
4308 msgstr ""
4309
4310 #. type: Plain text
4311 #: build/C/man3/gethostbyname.3:108
4312 msgid "B<herror>(), B<hstrerror>():"
4313 msgstr ""
4314
4315 #. type: TP
4316 #: build/C/man3/gethostbyname.3:109 build/C/man3/gethostbyname.3:122
4317 #, no-wrap
4318 msgid "Since glibc 2.12:"
4319 msgstr ""
4320
4321 #. type: TP
4322 #: build/C/man3/gethostbyname.3:112
4323 #, no-wrap
4324 msgid "From glibc 2.8 to glibc 2.11:"
4325 msgstr ""
4326
4327 #. type: Plain text
4328 #: build/C/man3/gethostbyname.3:115
4329 msgid "_BSD_SOURCE || _SVID_SOURCE || _GNU_SOURCE"
4330 msgstr ""
4331
4332 #. type: TP
4333 #: build/C/man3/gethostbyname.3:115
4334 #, no-wrap
4335 msgid "Before glibc 2.8:"
4336 msgstr ""
4337
4338 #. type: Plain text
4339 #: build/C/man3/gethostbyname.3:118 build/C/man3/gethostbyname.3:129
4340 msgid "none"
4341 msgstr ""
4342
4343 #. type: Plain text
4344 #: build/C/man3/gethostbyname.3:121
4345 msgid "B<h_errno>:"
4346 msgstr ""
4347
4348 #. type: Plain text
4349 #: build/C/man3/gethostbyname.3:126
4350 #, no-wrap
4351 msgid ""
4352 "_BSD_SOURCE || _SVID_SOURCE ||\n"
4353 "    (_POSIX_C_SOURCE E<lt> 200809L && _XOPEN_SOURCE E<lt> 700)\n"
4354 msgstr ""
4355
4356 #. type: TP
4357 #: build/C/man3/gethostbyname.3:126
4358 #, no-wrap
4359 msgid "Before glibc 2.12:"
4360 msgstr ""
4361
4362 #. type: Plain text
4363 #: build/C/man3/gethostbyname.3:146
4364 msgid ""
4365 "The B<gethostbyname*>(), B<gethostbyaddr*>(), B<herror>(), and "
4366 "B<hstrerror>()  functions are obsolete.  Applications should use "
4367 "B<getaddrinfo>(3), B<getnameinfo>(3), and B<gai_strerror>(3)  instead."
4368 msgstr ""
4369
4370 #. type: Plain text
4371 #: build/C/man3/gethostbyname.3:187
4372 msgid ""
4373 "The B<gethostbyname>()  function returns a structure of type I<hostent> for "
4374 "the given host I<name>.  Here I<name> is either a hostname, or an IPv4 "
4375 "address in standard dot notation (as for B<inet_addr>(3)), or an IPv6 "
4376 "address in colon (and possibly dot) notation.  (See RFC\\ 1884 for the "
4377 "description of IPv6 addresses.)  If I<name> is an IPv4 or IPv6 address, no "
4378 "lookup is performed and B<gethostbyname>()  simply copies I<name> into the "
4379 "I<h_name> field and its I<struct in_addr> equivalent into the "
4380 "I<h_addr_list[0]> field of the returned I<hostent> structure.  If I<name> "
4381 "doesn't end in a dot and the environment variable B<HOSTALIASES> is set, the "
4382 "alias file pointed to by B<HOSTALIASES> will first be searched for I<name> "
4383 "(see B<hostname>(7)  for the file format).  The current domain and its "
4384 "parents are searched unless I<name> ends in a dot."
4385 msgstr ""
4386
4387 #. type: Plain text
4388 #: build/C/man3/gethostbyname.3:203
4389 msgid ""
4390 "The B<gethostbyaddr>()  function returns a structure of type I<hostent> for "
4391 "the given host address I<addr> of length I<len> and address type I<type>.  "
4392 "Valid address types are B<AF_INET> and B<AF_INET6>.  The host address "
4393 "argument is a pointer to a struct of a type depending on the address type, "
4394 "for example a I<struct in_addr *> (probably obtained via a call to "
4395 "B<inet_addr>(3))  for address type B<AF_INET>."
4396 msgstr ""
4397
4398 #. type: Plain text
4399 #: build/C/man3/gethostbyname.3:210
4400 msgid ""
4401 "The B<sethostent>()  function specifies, if I<stayopen> is true (1), that a "
4402 "connected TCP socket should be used for the name server queries and that the "
4403 "connection should remain open during successive queries.  Otherwise, name "
4404 "server queries will use UDP datagrams."
4405 msgstr ""
4406
4407 #. type: Plain text
4408 #: build/C/man3/gethostbyname.3:215
4409 msgid ""
4410 "The B<endhostent>()  function ends the use of a TCP connection for name "
4411 "server queries."
4412 msgstr ""
4413
4414 #. type: Plain text
4415 #: build/C/man3/gethostbyname.3:220
4416 msgid ""
4417 "The (obsolete)  B<herror>()  function prints the error message associated "
4418 "with the current value of I<h_errno> on I<stderr>."
4419 msgstr ""
4420
4421 #. type: Plain text
4422 #: build/C/man3/gethostbyname.3:225
4423 msgid ""
4424 "The (obsolete)  B<hstrerror>()  function takes an error number (typically "
4425 "I<h_errno>) and returns the corresponding message string."
4426 msgstr ""
4427
4428 #.  (See
4429 #.  .BR resolv+ (8)).
4430 #. type: Plain text
4431 #: build/C/man3/gethostbyname.3:242
4432 msgid ""
4433 "The domain name queries carried out by B<gethostbyname>()  and "
4434 "B<gethostbyaddr>()  use a combination of any or all of the name server "
4435 "B<named>(8), a broken out line from I</etc/hosts>, and the Network "
4436 "Information Service (NIS or YP), depending upon the contents of the I<order> "
4437 "line in I</etc/host.conf>.  The default action is to query B<named>(8), "
4438 "followed by I</etc/hosts>."
4439 msgstr ""
4440
4441 #. type: Plain text
4442 #: build/C/man3/gethostbyname.3:244
4443 msgid "The I<hostent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
4444 msgstr ""
4445
4446 #. type: Plain text
4447 #: build/C/man3/gethostbyname.3:256
4448 #, no-wrap
4449 msgid ""
4450 "struct hostent {\n"
4451 "    char  *h_name;            /* official name of host */\n"
4452 "    char **h_aliases;         /* alias list */\n"
4453 "    int    h_addrtype;        /* host address type */\n"
4454 "    int    h_length;          /* length of address */\n"
4455 "    char **h_addr_list;       /* list of addresses */\n"
4456 "}\n"
4457 "#define h_addr h_addr_list[0] /* for backward compatibility */\n"
4458 msgstr ""
4459
4460 #. type: Plain text
4461 #: build/C/man3/gethostbyname.3:260
4462 msgid "The members of the I<hostent> structure are:"
4463 msgstr ""
4464
4465 #. type: TP
4466 #: build/C/man3/gethostbyname.3:260 build/C/man3/getipnodebyname.3:210
4467 #, no-wrap
4468 msgid "I<h_name>"
4469 msgstr ""
4470
4471 #. type: Plain text
4472 #: build/C/man3/gethostbyname.3:263
4473 msgid "The official name of the host."
4474 msgstr ""
4475
4476 #. type: TP
4477 #: build/C/man3/gethostbyname.3:263 build/C/man3/getipnodebyname.3:213
4478 #, no-wrap
4479 msgid "I<h_aliases>"
4480 msgstr ""
4481
4482 #. type: Plain text
4483 #: build/C/man3/gethostbyname.3:266
4484 msgid "An array of alternative names for the host, terminated by a NULL pointer."
4485 msgstr ""
4486
4487 #. type: TP
4488 #: build/C/man3/gethostbyname.3:266 build/C/man3/getipnodebyname.3:217
4489 #, no-wrap
4490 msgid "I<h_addrtype>"
4491 msgstr ""
4492
4493 #. type: Plain text
4494 #: build/C/man3/gethostbyname.3:273
4495 msgid "The type of address; always B<AF_INET> or B<AF_INET6> at present."
4496 msgstr ""
4497
4498 #. type: TP
4499 #: build/C/man3/gethostbyname.3:273 build/C/man3/getipnodebyname.3:239
4500 #, no-wrap
4501 msgid "I<h_length>"
4502 msgstr ""
4503
4504 #. type: Plain text
4505 #: build/C/man3/gethostbyname.3:276
4506 msgid "The length of the address in bytes."
4507 msgstr ""
4508
4509 #. type: TP
4510 #: build/C/man3/gethostbyname.3:276 build/C/man3/getipnodebyname.3:253
4511 #, no-wrap
4512 msgid "I<h_addr_list>"
4513 msgstr ""
4514
4515 #. type: Plain text
4516 #: build/C/man3/gethostbyname.3:280
4517 msgid ""
4518 "An array of pointers to network addresses for the host (in network byte "
4519 "order), terminated by a NULL pointer."
4520 msgstr ""
4521
4522 #. type: TP
4523 #: build/C/man3/gethostbyname.3:280
4524 #, no-wrap
4525 msgid "I<h_addr>"
4526 msgstr ""
4527
4528 #. type: Plain text
4529 #: build/C/man3/gethostbyname.3:283
4530 msgid "The first address in I<h_addr_list> for backward compatibility."
4531 msgstr ""
4532
4533 #. type: Plain text
4534 #: build/C/man3/gethostbyname.3:295
4535 msgid ""
4536 "The B<gethostbyname>()  and B<gethostbyaddr>()  functions return the "
4537 "I<hostent> structure or a NULL pointer if an error occurs.  On error, the "
4538 "I<h_errno> variable holds an error number.  When non-NULL, the return value "
4539 "may point at static data, see the notes below."
4540 msgstr ""
4541
4542 #. type: Plain text
4543 #: build/C/man3/gethostbyname.3:297
4544 msgid "The variable I<h_errno> can have the following values:"
4545 msgstr ""
4546
4547 #. type: TP
4548 #: build/C/man3/gethostbyname.3:297 build/C/man3/getipnodebyname.3:190
4549 #, no-wrap
4550 msgid "B<HOST_NOT_FOUND>"
4551 msgstr ""
4552
4553 #. type: Plain text
4554 #: build/C/man3/gethostbyname.3:300
4555 msgid "The specified host is unknown."
4556 msgstr ""
4557
4558 #. type: TP
4559 #: build/C/man3/gethostbyname.3:300
4560 #, no-wrap
4561 msgid "B<NO_ADDRESS> or B<NO_DATA>"
4562 msgstr ""
4563
4564 #. type: Plain text
4565 #: build/C/man3/gethostbyname.3:303
4566 msgid "The requested name is valid but does not have an IP address."
4567 msgstr ""
4568
4569 #. type: TP
4570 #: build/C/man3/gethostbyname.3:303 build/C/man3/getipnodebyname.3:199
4571 #, no-wrap
4572 msgid "B<NO_RECOVERY>"
4573 msgstr ""
4574
4575 #. type: Plain text
4576 #: build/C/man3/gethostbyname.3:306
4577 msgid "A nonrecoverable name server error occurred."
4578 msgstr ""
4579
4580 #. type: TP
4581 #: build/C/man3/gethostbyname.3:306 build/C/man3/getipnodebyname.3:202
4582 #, no-wrap
4583 msgid "B<TRY_AGAIN>"
4584 msgstr ""
4585
4586 #. type: Plain text
4587 #: build/C/man3/gethostbyname.3:310
4588 msgid ""
4589 "A temporary error occurred on an authoritative name server.  Try again "
4590 "later."
4591 msgstr ""
4592
4593 #. type: TP
4594 #: build/C/man3/gethostbyname.3:311 build/C/man5/host.conf.5:181
4595 #, no-wrap
4596 msgid "I</etc/host.conf>"
4597 msgstr ""
4598
4599 #. type: Plain text
4600 #: build/C/man3/gethostbyname.3:314
4601 msgid "resolver configuration file"
4602 msgstr ""
4603
4604 #. type: Plain text
4605 #: build/C/man3/gethostbyname.3:314 build/C/man5/host.conf.5:187 build/C/man5/hosts.5:88
4606 #, no-wrap
4607 msgid "I</etc/hosts>"
4608 msgstr ""
4609
4610 #. type: Plain text
4611 #: build/C/man3/gethostbyname.3:317
4612 msgid "host database file"
4613 msgstr ""
4614
4615 #. type: Plain text
4616 #: build/C/man3/gethostbyname.3:317 build/C/man5/nsswitch.conf.5:306 build/C/man3/setnetgrent.3:92
4617 #, no-wrap
4618 msgid "I</etc/nsswitch.conf>"
4619 msgstr ""
4620
4621 #. type: Plain text
4622 #: build/C/man3/gethostbyname.3:320
4623 msgid "name service switch configuration"
4624 msgstr ""
4625
4626 #. type: Plain text
4627 #: build/C/man3/gethostbyname.3:344
4628 msgid ""
4629 "POSIX.1-2001 specifies B<gethostbyname>(), B<gethostbyaddr>(), "
4630 "B<sethostent>(), B<endhostent>(), B<gethostent>(), and I<h_errno>; "
4631 "B<gethostbyname>(), B<gethostbyaddr>(), and I<h_errno> are marked "
4632 "obsolescent in that standard.  POSIX.1-2008 removes the specifications of "
4633 "B<gethostbyname>(), B<gethostbyaddr>(), and I<h_errno>, recommending the use "
4634 "of B<getaddrinfo>(3)  and B<getnameinfo>(3)  instead."
4635 msgstr ""
4636
4637 #. type: Plain text
4638 #: build/C/man3/gethostbyname.3:354
4639 msgid ""
4640 "The functions B<gethostbyname>()  and B<gethostbyaddr>()  may return "
4641 "pointers to static data, which may be overwritten by later calls.  Copying "
4642 "the I<struct hostent> does not suffice, since it contains pointers; a deep "
4643 "copy is required."
4644 msgstr ""
4645
4646 #. type: Plain text
4647 #: build/C/man3/gethostbyname.3:378
4648 msgid ""
4649 "In the original BSD implementation the I<len> argument of B<gethostbyname>()  "
4650 "was an I<int>.  The SUSv2 standard is buggy and declares the I<len> argument "
4651 "of B<gethostbyaddr>()  to be of type I<size_t>.  (That is wrong, because it "
4652 "has to be I<int>, and I<size_t> is not.  POSIX.1-2001 makes it I<socklen_t>, "
4653 "which is OK.)  See also B<accept>(2)."
4654 msgstr ""
4655
4656 #. type: Plain text
4657 #: build/C/man3/gethostbyname.3:384
4658 msgid ""
4659 "The BSD prototype for B<gethostbyaddr>()  uses I<const char\\ *> for the "
4660 "first argument."
4661 msgstr ""
4662
4663 #. type: SS
4664 #: build/C/man3/gethostbyname.3:384
4665 #, no-wrap
4666 msgid "System V/POSIX extension"
4667 msgstr ""
4668
4669 #.  e.g., Linux, FreeBSD, UnixWare, HP-UX
4670 #.  e.g., FreeBSD, AIX
4671 #. type: Plain text
4672 #: build/C/man3/gethostbyname.3:401
4673 msgid ""
4674 "POSIX requires the B<gethostent>()  call, that should return the next entry "
4675 "in the host data base.  When using DNS/BIND this does not make much sense, "
4676 "but it may be reasonable if the host data base is a file that can be read "
4677 "line by line.  On many systems a routine of this name reads from the file "
4678 "I</etc/hosts>.  It may be available only when the library was built without "
4679 "DNS support.  The glibc version will ignore ipv6 entries.  This function is "
4680 "not reentrant, and glibc adds a reentrant version B<gethostent_r>()."
4681 msgstr ""
4682
4683 #. type: SS
4684 #: build/C/man3/gethostbyname.3:401
4685 #, no-wrap
4686 msgid "GNU extensions"
4687 msgstr ""
4688
4689 #. type: Plain text
4690 #: build/C/man3/gethostbyname.3:407
4691 msgid ""
4692 "Glibc2 also has a B<gethostbyname2>()  that works like B<gethostbyname>(), "
4693 "but permits to specify the address family to which the address must belong."
4694 msgstr ""
4695
4696 #. type: Plain text
4697 #: build/C/man3/gethostbyname.3:441
4698 msgid ""
4699 "Glibc2 also has reentrant versions B<gethostent_r>(), B<gethostbyaddr_r>(), "
4700 "B<gethostbyname_r>()  and B<gethostbyname2_r>().  The caller supplies a "
4701 "I<hostent> structure I<ret> which will be filled in on success, and a "
4702 "temporary work buffer I<buf> of size I<buflen>.  After the call, I<result> "
4703 "will point to the result on success.  In case of an error or if no entry is "
4704 "found I<result> will be NULL.  The functions return 0 on success and a "
4705 "nonzero error number on failure.  In addition to the errors returned by the "
4706 "nonreentrant versions of these functions, if I<buf> is too small, the "
4707 "functions will return B<ERANGE>, and the call should be retried with a "
4708 "larger buffer.  The global variable I<h_errno> is not modified, but the "
4709 "address of a variable in which to store error numbers is passed in "
4710 "I<h_errnop>."
4711 msgstr ""
4712
4713 #.  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482973
4714 #. type: Plain text
4715 #: build/C/man3/gethostbyname.3:446
4716 msgid ""
4717 "B<gethostbyname>()  does not recognize components of a dotted IPv4 address "
4718 "string that are expressed in hexadecimal."
4719 msgstr ""
4720
4721 #.  .BR getipnodebyaddr (3),
4722 #.  .BR getipnodebyname (3),
4723 #.  .BR resolv+ (8)
4724 #. type: Plain text
4725 #: build/C/man3/gethostbyname.3:460
4726 msgid ""
4727 "B<getaddrinfo>(3), B<getnameinfo>(3), B<inet>(3), B<inet_ntop>(3), "
4728 "B<inet_pton>(3), B<resolver>(3), B<hosts>(5), B<nsswitch.conf>(5), "
4729 "B<hostname>(7), B<named>(8)"
4730 msgstr ""
4731
4732 #. type: TH
4733 #: build/C/man3/getipnodebyname.3:26
4734 #, no-wrap
4735 msgid "GETIPNODEBYNAME"
4736 msgstr ""
4737
4738 #. type: TH
4739 #: build/C/man3/getipnodebyname.3:26
4740 #, no-wrap
4741 msgid "2010-09-04"
4742 msgstr ""
4743
4744 #. type: Plain text
4745 #: build/C/man3/getipnodebyname.3:30
4746 msgid ""
4747 "getipnodebyname, getipnodebyaddr, freehostent - get network hostnames and "
4748 "addresses"
4749 msgstr ""
4750
4751 #. type: Plain text
4752 #: build/C/man3/getipnodebyname.3:38
4753 #, no-wrap
4754 msgid ""
4755 "B<struct hostent *getipnodebyname(const char *>I<name>B<, int >I<af>B<,>\n"
4756 "B<                                int >I<flags>B<, int *>I<error_num>B<);>\n"
4757 msgstr ""
4758
4759 #. type: Plain text
4760 #: build/C/man3/getipnodebyname.3:41
4761 #, no-wrap
4762 msgid ""
4763 "B<struct hostent *getipnodebyaddr(const void *>I<addr>B<, size_t "
4764 ">I<len>B<,>\n"
4765 "B<                                int >I<af>B<, int *>I<error_num>B<);>\n"
4766 msgstr ""
4767
4768 #. type: Plain text
4769 #: build/C/man3/getipnodebyname.3:43
4770 #, no-wrap
4771 msgid "B<void freehostent(struct hostent *>I<ip>B<);>\n"
4772 msgstr ""
4773
4774 #. type: Plain text
4775 #: build/C/man3/getipnodebyname.3:51
4776 msgid ""
4777 "These functions are deprecated (and unavailable in glibc).  Use "
4778 "B<getaddrinfo>(3)  and B<getnameinfo>(3)  instead."
4779 msgstr ""
4780
4781 #. type: Plain text
4782 #: build/C/man3/getipnodebyname.3:59
4783 msgid ""
4784 "The B<getipnodebyname>()  and B<getipnodebyaddr>()  functions return the "
4785 "names and addresses of a network host.  These functions return a pointer to "
4786 "the following structure:"
4787 msgstr ""
4788
4789 #. type: Plain text
4790 #: build/C/man3/getipnodebyname.3:69
4791 #, no-wrap
4792 msgid ""
4793 "struct hostent {\n"
4794 "    char  *h_name;\n"
4795 "    char **h_aliases;\n"
4796 "    int    h_addrtype;\n"
4797 "    int    h_length;\n"
4798 "    char **h_addr_list;\n"
4799 "};\n"
4800 msgstr ""
4801
4802 #. type: Plain text
4803 #: build/C/man3/getipnodebyname.3:82
4804 msgid ""
4805 "These functions replace the B<gethostbyname>(3)  and B<gethostbyaddr>(3)  "
4806 "functions, which could access only the IPv4 network address family.  The "
4807 "B<getipnodebyname>()  and B<getipnodebyaddr>()  functions can access "
4808 "multiple network address families."
4809 msgstr ""
4810
4811 #. type: Plain text
4812 #: build/C/man3/getipnodebyname.3:93
4813 msgid ""
4814 "Unlike the B<gethostby> functions, these functions return pointers to "
4815 "dynamically allocated memory.  The B<freehostent>()  function is used to "
4816 "release the dynamically allocated memory after the caller no longer needs "
4817 "the I<hostent> structure."
4818 msgstr ""
4819
4820 #. type: SS
4821 #: build/C/man3/getipnodebyname.3:93
4822 #, no-wrap
4823 msgid "getipnodebyname() arguments"
4824 msgstr ""
4825
4826 #. type: Plain text
4827 #: build/C/man3/getipnodebyname.3:104
4828 msgid ""
4829 "The B<getipnodebyname>()  function looks up network addresses for the host "
4830 "specified by the I<name> argument.  The I<af> argument specifies one of the "
4831 "following values:"
4832 msgstr ""
4833
4834 #. type: TP
4835 #: build/C/man3/getipnodebyname.3:104 build/C/man3/getipnodebyname.3:166 build/C/man3/inet_ntop.3:57 build/C/man3/inet_pton.3:53
4836 #, no-wrap
4837 msgid "B<AF_INET>"
4838 msgstr ""
4839
4840 #. type: Plain text
4841 #: build/C/man3/getipnodebyname.3:110
4842 msgid ""
4843 "The I<name> argument points to a dotted-quad IPv4 address or a name of an "
4844 "IPv4 network host."
4845 msgstr ""
4846
4847 #. type: TP
4848 #: build/C/man3/getipnodebyname.3:110 build/C/man3/getipnodebyname.3:176 build/C/man3/inet_ntop.3:70 build/C/man3/inet_pton.3:67
4849 #, no-wrap
4850 msgid "B<AF_INET6>"
4851 msgstr ""
4852
4853 #. type: Plain text
4854 #: build/C/man3/getipnodebyname.3:116
4855 msgid ""
4856 "The I<name> argument points to a hexadecimal IPv6 address or a name of an "
4857 "IPv6 network host."
4858 msgstr ""
4859
4860 #. type: Plain text
4861 #: build/C/man3/getipnodebyname.3:125
4862 msgid ""
4863 "The I<flags> argument specifies additional options.  More than one option "
4864 "can be specified by bitwise OR-ing them together.  I<flags> should be set to "
4865 "0 if no options are desired."
4866 msgstr ""
4867
4868 #. type: TP
4869 #: build/C/man3/getipnodebyname.3:125
4870 #, no-wrap
4871 msgid "B<AI_V4MAPPED>"
4872 msgstr ""
4873
4874 #. type: Plain text
4875 #: build/C/man3/getipnodebyname.3:132
4876 msgid ""
4877 "This flag is used with B<AF_INET6> to request a query for IPv4 addresses "
4878 "instead of IPv6 addresses; the IPv4 addresses will be mapped to IPv6 "
4879 "addresses."
4880 msgstr ""
4881
4882 #. type: TP
4883 #: build/C/man3/getipnodebyname.3:132
4884 #, no-wrap
4885 msgid "B<AI_ALL>"
4886 msgstr ""
4887
4888 #. type: Plain text
4889 #: build/C/man3/getipnodebyname.3:138
4890 msgid ""
4891 "This flag is used with B<AI_V4MAPPED> to request a query for both IPv4 and "
4892 "IPv6 addresses.  Any IPv4 address found will be mapped to an IPv6 address."
4893 msgstr ""
4894
4895 #. type: TP
4896 #: build/C/man3/getipnodebyname.3:138
4897 #, no-wrap
4898 msgid "B<AI_ADDRCONFIG>"
4899 msgstr ""
4900
4901 #. type: Plain text
4902 #: build/C/man3/getipnodebyname.3:150
4903 msgid ""
4904 "This flag is used with B<AF_INET6> to further request that queries for IPv6 "
4905 "addresses should not be made unless the system has at least one IPv6 address "
4906 "assigned to a network interface, and that queries for IPv4 addresses should "
4907 "not be made unless the system has at least one IPv4 address assigned to a "
4908 "network interface.  This flag may be used by itself or with the "
4909 "B<AI_V4MAPPED> flag."
4910 msgstr ""
4911
4912 #. type: TP
4913 #: build/C/man3/getipnodebyname.3:150
4914 #, no-wrap
4915 msgid "B<AI_DEFAULT>"
4916 msgstr ""
4917
4918 #. type: Plain text
4919 #: build/C/man3/getipnodebyname.3:154
4920 msgid "This flag is equivalent to B<(AI_ADDRCONFIG | AI_V4MAPPED)>."
4921 msgstr ""
4922
4923 #. type: SS
4924 #: build/C/man3/getipnodebyname.3:154
4925 #, no-wrap
4926 msgid "getipnodebyaddr() arguments"
4927 msgstr ""
4928
4929 #. type: Plain text
4930 #: build/C/man3/getipnodebyname.3:166
4931 msgid ""
4932 "The B<getipnodebyaddr>()  function looks up the name of the host whose "
4933 "network address is specified by the I<addr> argument.  The I<af> argument "
4934 "specifies one of the following values:"
4935 msgstr ""
4936
4937 #. type: Plain text
4938 #: build/C/man3/getipnodebyname.3:176
4939 msgid ""
4940 "The I<addr> argument points to a I<struct in_addr> and I<len> must be set to "
4941 "I<sizeof(struct in_addr)>."
4942 msgstr ""
4943
4944 #. type: Plain text
4945 #: build/C/man3/getipnodebyname.3:186
4946 msgid ""
4947 "The I<addr> argument points to a I<struct in6_addr> and I<len> must be set "
4948 "to I<sizeof(struct in6_addr)>."
4949 msgstr ""
4950
4951 #. type: Plain text
4952 #: build/C/man3/getipnodebyname.3:190
4953 msgid ""
4954 "A NULL pointer is returned if an error occurred, and I<error_num> will "
4955 "contain an error code from the following list:"
4956 msgstr ""
4957
4958 #. type: Plain text
4959 #: build/C/man3/getipnodebyname.3:193
4960 msgid "The hostname or network address was not found."
4961 msgstr ""
4962
4963 #. type: TP
4964 #: build/C/man3/getipnodebyname.3:193
4965 #, no-wrap
4966 msgid "B<NO_ADDRESS>"
4967 msgstr ""
4968
4969 #. type: Plain text
4970 #: build/C/man3/getipnodebyname.3:199
4971 msgid ""
4972 "The domain name server recognized the network address or name, but no answer "
4973 "was returned.  This can happen if the network host has only IPv4 addresses "
4974 "and a request has been made for IPv6 information only, or vice versa."
4975 msgstr ""
4976
4977 #. type: Plain text
4978 #: build/C/man3/getipnodebyname.3:202
4979 msgid "The domain name server returned a permanent failure response."
4980 msgstr ""
4981
4982 #. type: Plain text
4983 #: build/C/man3/getipnodebyname.3:206
4984 msgid ""
4985 "The domain name server returned a temporary failure response.  You might "
4986 "have better luck next time."
4987 msgstr ""
4988
4989 #. type: Plain text
4990 #: build/C/man3/getipnodebyname.3:210
4991 msgid ""
4992 "A successful query returns a pointer to a I<hostent> structure that contains "
4993 "the following fields:"
4994 msgstr ""
4995
4996 #. type: Plain text
4997 #: build/C/man3/getipnodebyname.3:213
4998 msgid "This is the official name of this network host."
4999 msgstr ""
5000
5001 #. type: Plain text
5002 #: build/C/man3/getipnodebyname.3:217
5003 msgid ""
5004 "This is an array of pointers to unofficial aliases for the same host.  The "
5005 "array is terminated by a NULL pointer."
5006 msgstr ""
5007
5008 #. type: Plain text
5009 #: build/C/man3/getipnodebyname.3:239
5010 msgid ""
5011 "This is a copy of the I<af> argument to B<getipnodebyname>()  or "
5012 "B<getipnodebyaddr>().  I<h_addrtype> will always be B<AF_INET> if the I<af> "
5013 "argument was B<AF_INET>.  I<h_addrtype> will always be B<AF_INET6> if the "
5014 "I<af> argument was B<AF_INET6>."
5015 msgstr ""
5016
5017 #. type: Plain text
5018 #: build/C/man3/getipnodebyname.3:253
5019 msgid ""
5020 "This field will be set to I<sizeof(struct in_addr)> if I<h_addrtype> is "
5021 "B<AF_INET>, and to I<sizeof(struct in6_addr)> if I<h_addrtype> is "
5022 "B<AF_INET6>."
5023 msgstr ""
5024
5025 #. type: Plain text
5026 #: build/C/man3/getipnodebyname.3:258
5027 msgid ""
5028 "This is an array of one or more pointers to network address structures for "
5029 "the network host.  The array is terminated by a NULL pointer."
5030 msgstr ""
5031
5032 #.  Not in POSIX.1-2001.
5033 #. type: Plain text
5034 #: build/C/man3/getipnodebyname.3:261
5035 msgid "RFC\\ 2553."
5036 msgstr ""
5037
5038 #. type: Plain text
5039 #: build/C/man3/getipnodebyname.3:266
5040 msgid ""
5041 "These functions were present in glibc 2.1.91-95, but were removed again.  "
5042 "Several UNIX-like systems support them, but all call them deprecated."
5043 msgstr ""
5044
5045 #. type: Plain text
5046 #: build/C/man3/getipnodebyname.3:271
5047 msgid "B<getaddrinfo>(3), B<getnameinfo>(3), B<inet_ntop>(3), B<inet_pton>(3)"
5048 msgstr ""
5049
5050 #. type: TH
5051 #: build/C/man3/getnameinfo.3:10
5052 #, no-wrap
5053 msgid "GETNAMEINFO"
5054 msgstr ""
5055
5056 #. type: Plain text
5057 #: build/C/man3/getnameinfo.3:13
5058 msgid "getnameinfo - address-to-name translation in protocol-independent manner"
5059 msgstr ""
5060
5061 #. type: Plain text
5062 #: build/C/man3/getnameinfo.3:17
5063 #, no-wrap
5064 msgid ""
5065 "B<#include E<lt>sys/socket.hE<gt>>\n"
5066 "B<#include E<lt>netdb.hE<gt>>\n"
5067 msgstr ""
5068
5069 #. type: Plain text
5070 #: build/C/man3/getnameinfo.3:21
5071 #, no-wrap
5072 msgid ""
5073 "B<int getnameinfo(const struct sockaddr *>I<sa>B<, socklen_t >I<salen>B<,>\n"
5074 "B<                char *>I<host>B<, size_t >I<hostlen>B<,>\n"
5075 "B<                char *>I<serv>B<, size_t >I<servlen>B<, int "
5076 ">I<flags>B<);>\n"
5077 msgstr ""
5078
5079 #. type: Plain text
5080 #: build/C/man3/getnameinfo.3:31
5081 msgid ""
5082 "B<getnameinfo>(): _POSIX_C_SOURCE\\ E<gt>=\\ 1 || _XOPEN_SOURCE || "
5083 "_POSIX_SOURCE"
5084 msgstr ""
5085
5086 #. type: Plain text
5087 #: build/C/man3/getnameinfo.3:47
5088 msgid ""
5089 "The B<getnameinfo>()  function is the inverse of B<getaddrinfo>(3): it "
5090 "converts a socket address to a corresponding host and service, in a "
5091 "protocol-independent manner.  It combines the functionality of "
5092 "B<gethostbyaddr>(3)  and B<getservbyport>(3), but unlike those functions, "
5093 "B<getnameinfo>()  is reentrant and allows programs to eliminate "
5094 "IPv4-versus-IPv6 dependencies."
5095 msgstr ""
5096
5097 #. type: Plain text
5098 #: build/C/man3/getnameinfo.3:70
5099 msgid ""
5100 "The I<sa> argument is a pointer to a generic socket address structure (of "
5101 "type I<sockaddr_in> or I<sockaddr_in6>)  of size I<salen> that holds the "
5102 "input IP address and port number.  The arguments I<host> and I<serv> are "
5103 "pointers to caller-allocated buffers (of size I<hostlen> and I<servlen> "
5104 "respectively) into which B<getnameinfo>()  places null-terminated strings "
5105 "containing the host and service names respectively."
5106 msgstr ""
5107
5108 #. type: Plain text
5109 #: build/C/man3/getnameinfo.3:83
5110 msgid ""
5111 "The caller can specify that no hostname (or no service name)  is required by "
5112 "providing a NULL I<host> (or I<serv>)  argument or a zero I<hostlen> (or "
5113 "I<servlen>)  argument.  However, at least one of hostname or service name "
5114 "must be requested."
5115 msgstr ""
5116
5117 #. type: Plain text
5118 #: build/C/man3/getnameinfo.3:89
5119 msgid "The I<flags> argument modifies the behavior of B<getnameinfo>()  as follows:"
5120 msgstr ""
5121
5122 #. type: TP
5123 #: build/C/man3/getnameinfo.3:89
5124 #, no-wrap
5125 msgid "B<NI_NAMEREQD>"
5126 msgstr ""
5127
5128 #. type: Plain text
5129 #: build/C/man3/getnameinfo.3:92
5130 msgid "If set, then an error is returned if the hostname cannot be determined."
5131 msgstr ""
5132
5133 #. type: TP
5134 #: build/C/man3/getnameinfo.3:92
5135 #, no-wrap
5136 msgid "B<NI_DGRAM>"
5137 msgstr ""
5138
5139 #. type: Plain text
5140 #: build/C/man3/getnameinfo.3:98
5141 msgid ""
5142 "If set, then the service is datagram (UDP) based rather than stream (TCP) "
5143 "based.  This is required for the few ports (512-514)  that have different "
5144 "services for UDP and TCP."
5145 msgstr ""
5146
5147 #. type: TP
5148 #: build/C/man3/getnameinfo.3:98
5149 #, no-wrap
5150 msgid "B<NI_NOFQDN>"
5151 msgstr ""
5152
5153 #. type: Plain text
5154 #: build/C/man3/getnameinfo.3:102
5155 msgid ""
5156 "If set, return only the hostname part of the fully qualified domain name for "
5157 "local hosts."
5158 msgstr ""
5159
5160 #. type: TP
5161 #: build/C/man3/getnameinfo.3:102
5162 #, no-wrap
5163 msgid "B<NI_NUMERICHOST>"
5164 msgstr ""
5165
5166 #.  For example, by calling
5167 #.  .BR inet_ntop ()
5168 #.  instead of
5169 #.  .BR gethostbyaddr ().
5170 #.  POSIX.1-2003 has NI_NUMERICSCOPE, but glibc doesn't have it.
5171 #. type: Plain text
5172 #: build/C/man3/getnameinfo.3:112
5173 msgid ""
5174 "If set, then the numeric form of the hostname is returned.  (When not set, "
5175 "this will still happen in case the node's name cannot be determined.)"
5176 msgstr ""
5177
5178 #. type: TP
5179 #: build/C/man3/getnameinfo.3:112
5180 #, no-wrap
5181 msgid "B<NI_NUMERICSERV>"
5182 msgstr ""
5183
5184 #. type: Plain text
5185 #: build/C/man3/getnameinfo.3:117
5186 msgid ""
5187 "If set, then the numeric form of the service address is returned.  (When not "
5188 "set, this will still happen in case the service's name cannot be "
5189 "determined.)"
5190 msgstr ""
5191
5192 #. type: SS
5193 #: build/C/man3/getnameinfo.3:117
5194 #, no-wrap
5195 msgid "Extensions to getnameinfo() for Internationalized Domain Names"
5196 msgstr ""
5197
5198 #. type: Plain text
5199 #: build/C/man3/getnameinfo.3:126
5200 msgid ""
5201 "Starting with glibc 2.3.4, B<getnameinfo>()  has been extended to "
5202 "selectively allow hostnames to be transparently converted to and from the "
5203 "Internationalized Domain Name (IDN) format (see RFC 3490, "
5204 "I<Internationalizing Domain Names in Applications (IDNA)>).  Three new flags "
5205 "are defined:"
5206 msgstr ""
5207
5208 #. type: TP
5209 #: build/C/man3/getnameinfo.3:126
5210 #, no-wrap
5211 msgid "B<NI_IDN>"
5212 msgstr ""
5213
5214 #. type: Plain text
5215 #: build/C/man3/getnameinfo.3:132
5216 msgid ""
5217 "If this flag is used, then the name found in the lookup process is converted "
5218 "from IDN format to the locale's encoding if necessary.  ASCII-only names are "
5219 "not affected by the conversion, which makes this flag usable in existing "
5220 "programs and environments."
5221 msgstr ""
5222
5223 #. type: TP
5224 #: build/C/man3/getnameinfo.3:132
5225 #, no-wrap
5226 msgid "B<NI_IDN_ALLOW_UNASSIGNED>, B<NI_IDN_USE_STD3_ASCII_RULES>"
5227 msgstr ""
5228
5229 #.  FIXME glibc defines the following additional errors, some which
5230 #.  can probably be returned by getnameinfo(); they need to
5231 #.  be documented.
5232 #.  #ifdef __USE_GNU
5233 #.  #define EAI_INPROGRESS  -100  /* Processing request in progress.  */
5234 #.  #define EAI_CANCELED    -101  /* Request canceled.  */
5235 #.  #define EAI_NOTCANCELED -102  /* Request not canceled.  */
5236 #.  #define EAI_ALLDONE     -103  /* All requests done.  */
5237 #.  #define EAI_INTR        -104  /* Interrupted by a signal.  */
5238 #.  #define EAI_IDN_ENCODE  -105  /* IDN encoding failed.  */
5239 #.  #endif
5240 #. type: Plain text
5241 #: build/C/man3/getnameinfo.3:155
5242 msgid ""
5243 "On success 0 is returned, and node and service names, if requested, are "
5244 "filled with null-terminated strings, possibly truncated to fit the specified "
5245 "buffer lengths.  On error one of the following nonzero error codes is "
5246 "returned:"
5247 msgstr ""
5248
5249 #. type: Plain text
5250 #: build/C/man3/getnameinfo.3:159
5251 msgid "The name could not be resolved at this time.  Try again later."
5252 msgstr ""
5253
5254 #. type: Plain text
5255 #: build/C/man3/getnameinfo.3:164
5256 msgid "The I<flags> argument has an invalid value."
5257 msgstr ""
5258
5259 #. type: Plain text
5260 #: build/C/man3/getnameinfo.3:167
5261 msgid "A nonrecoverable error occurred."
5262 msgstr ""
5263
5264 #. type: Plain text
5265 #: build/C/man3/getnameinfo.3:171
5266 msgid ""
5267 "The address family was not recognized, or the address length was invalid for "
5268 "the specified family."
5269 msgstr ""
5270
5271 #. type: Plain text
5272 #: build/C/man3/getnameinfo.3:180
5273 msgid ""
5274 "The name does not resolve for the supplied arguments.  B<NI_NAMEREQD> is set "
5275 "and the host's name cannot be located, or neither hostname nor service name "
5276 "were requested."
5277 msgstr ""
5278
5279 #. type: TP
5280 #: build/C/man3/getnameinfo.3:180
5281 #, no-wrap
5282 msgid "B<EAI_OVERFLOW>"
5283 msgstr ""
5284
5285 #. type: Plain text
5286 #: build/C/man3/getnameinfo.3:187
5287 msgid "The buffer pointed to by I<host> or I<serv> was too small."
5288 msgstr ""
5289
5290 #. type: Plain text
5291 #: build/C/man3/getnameinfo.3:192
5292 msgid "A system error occurred.  The error code can be found in I<errno>."
5293 msgstr ""
5294
5295 #. type: Plain text
5296 #: build/C/man3/getnameinfo.3:199
5297 msgid "/etc/hosts"
5298 msgstr ""
5299
5300 #. type: Plain text
5301 #: build/C/man3/getnameinfo.3:201
5302 msgid "/etc/nsswitch.conf"
5303 msgstr ""
5304
5305 #. type: Plain text
5306 #: build/C/man3/getnameinfo.3:203
5307 msgid "/etc/resolv.conf"
5308 msgstr ""
5309
5310 #. type: Plain text
5311 #: build/C/man3/getnameinfo.3:206
5312 msgid "B<getnameinfo>()  is provided in glibc since version 2.1."
5313 msgstr ""
5314
5315 #. type: Plain text
5316 #: build/C/man3/getnameinfo.3:208
5317 msgid "RFC\\ 2553, POSIX.1-2001."
5318 msgstr ""
5319
5320 #. type: Plain text
5321 #: build/C/man3/getnameinfo.3:213
5322 msgid ""
5323 "In order to assist the programmer in choosing reasonable sizes for the "
5324 "supplied buffers, I<E<lt>netdb.hE<gt>> defines the constants"
5325 msgstr ""
5326
5327 #. type: Plain text
5328 #: build/C/man3/getnameinfo.3:218
5329 #, no-wrap
5330 msgid ""
5331 "#define NI_MAXHOST      1025\n"
5332 "#define NI_MAXSERV      32\n"
5333 msgstr ""
5334
5335 #. type: Plain text
5336 #: build/C/man3/getnameinfo.3:228
5337 msgid ""
5338 "Since glibc 2.8, these definitions are exposed only if one of the feature "
5339 "test macros B<_BSD_SOURCE>, B<_SVID_SOURCE>, or B<_GNU_SOURCE> is defined."
5340 msgstr ""
5341
5342 #. type: Plain text
5343 #: build/C/man3/getnameinfo.3:236
5344 msgid ""
5345 "The former is the constant B<MAXDNAME> in recent versions of BIND's "
5346 "I<E<lt>arpa/nameser.hE<gt>> header file.  The latter is a guess based on the "
5347 "services listed in the current Assigned Numbers RFC."
5348 msgstr ""
5349
5350 #. type: Plain text
5351 #: build/C/man3/getnameinfo.3:241
5352 msgid ""
5353 "The following code tries to get the numeric hostname and service name, for a "
5354 "given socket address.  Note that there is no hardcoded reference to a "
5355 "particular address family."
5356 msgstr ""
5357
5358 #. type: Plain text
5359 #: build/C/man3/getnameinfo.3:247
5360 #, no-wrap
5361 msgid ""
5362 "struct sockaddr *sa;    /* input */\n"
5363 "socklen_t len;         /* input */\n"
5364 "char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];\n"
5365 msgstr ""
5366
5367 #. type: Plain text
5368 #: build/C/man3/getnameinfo.3:251
5369 #, no-wrap
5370 msgid ""
5371 "if (getnameinfo(sa, len, hbuf, sizeof(hbuf), sbuf,\n"
5372 "            sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV) == 0)\n"
5373 "    printf(\"host=%s, serv=%s\\en\", hbuf, sbuf);\n"
5374 msgstr ""
5375
5376 #. type: Plain text
5377 #: build/C/man3/getnameinfo.3:256
5378 msgid ""
5379 "The following version checks if the socket address has a reverse address "
5380 "mapping."
5381 msgstr ""
5382
5383 #. type: Plain text
5384 #: build/C/man3/getnameinfo.3:262
5385 #, no-wrap
5386 msgid ""
5387 "struct sockaddr *sa;    /* input */\n"
5388 "socklen_t len;         /* input */\n"
5389 "char hbuf[NI_MAXHOST];\n"
5390 msgstr ""
5391
5392 #. type: Plain text
5393 #: build/C/man3/getnameinfo.3:268
5394 #, no-wrap
5395 msgid ""
5396 "if (getnameinfo(sa, len, hbuf, sizeof(hbuf),\n"
5397 "            NULL, 0, NI_NAMEREQD))\n"
5398 "    printf(\"could not resolve hostname\");\n"
5399 "else\n"
5400 "    printf(\"host=%s\\en\", hbuf);\n"
5401 msgstr ""
5402
5403 #. type: Plain text
5404 #: build/C/man3/getnameinfo.3:275
5405 msgid ""
5406 "An example program using B<getnameinfo>()  can be found in "
5407 "B<getaddrinfo>(3)."
5408 msgstr ""
5409
5410 #. type: Plain text
5411 #: build/C/man3/getnameinfo.3:290
5412 msgid ""
5413 "B<accept>(2), B<getpeername>(2), B<getsockname>(2), B<recvfrom>(2), "
5414 "B<socket>(2), B<getaddrinfo>(3), B<gethostbyaddr>(3), B<getservbyname>(3), "
5415 "B<getservbyport>(3), B<inet_ntop>(3), B<hosts>(5), B<services>(5), "
5416 "B<hostname>(7), B<named>(8)"
5417 msgstr ""
5418
5419 #. type: Plain text
5420 #: build/C/man3/getnameinfo.3:294
5421 msgid ""
5422 "R. Gilligan, S. Thomson, J. Bound and W. Stevens, I<Basic Socket Interface "
5423 "Extensions for IPv6>, RFC\\ 2553, March 1999."
5424 msgstr ""
5425
5426 #. type: Plain text
5427 #: build/C/man3/getnameinfo.3:300
5428 msgid ""
5429 "Tatsuya Jinmei and Atsushi Onoe, I<An Extension of Format for IPv6 Scoped "
5430 "Addresses>, internet draft, work in progress E<.UR "
5431 "ftp://ftp.ietf.org\\:/internet-drafts\\:/draft-ietf-ipngwg-scopedaddr-format-02.txt> "
5432 "E<.UE .>"
5433 msgstr ""
5434
5435 #. type: Plain text
5436 #: build/C/man3/getnameinfo.3:305
5437 msgid ""
5438 "Craig Metz, I<Protocol Independence Using the Sockets API>, Proceedings of "
5439 "the freenix track: 2000 USENIX annual technical conference, June 2000"
5440 msgstr ""
5441
5442 #. type: Plain text
5443 #: build/C/man3/getnameinfo.3:308
5444 msgid ""
5445 "E<.UR "
5446 "http://www.usenix.org\\:/publications\\:/library\\:/proceedings\\:/usenix2000\\:/freenix\\:/metzprotocol.html> "
5447 "E<.UE .>"
5448 msgstr ""
5449
5450 #. type: TH
5451 #: build/C/man3/getnetent.3:30
5452 #, no-wrap
5453 msgid "GETNETENT"
5454 msgstr ""
5455
5456 #. type: TH
5457 #: build/C/man3/getnetent.3:30 build/C/man3/getprotoent.3:30 build/C/man3/getservent.3:34
5458 #, no-wrap
5459 msgid "2008-08-19"
5460 msgstr ""
5461
5462 #. type: Plain text
5463 #: build/C/man3/getnetent.3:34
5464 msgid ""
5465 "getnetent, getnetbyname, getnetbyaddr, setnetent, endnetent - get network "
5466 "entry"
5467 msgstr ""
5468
5469 #. type: Plain text
5470 #: build/C/man3/getnetent.3:37 build/C/man3/getnetent_r.3:33 build/C/man3/getprotoent.3:37 build/C/man3/getprotoent_r.3:33 build/C/man3/getservent.3:41 build/C/man3/getservent_r.3:33 build/C/man3/setnetgrent.3:17
5471 #, no-wrap
5472 msgid "B<#include E<lt>netdb.hE<gt>>\n"
5473 msgstr ""
5474
5475 #. type: Plain text
5476 #: build/C/man3/getnetent.3:39
5477 #, no-wrap
5478 msgid "B<struct netent *getnetent(void);>\n"
5479 msgstr ""
5480
5481 #. type: Plain text
5482 #: build/C/man3/getnetent.3:41
5483 #, no-wrap
5484 msgid "B<struct netent *getnetbyname(const char *>I<name>B<);>\n"
5485 msgstr ""
5486
5487 #. type: Plain text
5488 #: build/C/man3/getnetent.3:43
5489 #, no-wrap
5490 msgid "B<struct netent *getnetbyaddr(uint32_t >I<net>B<, int >I<type>B<);>\n"
5491 msgstr ""
5492
5493 #. type: Plain text
5494 #: build/C/man3/getnetent.3:45
5495 #, no-wrap
5496 msgid "B<void setnetent(int >I<stayopen>B<);>\n"
5497 msgstr ""
5498
5499 #. type: Plain text
5500 #: build/C/man3/getnetent.3:47
5501 #, no-wrap
5502 msgid "B<void endnetent(void);>\n"
5503 msgstr ""
5504
5505 #. type: Plain text
5506 #: build/C/man3/getnetent.3:57
5507 msgid ""
5508 "The B<getnetent>()  function reads the next entry from the networks database "
5509 "and returns a I<netent> structure containing the broken-out fields from the "
5510 "entry.  A connection is opened to the database if necessary."
5511 msgstr ""
5512
5513 #. type: Plain text
5514 #: build/C/man3/getnetent.3:66
5515 msgid ""
5516 "The B<getnetbyname>()  function returns a I<netent> structure for the entry "
5517 "from the database that matches the network I<name>."
5518 msgstr ""
5519
5520 #. type: Plain text
5521 #: build/C/man3/getnetent.3:80
5522 msgid ""
5523 "The B<getnetbyaddr>()  function returns a I<netent> structure for the entry "
5524 "from the database that matches the network number I<net> of type I<type>.  "
5525 "The I<net> argument must be in host byte order."
5526 msgstr ""
5527
5528 #. type: Plain text
5529 #: build/C/man3/getnetent.3:92
5530 msgid ""
5531 "The B<setnetent>()  function opens a connection to the database, and sets "
5532 "the next entry to the first entry.  If I<stayopen> is nonzero, then the "
5533 "connection to the database will not be closed between calls to one of the "
5534 "B<getnet*>()  functions."
5535 msgstr ""
5536
5537 #. type: Plain text
5538 #: build/C/man3/getnetent.3:96
5539 msgid "The B<endnetent>()  function closes the connection to the database."
5540 msgstr ""
5541
5542 #. type: Plain text
5543 #: build/C/man3/getnetent.3:102
5544 msgid "The I<netent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
5545 msgstr ""
5546
5547 #. type: Plain text
5548 #: build/C/man3/getnetent.3:111
5549 #, no-wrap
5550 msgid ""
5551 "struct netent {\n"
5552 "    char      *n_name;     /* official network name */\n"
5553 "    char     **n_aliases;  /* alias list */\n"
5554 "    int        n_addrtype; /* net address type */\n"
5555 "    uint32_t   n_net;      /* network number */\n"
5556 "}\n"
5557 msgstr ""
5558
5559 #. type: Plain text
5560 #: build/C/man3/getnetent.3:117
5561 msgid "The members of the I<netent> structure are:"
5562 msgstr ""
5563
5564 #. type: TP
5565 #: build/C/man3/getnetent.3:117
5566 #, no-wrap
5567 msgid "I<n_name>"
5568 msgstr ""
5569
5570 #. type: Plain text
5571 #: build/C/man3/getnetent.3:120
5572 msgid "The official name of the network."
5573 msgstr ""
5574
5575 #. type: TP
5576 #: build/C/man3/getnetent.3:120
5577 #, no-wrap
5578 msgid "I<n_aliases>"
5579 msgstr ""
5580
5581 #. type: Plain text
5582 #: build/C/man3/getnetent.3:123
5583 msgid "A NULL-terminated list of alternative names for the network."
5584 msgstr ""
5585
5586 #. type: TP
5587 #: build/C/man3/getnetent.3:123
5588 #, no-wrap
5589 msgid "I<n_addrtype>"
5590 msgstr ""
5591
5592 #. type: Plain text
5593 #: build/C/man3/getnetent.3:127
5594 msgid "The type of the network number; always B<AF_INET>."
5595 msgstr ""
5596
5597 #. type: TP
5598 #: build/C/man3/getnetent.3:127
5599 #, no-wrap
5600 msgid "I<n_net>"
5601 msgstr ""
5602
5603 #. type: Plain text
5604 #: build/C/man3/getnetent.3:130
5605 msgid "The network number in host byte order."
5606 msgstr ""
5607
5608 #. type: Plain text
5609 #: build/C/man3/getnetent.3:141
5610 msgid ""
5611 "The B<getnetent>(), B<getnetbyname>()  and B<getnetbyaddr>()  functions "
5612 "return a pointer to a statically allocated I<netent> structure, or a NULL "
5613 "pointer if an error occurs or the end of the file is reached."
5614 msgstr ""
5615
5616 #. type: TP
5617 #: build/C/man3/getnetent.3:142 build/C/man5/networks.5:71
5618 #, no-wrap
5619 msgid "I</etc/networks>"
5620 msgstr ""
5621
5622 #. type: Plain text
5623 #: build/C/man3/getnetent.3:145
5624 msgid "networks database file"
5625 msgstr ""
5626
5627 #. type: Plain text
5628 #: build/C/man3/getnetent.3:147 build/C/man3/getprotoent.3:142 build/C/man3/getservent.3:159
5629 msgid "4.3BSD, POSIX.1-2001."
5630 msgstr ""
5631
5632 #. type: Plain text
5633 #: build/C/man3/getnetent.3:154
5634 msgid ""
5635 "In glibc versions before 2.2, the I<net> argument of B<getnetbyaddr>()  was "
5636 "of type I<long>."
5637 msgstr ""
5638
5639 #.  .BR networks (5)
5640 #. type: Plain text
5641 #: build/C/man3/getnetent.3:159
5642 msgid "B<getnetent_r>(3), B<getprotoent>(3), B<getservent>(3)"
5643 msgstr ""
5644
5645 #. type: Plain text
5646 #: build/C/man3/getnetent.3:161
5647 msgid "RFC\\ 1101"
5648 msgstr ""
5649
5650 #. type: TH
5651 #: build/C/man3/getnetent_r.3:26
5652 #, no-wrap
5653 msgid "GETNETENT_R"
5654 msgstr ""
5655
5656 #. type: Plain text
5657 #: build/C/man3/getnetent_r.3:30
5658 msgid "getnetent_r, getnetbyname_r, getnetbyaddr_r - get network entry (reentrant)"
5659 msgstr ""
5660
5661 #. type: Plain text
5662 #: build/C/man3/getnetent_r.3:37
5663 #, no-wrap
5664 msgid ""
5665 "B<int getnetent_r(struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
5666 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
5667 "B<                int *>I<h_errnop>B<);>\n"
5668 msgstr ""
5669
5670 #. type: Plain text
5671 #: build/C/man3/getnetent_r.3:42
5672 #, no-wrap
5673 msgid ""
5674 "B<int getnetbyname_r(const char *>I<name>B<,>\n"
5675 "B<                struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
5676 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
5677 "B<                int *>I<h_errnop>B<);>\n"
5678 msgstr ""
5679
5680 #. type: Plain text
5681 #: build/C/man3/getnetent_r.3:47
5682 #, no-wrap
5683 msgid ""
5684 "B<int getnetbyaddr_r(uint32_t >I<net>B<, int >I<type>B<,>\n"
5685 "B<                struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
5686 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
5687 "B<                int *>I<h_errnop>B<);>\n"
5688 msgstr ""
5689
5690 #. type: Plain text
5691 #: build/C/man3/getnetent_r.3:58
5692 msgid "B<getnetent_r>(), B<getnetbyname_r>(), B<getnetbyaddr_r>():"
5693 msgstr ""
5694
5695 #. type: Plain text
5696 #: build/C/man3/getnetent_r.3:79
5697 msgid ""
5698 "The B<getnetent_r>(), B<getnetbyname_r>(), and B<getnetbyaddr_r>()  "
5699 "functions are the reentrant equivalents of, respectively, B<getnetent>(3), "
5700 "B<getnetbyname>(3), and B<getnetbynumber>(3).  They differ in the way that "
5701 "the I<netent> structure is returned, and in the function calling signature "
5702 "and return value.  This manual page describes just the differences from the "
5703 "nonreentrant functions."
5704 msgstr ""
5705
5706 #. type: Plain text
5707 #: build/C/man3/getnetent_r.3:85
5708 msgid ""
5709 "Instead of returning a pointer to a statically allocated I<netent> structure "
5710 "as the function result, these functions copy the structure into the location "
5711 "pointed to by I<result_buf>."
5712 msgstr ""
5713
5714 #.  I can find no information on the required/recommended buffer size;
5715 #.  the nonreentrant functions use a 1024 byte buffer -- mtk.
5716 #. type: Plain text
5717 #: build/C/man3/getnetent_r.3:102
5718 msgid ""
5719 "The I<buf> array is used to store the string fields pointed to by the "
5720 "returned I<netent> structure.  (The nonreentrant functions allocate these "
5721 "strings in static storage.)  The size of this array is specified in "
5722 "I<buflen>.  If I<buf> is too small, the call fails with the error B<ERANGE>, "
5723 "and the caller must try again with a larger buffer.  (A buffer of length "
5724 "1024 bytes should be sufficient for most applications.)"
5725 msgstr ""
5726
5727 #. type: Plain text
5728 #: build/C/man3/getnetent_r.3:110
5729 msgid ""
5730 "If the function call successfully obtains a network record, then I<*result> "
5731 "is set pointing to I<result_buf>; otherwise, I<*result> is set to NULL."
5732 msgstr ""
5733
5734 #.  getnetent.3 doesn't document any use of h_errno, but nevertheless
5735 #.  the nonreentrant functions no seem to set h_errno.
5736 #. type: Plain text
5737 #: build/C/man3/getnetent_r.3:118
5738 msgid ""
5739 "The buffer pointed to by I<h_errnop> is used to return the value that would "
5740 "be stored in the global variable I<h_errno> by the nonreentrant versions of "
5741 "these functions."
5742 msgstr ""
5743
5744 #. type: Plain text
5745 #: build/C/man3/getnetent_r.3:121 build/C/man3/getprotoent_r.3:111
5746 msgid ""
5747 "On success, these functions return 0.  On error, they return one of the "
5748 "positive error numbers listed in ERRORS."
5749 msgstr ""
5750
5751 #. type: Plain text
5752 #: build/C/man3/getnetent_r.3:129
5753 msgid ""
5754 "On error, record not found (B<getnetbyname_r>(), B<getnetbyaddr_r>()), or "
5755 "end of input (B<getnetent_r>())  I<result> is set to NULL."
5756 msgstr ""
5757
5758 #. type: Plain text
5759 #: build/C/man3/getnetent_r.3:134
5760 msgid "(B<getnetent_r>())  No more records in database."
5761 msgstr ""
5762
5763 #. type: TP
5764 #: build/C/man3/getnetent_r.3:134 build/C/man3/getprotoent_r.3:124 build/C/man3/getservent_r.3:123
5765 #, no-wrap
5766 msgid "B<ERANGE>"
5767 msgstr ""
5768
5769 #. type: Plain text
5770 #: build/C/man3/getnetent_r.3:141 build/C/man3/getprotoent_r.3:131 build/C/man3/getservent_r.3:130
5771 msgid ""
5772 "I<buf> is too small.  Try again with a larger buffer (and increased "
5773 "I<buflen>)."
5774 msgstr ""
5775
5776 #. type: Plain text
5777 #: build/C/man3/getnetent_r.3:145 build/C/man3/getprotoent_r.3:135 build/C/man3/getservent_r.3:134
5778 msgid ""
5779 "These functions are GNU extensions.  Functions with similar names exist on "
5780 "some other systems, though typically with different calling signatures."
5781 msgstr ""
5782
5783 #. type: Plain text
5784 #: build/C/man3/getnetent_r.3:148
5785 msgid "B<getnetent>(3), B<networks>(5)"
5786 msgstr ""
5787
5788 #. type: TH
5789 #: build/C/man2/getpeername.2:42
5790 #, no-wrap
5791 msgid "GETPEERNAME"
5792 msgstr ""
5793
5794 #. type: TH
5795 #: build/C/man2/getpeername.2:42 build/C/man5/nscd.conf.5:20 build/C/man5/nsswitch.conf.5:25
5796 #, no-wrap
5797 msgid "2013-02-12"
5798 msgstr ""
5799
5800 #. type: Plain text
5801 #: build/C/man2/getpeername.2:45
5802 msgid "getpeername - get name of connected peer socket"
5803 msgstr ""
5804
5805 #. type: Plain text
5806 #: build/C/man2/getpeername.2:50
5807 msgid ""
5808 "B<int getpeername(int >I<sockfd>B<, struct sockaddr *>I<addr>B<, socklen_t "
5809 "*>I<addrlen>B<);>"
5810 msgstr ""
5811
5812 #. type: Plain text
5813 #: build/C/man2/getpeername.2:63
5814 msgid ""
5815 "B<getpeername>()  returns the address of the peer connected to the socket "
5816 "I<sockfd>, in the buffer pointed to by I<addr>.  The I<addrlen> argument "
5817 "should be initialized to indicate the amount of space pointed to by "
5818 "I<addr>.  On return it contains the actual size of the name returned (in "
5819 "bytes).  The name is truncated if the buffer provided is too small."
5820 msgstr ""
5821
5822 #. type: Plain text
5823 #: build/C/man2/getpeername.2:68
5824 msgid ""
5825 "The returned address is truncated if the buffer provided is too small; in "
5826 "this case, I<addrlen> will return a value greater than was supplied to the "
5827 "call."
5828 msgstr ""
5829
5830 #. type: Plain text
5831 #: build/C/man2/getpeername.2:73 build/C/man2/shutdown.2:74
5832 msgid ""
5833 "On success, zero is returned.  On error, -1 is returned, and I<errno> is set "
5834 "appropriately."
5835 msgstr ""
5836
5837 #. type: TP
5838 #: build/C/man2/getpeername.2:74 build/C/man2/shutdown.2:75
5839 #, no-wrap
5840 msgid "B<EBADF>"
5841 msgstr ""
5842
5843 #. type: Plain text
5844 #: build/C/man2/getpeername.2:79
5845 msgid "The argument I<sockfd> is not a valid descriptor."
5846 msgstr ""
5847
5848 #. type: TP
5849 #: build/C/man2/getpeername.2:79 build/C/man7/packet.7:250 build/C/man7/raw.7:149 build/C/man7/unix.7:336
5850 #, no-wrap
5851 msgid "B<EFAULT>"
5852 msgstr ""
5853
5854 #. type: Plain text
5855 #: build/C/man2/getpeername.2:85
5856 msgid ""
5857 "The I<addr> argument points to memory not in a valid part of the process "
5858 "address space."
5859 msgstr ""
5860
5861 #. type: Plain text
5862 #: build/C/man2/getpeername.2:89
5863 msgid "I<addrlen> is invalid (e.g., is negative)."
5864 msgstr ""
5865
5866 #. type: TP
5867 #: build/C/man2/getpeername.2:89 build/C/man7/packet.7:262
5868 #, no-wrap
5869 msgid "B<ENOBUFS>"
5870 msgstr ""
5871
5872 #. type: Plain text
5873 #: build/C/man2/getpeername.2:93
5874 msgid ""
5875 "Insufficient resources were available in the system to perform the "
5876 "operation."
5877 msgstr ""
5878
5879 #. type: Plain text
5880 #: build/C/man2/getpeername.2:96
5881 msgid "The socket is not connected."
5882 msgstr ""
5883
5884 #. type: TP
5885 #: build/C/man2/getpeername.2:96 build/C/man2/shutdown.2:87
5886 #, no-wrap
5887 msgid "B<ENOTSOCK>"
5888 msgstr ""
5889
5890 #. type: Plain text
5891 #: build/C/man2/getpeername.2:101
5892 msgid "The argument I<sockfd> is a file, not a socket."
5893 msgstr ""
5894
5895 #. type: Plain text
5896 #: build/C/man2/getpeername.2:105
5897 msgid ""
5898 "SVr4, 4.4BSD (the B<getpeername>()  function call first appeared in 4.2BSD), "
5899 "POSIX.1-2001."
5900 msgstr ""
5901
5902 #. type: Plain text
5903 #: build/C/man2/getpeername.2:116
5904 msgid ""
5905 "The third argument of B<getpeername>()  is in reality an I<int\\ *> (and "
5906 "this is what 4.x BSD and libc4 and libc5 have).  Some POSIX confusion "
5907 "resulted in the present I<socklen_t>, also used by glibc.  See also "
5908 "B<accept>(2)."
5909 msgstr ""
5910
5911 #. type: Plain text
5912 #: build/C/man2/getpeername.2:143
5913 msgid ""
5914 "For stream sockets, once a B<connect>(2)  has been performed, either socket "
5915 "can call B<getpeername>()  to obtain the address of the peer socket.  On the "
5916 "other hand, datagram sockets are connectionless.  Calling B<connect>(2)  on "
5917 "a datagram socket merely sets the peer address for outgoing datagrams sent "
5918 "with B<write>(2)  or B<recv>(2).  The caller of B<connect>(2)  can use "
5919 "B<getpeername>()  to obtain the peer address that it earlier set for the "
5920 "socket.  However, the peer socket is unaware of this information, and "
5921 "calling B<getpeername>()  on the peer socket will return no useful "
5922 "information (unless a B<connect>(2)  call was also executed on the peer).  "
5923 "Note also that the receiver of a datagram can obtain the address of the "
5924 "sender when using B<recvfrom>(2)."
5925 msgstr ""
5926
5927 #. type: Plain text
5928 #: build/C/man2/getpeername.2:150
5929 msgid ""
5930 "B<accept>(2), B<bind>(2), B<getsockname>(2), B<ip>(7), B<socket>(7), "
5931 "B<unix>(7)"
5932 msgstr ""
5933
5934 #. type: TH
5935 #: build/C/man3/getprotoent.3:30
5936 #, no-wrap
5937 msgid "GETPROTOENT"
5938 msgstr ""
5939
5940 #. type: Plain text
5941 #: build/C/man3/getprotoent.3:34
5942 msgid ""
5943 "getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - "
5944 "get protocol entry"
5945 msgstr ""
5946
5947 #. type: Plain text
5948 #: build/C/man3/getprotoent.3:39
5949 #, no-wrap
5950 msgid "B<struct protoent *getprotoent(void);>\n"
5951 msgstr ""
5952
5953 #. type: Plain text
5954 #: build/C/man3/getprotoent.3:41
5955 #, no-wrap
5956 msgid "B<struct protoent *getprotobyname(const char *>I<name>B<);>\n"
5957 msgstr ""
5958
5959 #. type: Plain text
5960 #: build/C/man3/getprotoent.3:43
5961 #, no-wrap
5962 msgid "B<struct protoent *getprotobynumber(int >I<proto>B<);>\n"
5963 msgstr ""
5964
5965 #. type: Plain text
5966 #: build/C/man3/getprotoent.3:45
5967 #, no-wrap
5968 msgid "B<void setprotoent(int >I<stayopen>B<);>\n"
5969 msgstr ""
5970
5971 #. type: Plain text
5972 #: build/C/man3/getprotoent.3:47
5973 #, no-wrap
5974 msgid "B<void endprotoent(void);>\n"
5975 msgstr ""
5976
5977 #. type: Plain text
5978 #: build/C/man3/getprotoent.3:58
5979 msgid ""
5980 "The B<getprotoent>()  function reads the next entry from the protocols "
5981 "database (see B<protocols>(5))  and returns a I<protoent> structure "
5982 "containing the broken-out fields from the entry.  A connection is opened to "
5983 "the database if necessary."
5984 msgstr ""
5985
5986 #. type: Plain text
5987 #: build/C/man3/getprotoent.3:68
5988 msgid ""
5989 "The B<getprotobyname>()  function returns a I<protoent> structure for the "
5990 "entry from the database that matches the protocol name I<name>.  A "
5991 "connection is opened to the database if necessary."
5992 msgstr ""
5993
5994 #. type: Plain text
5995 #: build/C/man3/getprotoent.3:78
5996 msgid ""
5997 "The B<getprotobynumber>()  function returns a I<protoent> structure for the "
5998 "entry from the database that matches the protocol number I<number>.  A "
5999 "connection is opened to the database if necessary."
6000 msgstr ""
6001
6002 #. type: Plain text
6003 #: build/C/man3/getprotoent.3:90
6004 msgid ""
6005 "The B<setprotoent>()  function opens a connection to the database, and sets "
6006 "the next entry to the first entry.  If I<stayopen> is nonzero, then the "
6007 "connection to the database will not be closed between calls to one of the "
6008 "B<getproto*>()  functions."
6009 msgstr ""
6010
6011 #. type: Plain text
6012 #: build/C/man3/getprotoent.3:94
6013 msgid "The B<endprotoent>()  function closes the connection to the database."
6014 msgstr ""
6015
6016 #. type: Plain text
6017 #: build/C/man3/getprotoent.3:100
6018 msgid "The I<protoent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
6019 msgstr ""
6020
6021 #. type: Plain text
6022 #: build/C/man3/getprotoent.3:108
6023 #, no-wrap
6024 msgid ""
6025 "struct protoent {\n"
6026 "    char  *p_name;       /* official protocol name */\n"
6027 "    char **p_aliases;    /* alias list */\n"
6028 "    int    p_proto;      /* protocol number */\n"
6029 "}\n"
6030 msgstr ""
6031
6032 #. type: Plain text
6033 #: build/C/man3/getprotoent.3:114
6034 msgid "The members of the I<protoent> structure are:"
6035 msgstr ""
6036
6037 #. type: TP
6038 #: build/C/man3/getprotoent.3:114
6039 #, no-wrap
6040 msgid "I<p_name>"
6041 msgstr ""
6042
6043 #. type: Plain text
6044 #: build/C/man3/getprotoent.3:117
6045 msgid "The official name of the protocol."
6046 msgstr ""
6047
6048 #. type: TP
6049 #: build/C/man3/getprotoent.3:117
6050 #, no-wrap
6051 msgid "I<p_aliases>"
6052 msgstr ""
6053
6054 #. type: Plain text
6055 #: build/C/man3/getprotoent.3:120
6056 msgid "A NULL-terminated list of alternative names for the protocol."
6057 msgstr ""
6058
6059 #. type: TP
6060 #: build/C/man3/getprotoent.3:120
6061 #, no-wrap
6062 msgid "I<p_proto>"
6063 msgstr ""
6064
6065 #. type: Plain text
6066 #: build/C/man3/getprotoent.3:123
6067 msgid "The protocol number."
6068 msgstr ""
6069
6070 #. type: Plain text
6071 #: build/C/man3/getprotoent.3:134
6072 msgid ""
6073 "The B<getprotoent>(), B<getprotobyname>()  and B<getprotobynumber>()  "
6074 "functions return a pointer to a statically allocated I<protoent> structure, "
6075 "or a NULL pointer if an error occurs or the end of the file is reached."
6076 msgstr ""
6077
6078 #. type: TP
6079 #: build/C/man3/getprotoent.3:136 build/C/man5/protocols.5:78
6080 #, no-wrap
6081 msgid "I</etc/protocols>"
6082 msgstr ""
6083
6084 #. type: Plain text
6085 #: build/C/man3/getprotoent.3:139
6086 msgid "protocol database file"
6087 msgstr ""
6088
6089 #. type: Plain text
6090 #: build/C/man3/getprotoent.3:147
6091 msgid "B<getnetent>(3), B<getprotoent_r>(3), B<getservent>(3), B<protocols>(5)"
6092 msgstr ""
6093
6094 #. type: TH
6095 #: build/C/man3/getprotoent_r.3:26
6096 #, no-wrap
6097 msgid "GETPROTOENT_R"
6098 msgstr ""
6099
6100 #. type: Plain text
6101 #: build/C/man3/getprotoent_r.3:30
6102 msgid ""
6103 "getprotoent_r, getprotobyname_r, getprotobynumber_r - get protocol entry "
6104 "(reentrant)"
6105 msgstr ""
6106
6107 #. type: Plain text
6108 #: build/C/man3/getprotoent_r.3:36
6109 #, no-wrap
6110 msgid ""
6111 "B<int getprotoent_r(struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
6112 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
6113 msgstr ""
6114
6115 #. type: Plain text
6116 #: build/C/man3/getprotoent_r.3:40
6117 #, no-wrap
6118 msgid ""
6119 "B<int getprotobyname_r(const char *>I<name>B<,>\n"
6120 "B<                struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
6121 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
6122 msgstr ""
6123
6124 #. type: Plain text
6125 #: build/C/man3/getprotoent_r.3:44
6126 #, no-wrap
6127 msgid ""
6128 "B<int getprotobynumber_r(int >I<proto>B<,>\n"
6129 "B<                struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
6130 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
6131 msgstr ""
6132
6133 #. type: Plain text
6134 #: build/C/man3/getprotoent_r.3:55
6135 msgid "B<getprotoent_r>(), B<getprotobyname_r>(), B<getprotobynumber_r>():"
6136 msgstr ""
6137
6138 #. type: Plain text
6139 #: build/C/man3/getprotoent_r.3:76
6140 msgid ""
6141 "The B<getprotoent_r>(), B<getprotobyname_r>(), and B<getprotobynumber_r>()  "
6142 "functions are the reentrant equivalents of, respectively, B<getprotoent>(3), "
6143 "B<getprotobyname>(3), and B<getprotobynumber>(3).  They differ in the way "
6144 "that the I<protoent> structure is returned, and in the function calling "
6145 "signature and return value.  This manual page describes just the differences "
6146 "from the nonreentrant functions."
6147 msgstr ""
6148
6149 #. type: Plain text
6150 #: build/C/man3/getprotoent_r.3:82
6151 msgid ""
6152 "Instead of returning a pointer to a statically allocated I<protoent> "
6153 "structure as the function result, these functions copy the structure into "
6154 "the location pointed to by I<result_buf>."
6155 msgstr ""
6156
6157 #.  I can find no information on the required/recommended buffer size;
6158 #.  the nonreentrant functions use a 1024 byte buffer.
6159 #.  The 1024 byte value is also what the Solaris man page suggests. -- mtk
6160 #. type: Plain text
6161 #: build/C/man3/getprotoent_r.3:100
6162 msgid ""
6163 "The I<buf> array is used to store the string fields pointed to by the "
6164 "returned I<protoent> structure.  (The nonreentrant functions allocate these "
6165 "strings in static storage.)  The size of this array is specified in "
6166 "I<buflen>.  If I<buf> is too small, the call fails with the error B<ERANGE>, "
6167 "and the caller must try again with a larger buffer.  (A buffer of length "
6168 "1024 bytes should be sufficient for most applications.)"
6169 msgstr ""
6170
6171 #. type: Plain text
6172 #: build/C/man3/getprotoent_r.3:108
6173 msgid ""
6174 "If the function call successfully obtains a protocol record, then I<*result> "
6175 "is set pointing to I<result_buf>; otherwise, I<*result> is set to NULL."
6176 msgstr ""
6177
6178 #. type: Plain text
6179 #: build/C/man3/getprotoent_r.3:119
6180 msgid ""
6181 "On error, record not found (B<getprotobyname_r>(), B<getprotobynumber_r>()), "
6182 "or end of input (B<getprotoent_r>())  I<result> is set to NULL."
6183 msgstr ""
6184
6185 #. type: Plain text
6186 #: build/C/man3/getprotoent_r.3:124
6187 msgid "(B<getprotoent_r>())  No more records in database."
6188 msgstr ""
6189
6190 #. type: Plain text
6191 #: build/C/man3/getprotoent_r.3:149
6192 msgid ""
6193 "The program below uses B<getprotobyname_r>()  to retrieve the protocol "
6194 "record for the protocol named in its first command-line argument.  If a "
6195 "second (integer) command-line argument is supplied, it is used as the "
6196 "initial value for I<buflen>; if B<getprotobyname_r>()  fails with the error "
6197 "B<ERANGE>, the program retries with larger buffer sizes.  The following "
6198 "shell session shows a couple of sample runs:"
6199 msgstr ""
6200
6201 #. type: Plain text
6202 #: build/C/man3/getprotoent_r.3:160
6203 #, no-wrap
6204 msgid ""
6205 "$B< ./a.out tcp 1>\n"
6206 "ERANGE! Retrying with larger buffer\n"
6207 "getprotobyname_r() returned: 0 (success)  (buflen=78)\n"
6208 "p_name=tcp; p_proto=6; aliases=TCP\n"
6209 "$B< ./a.out xxx 1>\n"
6210 "ERANGE! Retrying with larger buffer\n"
6211 "getprotobyname_r() returned: 0 (success)  (buflen=100)\n"
6212 "Call failed/record not found\n"
6213 msgstr ""
6214
6215 #. type: Plain text
6216 #: build/C/man3/getprotoent_r.3:172 build/C/man3/getservent_r.3:170
6217 #, no-wrap
6218 msgid ""
6219 "#define _GNU_SOURCE\n"
6220 "#include E<lt>ctype.hE<gt>\n"
6221 "#include E<lt>netdb.hE<gt>\n"
6222 "#include E<lt>stdlib.hE<gt>\n"
6223 "#include E<lt>stdio.hE<gt>\n"
6224 "#include E<lt>errno.hE<gt>\n"
6225 "#include E<lt>string.hE<gt>\n"
6226 msgstr ""
6227
6228 #. type: Plain text
6229 #: build/C/man3/getprotoent_r.3:174 build/C/man3/getservent_r.3:172
6230 #, no-wrap
6231 msgid "#define MAX_BUF 10000\n"
6232 msgstr ""
6233
6234 #. type: Plain text
6235 #: build/C/man3/getprotoent_r.3:183
6236 #, no-wrap
6237 msgid ""
6238 "int\n"
6239 "main(int argc, char *argv[])\n"
6240 "{\n"
6241 "    int buflen, erange_cnt, s;\n"
6242 "    struct protoent result_buf;\n"
6243 "    struct protoent *result;\n"
6244 "    char buf[MAX_BUF];\n"
6245 "    char **p;\n"
6246 msgstr ""
6247
6248 #. type: Plain text
6249 #: build/C/man3/getprotoent_r.3:188
6250 #, no-wrap
6251 msgid ""
6252 "    if (argc E<lt> 2) {\n"
6253 "        printf(\"Usage: %s proto-name [buflen]\\en\", argv[0]);\n"
6254 "        exit(EXIT_FAILURE);\n"
6255 "    }\n"
6256 msgstr ""
6257
6258 #. type: Plain text
6259 #: build/C/man3/getprotoent_r.3:192
6260 #, no-wrap
6261 msgid ""
6262 "    buflen = 1024;\n"
6263 "    if (argc E<gt> 2)\n"
6264 "        buflen = atoi(argv[2]);\n"
6265 msgstr ""
6266
6267 #. type: Plain text
6268 #: build/C/man3/getprotoent_r.3:197 build/C/man3/getservent_r.3:200
6269 #, no-wrap
6270 msgid ""
6271 "    if (buflen E<gt> MAX_BUF) {\n"
6272 "        printf(\"Exceeded buffer limit (%d)\\en\", MAX_BUF);\n"
6273 "        exit(EXIT_FAILURE);\n"
6274 "    }\n"
6275 msgstr ""
6276
6277 #. type: Plain text
6278 #: build/C/man3/getprotoent_r.3:206
6279 #, no-wrap
6280 msgid ""
6281 "    erange_cnt = 0;\n"
6282 "    do {\n"
6283 "        s = getprotobyname_r(argv[1], &result_buf,\n"
6284 "                     buf, buflen, &result);\n"
6285 "        if (s == ERANGE) {\n"
6286 "            if (erange_cnt == 0)\n"
6287 "                printf(\"ERANGE! Retrying with larger buffer\\en\");\n"
6288 "            erange_cnt++;\n"
6289 msgstr ""
6290
6291 #. type: Plain text
6292 #: build/C/man3/getprotoent_r.3:209 build/C/man3/getservent_r.3:212
6293 #, no-wrap
6294 msgid ""
6295 "            /* Increment a byte at a time so we can see exactly\n"
6296 "               what size buffer was required */\n"
6297 msgstr ""
6298
6299 #. type: Plain text
6300 #: build/C/man3/getprotoent_r.3:211 build/C/man3/getservent_r.3:214
6301 #, no-wrap
6302 msgid "            buflen++;\n"
6303 msgstr ""
6304
6305 #. type: Plain text
6306 #: build/C/man3/getprotoent_r.3:218 build/C/man3/getservent_r.3:221
6307 #, no-wrap
6308 msgid ""
6309 "            if (buflen E<gt> MAX_BUF) {\n"
6310 "                printf(\"Exceeded buffer limit (%d)\\en\", MAX_BUF);\n"
6311 "                exit(EXIT_FAILURE);\n"
6312 "            }\n"
6313 "        }\n"
6314 "    } while (s == ERANGE);\n"
6315 msgstr ""
6316
6317 #. type: Plain text
6318 #: build/C/man3/getprotoent_r.3:222
6319 #, no-wrap
6320 msgid ""
6321 "    printf(\"getprotobyname_r() returned: %s  (buflen=%d)\\en\",\n"
6322 "            (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n"
6323 "            strerror(s), buflen);\n"
6324 msgstr ""
6325
6326 #. type: Plain text
6327 #: build/C/man3/getprotoent_r.3:227 build/C/man3/getservent_r.3:230
6328 #, no-wrap
6329 msgid ""
6330 "    if (s != 0 || result == NULL) {\n"
6331 "        printf(\"Call failed/record not found\\en\");\n"
6332 "        exit(EXIT_FAILURE);\n"
6333 "    }\n"
6334 msgstr ""
6335
6336 #. type: Plain text
6337 #: build/C/man3/getprotoent_r.3:233
6338 #, no-wrap
6339 msgid ""
6340 "    printf(\"p_name=%s; p_proto=%d; aliases=\",\n"
6341 "                result_buf.p_name, result_buf.p_proto);\n"
6342 "    for (p = result_buf.p_aliases; *p != NULL; p++)\n"
6343 "        printf(\"%s \", *p);\n"
6344 "    printf(\"\\en\");\n"
6345 msgstr ""
6346
6347 #. type: Plain text
6348 #: build/C/man3/getprotoent_r.3:240
6349 msgid "B<getprotoent>(3), B<protocols>(5)"
6350 msgstr ""
6351
6352 #. type: TH
6353 #: build/C/man3/getservent.3:34
6354 #, no-wrap
6355 msgid "GETSERVENT"
6356 msgstr ""
6357
6358 #. type: Plain text
6359 #: build/C/man3/getservent.3:38
6360 msgid ""
6361 "getservent, getservbyname, getservbyport, setservent, endservent - get "
6362 "service entry"
6363 msgstr ""
6364
6365 #. type: Plain text
6366 #: build/C/man3/getservent.3:43
6367 #, no-wrap
6368 msgid "B<struct servent *getservent(void);>\n"
6369 msgstr ""
6370
6371 #. type: Plain text
6372 #: build/C/man3/getservent.3:45
6373 #, no-wrap
6374 msgid ""
6375 "B<struct servent *getservbyname(const char *>I<name>B<, const char "
6376 "*>I<proto>B<);>\n"
6377 msgstr ""
6378
6379 #. type: Plain text
6380 #: build/C/man3/getservent.3:47
6381 #, no-wrap
6382 msgid "B<struct servent *getservbyport(int >I<port>B<, const char *>I<proto>B<);>\n"
6383 msgstr ""
6384
6385 #. type: Plain text
6386 #: build/C/man3/getservent.3:49
6387 #, no-wrap
6388 msgid "B<void setservent(int >I<stayopen>B<);>\n"
6389 msgstr ""
6390
6391 #. type: Plain text
6392 #: build/C/man3/getservent.3:51
6393 #, no-wrap
6394 msgid "B<void endservent(void);>\n"
6395 msgstr ""
6396
6397 #. type: Plain text
6398 #: build/C/man3/getservent.3:62
6399 msgid ""
6400 "The B<getservent>()  function reads the next entry from the services "
6401 "database (see B<services>(5))  and returns a I<servent> structure containing "
6402 "the broken-out fields from the entry.  A connection is opened to the "
6403 "database if necessary."
6404 msgstr ""
6405
6406 #. type: Plain text
6407 #: build/C/man3/getservent.3:77
6408 msgid ""
6409 "The B<getservbyname>()  function returns a I<servent> structure for the "
6410 "entry from the database that matches the service I<name> using protocol "
6411 "I<proto>.  If I<proto> is NULL, any protocol will be matched.  A connection "
6412 "is opened to the database if necessary."
6413 msgstr ""
6414
6415 #. type: Plain text
6416 #: build/C/man3/getservent.3:93
6417 msgid ""
6418 "The B<getservbyport>()  function returns a I<servent> structure for the "
6419 "entry from the database that matches the port I<port> (given in network byte "
6420 "order)  using protocol I<proto>.  If I<proto> is NULL, any protocol will be "
6421 "matched.  A connection is opened to the database if necessary."
6422 msgstr ""
6423
6424 #. type: Plain text
6425 #: build/C/man3/getservent.3:105
6426 msgid ""
6427 "The B<setservent>()  function opens a connection to the database, and sets "
6428 "the next entry to the first entry.  If I<stayopen> is nonzero, then the "
6429 "connection to the database will not be closed between calls to one of the "
6430 "B<getserv*>()  functions."
6431 msgstr ""
6432
6433 #. type: Plain text
6434 #: build/C/man3/getservent.3:109
6435 msgid "The B<endservent>()  function closes the connection to the database."
6436 msgstr ""
6437
6438 #. type: Plain text
6439 #: build/C/man3/getservent.3:115
6440 msgid "The I<servent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
6441 msgstr ""
6442
6443 #. type: Plain text
6444 #: build/C/man3/getservent.3:124
6445 #, no-wrap
6446 msgid ""
6447 "struct servent {\n"
6448 "    char  *s_name;       /* official service name */\n"
6449 "    char **s_aliases;    /* alias list */\n"
6450 "    int    s_port;       /* port number */\n"
6451 "    char  *s_proto;      /* protocol to use */\n"
6452 "}\n"
6453 msgstr ""
6454
6455 #. type: Plain text
6456 #: build/C/man3/getservent.3:130
6457 msgid "The members of the I<servent> structure are:"
6458 msgstr ""
6459
6460 #. type: TP
6461 #: build/C/man3/getservent.3:130
6462 #, no-wrap
6463 msgid "I<s_name>"
6464 msgstr ""
6465
6466 #. type: Plain text
6467 #: build/C/man3/getservent.3:133
6468 msgid "The official name of the service."
6469 msgstr ""
6470
6471 #. type: TP
6472 #: build/C/man3/getservent.3:133
6473 #, no-wrap
6474 msgid "I<s_aliases>"
6475 msgstr ""
6476
6477 #. type: Plain text
6478 #: build/C/man3/getservent.3:136
6479 msgid "A NULL-terminated list of alternative names for the service."
6480 msgstr ""
6481
6482 #. type: TP
6483 #: build/C/man3/getservent.3:136
6484 #, no-wrap
6485 msgid "I<s_port>"
6486 msgstr ""
6487
6488 #. type: Plain text
6489 #: build/C/man3/getservent.3:139
6490 msgid "The port number for the service given in network byte order."
6491 msgstr ""
6492
6493 #. type: TP
6494 #: build/C/man3/getservent.3:139
6495 #, no-wrap
6496 msgid "I<s_proto>"
6497 msgstr ""
6498
6499 #. type: Plain text
6500 #: build/C/man3/getservent.3:142
6501 msgid "The name of the protocol to use with this service."
6502 msgstr ""
6503
6504 #. type: Plain text
6505 #: build/C/man3/getservent.3:153
6506 msgid ""
6507 "The B<getservent>(), B<getservbyname>()  and B<getservbyport>()  functions "
6508 "return a pointer to a statically allocated I<servent> structure, or a NULL "
6509 "pointer if an error occurs or the end of the file is reached."
6510 msgstr ""
6511
6512 #. type: TP
6513 #: build/C/man3/getservent.3:154 build/C/man5/services.5:186
6514 #, no-wrap
6515 msgid "I</etc/services>"
6516 msgstr ""
6517
6518 #. type: Plain text
6519 #: build/C/man3/getservent.3:157
6520 msgid "services database file"
6521 msgstr ""
6522
6523 #. type: Plain text
6524 #: build/C/man3/getservent.3:164
6525 msgid "B<getnetent>(3), B<getprotoent>(3), B<getservent_r>(3), B<services>(5)"
6526 msgstr ""
6527
6528 #. type: TH
6529 #: build/C/man3/getservent_r.3:26
6530 #, no-wrap
6531 msgid "GETSERVENT_R"
6532 msgstr ""
6533
6534 #. type: Plain text
6535 #: build/C/man3/getservent_r.3:30
6536 msgid ""
6537 "getservent_r, getservbyname_r, getservbyport_r - get service entry "
6538 "(reentrant)"
6539 msgstr ""
6540
6541 #. type: Plain text
6542 #: build/C/man3/getservent_r.3:36
6543 #, no-wrap
6544 msgid ""
6545 "B<int getservent_r(struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
6546 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
6547 msgstr ""
6548
6549 #. type: Plain text
6550 #: build/C/man3/getservent_r.3:40
6551 #, no-wrap
6552 msgid ""
6553 "B<int getservbyname_r(const char *>I<name>B<, const char *>I<proto>B<,>\n"
6554 "B<                struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
6555 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
6556 msgstr ""
6557
6558 #. type: Plain text
6559 #: build/C/man3/getservent_r.3:44
6560 #, no-wrap
6561 msgid ""
6562 "B<int getservbyport_r(int >I<port>B<, const char *>I<proto>B<,>\n"
6563 "B<                struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
6564 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
6565 msgstr ""
6566
6567 #. type: Plain text
6568 #: build/C/man3/getservent_r.3:55
6569 msgid "B<getservent_r>(), B<getservbyname_r>(), B<getservbyport_r>():"
6570 msgstr ""
6571
6572 #. type: Plain text
6573 #: build/C/man3/getservent_r.3:76
6574 msgid ""
6575 "The B<getservent_r>(), B<getservbyname_r>(), and B<getservbyport_r>()  "
6576 "functions are the reentrant equivalents of, respectively, B<getservent>(3), "
6577 "B<getservbyname>(3), and B<getservbyport>(3).  They differ in the way that "
6578 "the I<servent> structure is returned, and in the function calling signature "
6579 "and return value.  This manual page describes just the differences from the "
6580 "nonreentrant functions."
6581 msgstr ""
6582
6583 #. type: Plain text
6584 #: build/C/man3/getservent_r.3:82
6585 msgid ""
6586 "Instead of returning a pointer to a statically allocated I<servent> "
6587 "structure as the function result, these functions copy the structure into "
6588 "the location pointed to by I<result_buf>."
6589 msgstr ""
6590
6591 #.  I can find no information on the required/recommended buffer size;
6592 #.  the nonreentrant functions use a 1024 byte buffer -- mtk.
6593 #. type: Plain text
6594 #: build/C/man3/getservent_r.3:99
6595 msgid ""
6596 "The I<buf> array is used to store the string fields pointed to by the "
6597 "returned I<servent> structure.  (The nonreentrant functions allocate these "
6598 "strings in static storage.)  The size of this array is specified in "
6599 "I<buflen>.  If I<buf> is too small, the call fails with the error B<ERANGE>, "
6600 "and the caller must try again with a larger buffer.  (A buffer of length "
6601 "1024 bytes should be sufficient for most applications.)"
6602 msgstr ""
6603
6604 #. type: Plain text
6605 #: build/C/man3/getservent_r.3:107
6606 msgid ""
6607 "If the function call successfully obtains a service record, then I<*result> "
6608 "is set pointing to I<result_buf>; otherwise, I<*result> is set to NULL."
6609 msgstr ""
6610
6611 #. type: Plain text
6612 #: build/C/man3/getservent_r.3:110
6613 msgid ""
6614 "On success, these functions return 0.  On error, they return one of the "
6615 "positive error numbers listed in errors."
6616 msgstr ""
6617
6618 #. type: Plain text
6619 #: build/C/man3/getservent_r.3:118
6620 msgid ""
6621 "On error, record not found (B<getservbyname_r>(), B<getservbyport_r>()), or "
6622 "end of input (B<getservent_r>())  I<result> is set to NULL."
6623 msgstr ""
6624
6625 #. type: Plain text
6626 #: build/C/man3/getservent_r.3:123
6627 msgid "(B<getservent_r>())  No more records in database."
6628 msgstr ""
6629
6630 #. type: Plain text
6631 #: build/C/man3/getservent_r.3:148
6632 msgid ""
6633 "The program below uses B<getservbyport_r>()  to retrieve the service record "
6634 "for the port and protocol named in its first command-line argument.  If a "
6635 "third (integer) command-line argument is supplied, it is used as the initial "
6636 "value for I<buflen>; if B<getservbyport_r>()  fails with the error "
6637 "B<ERANGE>, the program retries with larger buffer sizes.  The following "
6638 "shell session shows a couple of sample runs:"
6639 msgstr ""
6640
6641 #. type: Plain text
6642 #: build/C/man3/getservent_r.3:158
6643 #, no-wrap
6644 msgid ""
6645 "$B< ./a.out 7 tcp 1>\n"
6646 "ERANGE! Retrying with larger buffer\n"
6647 "getservbyport_r() returned: 0 (success)  (buflen=87)\n"
6648 "s_name=echo; s_proto=tcp; s_port=7; aliases=\n"
6649 "$B< ./a.out 77777 tcp>\n"
6650 "getservbyport_r() returned: 0 (success)  (buflen=1024)\n"
6651 "Call failed/record not found\n"
6652 msgstr ""
6653
6654 #. type: Plain text
6655 #: build/C/man3/getservent_r.3:182
6656 #, no-wrap
6657 msgid ""
6658 "int\n"
6659 "main(int argc, char *argv[])\n"
6660 "{\n"
6661 "    int buflen, erange_cnt, port, s;\n"
6662 "    struct servent result_buf;\n"
6663 "    struct servent *result;\n"
6664 "    char buf[MAX_BUF];\n"
6665 "    char *protop;\n"
6666 "    char **p;\n"
6667 msgstr ""
6668
6669 #. type: Plain text
6670 #: build/C/man3/getservent_r.3:187
6671 #, no-wrap
6672 msgid ""
6673 "    if (argc E<lt> 3) {\n"
6674 "        printf(\"Usage: %s port-num proto-name [buflen]\\en\", argv[0]);\n"
6675 "        exit(EXIT_FAILURE);\n"
6676 "    }\n"
6677 msgstr ""
6678
6679 #. type: Plain text
6680 #: build/C/man3/getservent_r.3:191
6681 #, no-wrap
6682 msgid ""
6683 "    port = htons(atoi(argv[1]));\n"
6684 "    protop = (strcmp(argv[2], \"null\") == 0 ||\n"
6685 "\t      strcmp(argv[2], \"NULL\") == 0) ?  NULL : argv[2];\n"
6686 msgstr ""
6687
6688 #. type: Plain text
6689 #: build/C/man3/getservent_r.3:195
6690 #, no-wrap
6691 msgid ""
6692 "    buflen = 1024;\n"
6693 "    if (argc E<gt> 3)\n"
6694 "        buflen = atoi(argv[3]);\n"
6695 msgstr ""
6696
6697 #. type: Plain text
6698 #: build/C/man3/getservent_r.3:209
6699 #, no-wrap
6700 msgid ""
6701 "    erange_cnt = 0;\n"
6702 "    do {\n"
6703 "        s = getservbyport_r(port, protop, &result_buf,\n"
6704 "                     buf, buflen, &result);\n"
6705 "        if (s == ERANGE) {\n"
6706 "            if (erange_cnt == 0)\n"
6707 "                printf(\"ERANGE! Retrying with larger buffer\\en\");\n"
6708 "            erange_cnt++;\n"
6709 msgstr ""
6710
6711 #. type: Plain text
6712 #: build/C/man3/getservent_r.3:225
6713 #, no-wrap
6714 msgid ""
6715 "    printf(\"getservbyport_r() returned: %s  (buflen=%d)\\en\",\n"
6716 "            (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n"
6717 "            strerror(s), buflen);\n"
6718 msgstr ""
6719
6720 #. type: Plain text
6721 #: build/C/man3/getservent_r.3:237
6722 #, no-wrap
6723 msgid ""
6724 "    printf(\"s_name=%s; s_proto=%s; s_port=%d; aliases=\",\n"
6725 "                result_buf.s_name, result_buf.s_proto,\n"
6726 "                ntohs(result_buf.s_port));\n"
6727 "    for (p = result_buf.s_aliases; *p != NULL; p++)\n"
6728 "        printf(\"%s \", *p);\n"
6729 "    printf(\"\\en\");\n"
6730 msgstr ""
6731
6732 #. type: Plain text
6733 #: build/C/man3/getservent_r.3:244
6734 msgid "B<getservent>(3), B<services>(5)"
6735 msgstr ""
6736
6737 #. type: TH
6738 #: build/C/man5/host.conf.5:26
6739 #, no-wrap
6740 msgid "HOST.CONF"
6741 msgstr ""
6742
6743 #. type: TH
6744 #: build/C/man5/host.conf.5:26
6745 #, no-wrap
6746 msgid "2003-08-23"
6747 msgstr ""
6748
6749 #. type: TH
6750 #: build/C/man5/host.conf.5:26 build/C/man5/networks.5:26
6751 #, no-wrap
6752 msgid "Linux System Administration"
6753 msgstr ""
6754
6755 #. type: Plain text
6756 #: build/C/man5/host.conf.5:29
6757 msgid "host.conf - resolver configuration file"
6758 msgstr ""
6759
6760 #. type: Plain text
6761 #: build/C/man5/host.conf.5:38
6762 msgid ""
6763 "The file I</etc/host.conf> contains configuration information specific to "
6764 "the resolver library.  It should contain one configuration keyword per line, "
6765 "followed by appropriate configuration information.  The keywords recognized "
6766 "are I<order>, I<trim>, I<multi>, I<nospoof>, I<spoof>, and I<reorder>.  "
6767 "These keywords are described below."
6768 msgstr ""
6769
6770 #. type: TP
6771 #: build/C/man5/host.conf.5:38
6772 #, no-wrap
6773 msgid "I<order>"
6774 msgstr ""
6775
6776 #. type: Plain text
6777 #: build/C/man5/host.conf.5:44
6778 msgid ""
6779 "This keyword specifies how host lookups are to be performed.  It should be "
6780 "followed by one or more lookup methods, separated by commas.  Valid methods "
6781 "are I<bind>, I<hosts>, and I<nis>."
6782 msgstr ""
6783
6784 #. type: TP
6785 #: build/C/man5/host.conf.5:44
6786 #, no-wrap
6787 msgid "I<trim>"
6788 msgstr ""
6789
6790 #. type: Plain text
6791 #: build/C/man5/host.conf.5:61
6792 msgid ""
6793 "This keyword may be listed more than once.  Each time it should be followed "
6794 "by a list of domains, separated by colons (\\(aq:\\(aq), semicolons "
6795 "(\\(aq;\\(aq) or commas (\\(aq,\\(aq), with the leading dot.  When set, the "
6796 "resolv+ library will automatically trim the given domain name from the end "
6797 "of any hostname resolved via DNS.  This is intended for use with local hosts "
6798 "and domains.  (Related note: trim will not affect hostnames gathered via NIS "
6799 "or the hosts file.  Care should be taken to ensure that the first hostname "
6800 "for each entry in the hosts file is fully qualified or unqualified, as "
6801 "appropriate for the local installation.)"
6802 msgstr ""
6803
6804 #. type: TP
6805 #: build/C/man5/host.conf.5:61
6806 #, no-wrap
6807 msgid "I<multi>"
6808 msgstr ""
6809
6810 #. type: Plain text
6811 #: build/C/man5/host.conf.5:76
6812 msgid ""
6813 "Valid values are I<on> and I<off>.  If set to I<on>, the resolv+ library "
6814 "will return all valid addresses for a host that appears in the I</etc/hosts> "
6815 "file, instead of only the first.  This is I<off> by default, as it may cause "
6816 "a substantial performance loss at sites with large hosts files."
6817 msgstr ""
6818
6819 #. type: TP
6820 #: build/C/man5/host.conf.5:76
6821 #, no-wrap
6822 msgid "I<nospoof>"
6823 msgstr ""
6824
6825 #. type: Plain text
6826 #: build/C/man5/host.conf.5:91
6827 msgid ""
6828 "Valid values are I<on> and I<off>.  If set to I<on>, the resolv+ library "
6829 "will attempt to prevent hostname spoofing to enhance the security of "
6830 "B<rlogin> and B<rsh>.  It works as follows: after performing a host address "
6831 "lookup, resolv+ will perform a hostname lookup for that address.  If the two "
6832 "hostnames do not match, the query will fail.  The default value is I<off>."
6833 msgstr ""
6834
6835 #. type: TP
6836 #: build/C/man5/host.conf.5:91
6837 #, no-wrap
6838 msgid "I<spoofalert>"
6839 msgstr ""
6840
6841 #. type: Plain text
6842 #: build/C/man5/host.conf.5:103
6843 msgid ""
6844 "Valid values are I<on> and I<off>.  If this option is set to I<on> and the "
6845 "I<nospoof> option is also set, resolv+ will log a warning of the error via "
6846 "the syslog facility.  The default value is I<off>."
6847 msgstr ""
6848
6849 #. type: TP
6850 #: build/C/man5/host.conf.5:103
6851 #, no-wrap
6852 msgid "I<spoof>"
6853 msgstr ""
6854
6855 #. type: Plain text
6856 #: build/C/man5/host.conf.5:122
6857 msgid ""
6858 "Valid values are I<off>, I<nowarn> and I<warn>.  If this option is set to "
6859 "I<off>, spoofed addresses are permitted and no warnings will be emitted via "
6860 "the syslog facility.  If this option is set to I<warn>, resolv+ will attempt "
6861 "to prevent hostname spoofing to enhance the security and log a warning of "
6862 "the error via the syslog facility.  If this option is set to I<nowarn>, the "
6863 "resolv+ library will attempt to prevent hostname spoofing to enhance the "
6864 "security but not emit warnings via the syslog facility.  Setting this option "
6865 "to anything else is equal to setting it to I<nowarn>."
6866 msgstr ""
6867
6868 #. type: TP
6869 #: build/C/man5/host.conf.5:122
6870 #, no-wrap
6871 msgid "I<reorder>"
6872 msgstr ""
6873
6874 #. type: Plain text
6875 #: build/C/man5/host.conf.5:135
6876 msgid ""
6877 "Valid values are I<on> and I<off>.  If set to I<on>, resolv+ will attempt to "
6878 "reorder host addresses so that local addresses (i.e., on the same subnet) "
6879 "are listed first when a B<gethostbyname>(3)  is performed.  Reordering is "
6880 "done for all lookup methods.  The default value is I<off>."
6881 msgstr ""
6882
6883 #. type: SH
6884 #: build/C/man5/host.conf.5:135
6885 #, no-wrap
6886 msgid "ENVIRONMENT"
6887 msgstr ""
6888
6889 #. type: Plain text
6890 #: build/C/man5/host.conf.5:139
6891 msgid ""
6892 "There are six environment variables that can be used to allow users to "
6893 "override the behavior which is configured in I</etc/host.conf>."
6894 msgstr ""
6895
6896 #. type: TP
6897 #: build/C/man5/host.conf.5:139
6898 #, no-wrap
6899 msgid "B<RESOLV_HOST_CONF>"
6900 msgstr ""
6901
6902 #. type: Plain text
6903 #: build/C/man5/host.conf.5:143
6904 msgid ""
6905 "If set this variable points to a file that should be read instead of "
6906 "I</etc/host.conf>."
6907 msgstr ""
6908
6909 #. type: TP
6910 #: build/C/man5/host.conf.5:143
6911 #, no-wrap
6912 msgid "B<RESOLV_SERV_ORDER>"
6913 msgstr ""
6914
6915 #. type: Plain text
6916 #: build/C/man5/host.conf.5:148
6917 msgid "Overrides the I<order> command."
6918 msgstr ""
6919
6920 #. type: TP
6921 #: build/C/man5/host.conf.5:148
6922 #, no-wrap
6923 msgid "B<RESOLV_SPOOF_CHECK>"
6924 msgstr ""
6925
6926 #. type: Plain text
6927 #: build/C/man5/host.conf.5:157
6928 msgid ""
6929 "Overrides the I<nospoof>, I<spoofalert> and I<spoof> commands in the same "
6930 "way as the I<spoof> command is parsed.  Valid values are I<off>, I<nowarn> "
6931 "and I<warn>."
6932 msgstr ""
6933
6934 #. type: TP
6935 #: build/C/man5/host.conf.5:157
6936 #, no-wrap
6937 msgid "B<RESOLV_MULTI>"
6938 msgstr ""
6939
6940 #. type: Plain text
6941 #: build/C/man5/host.conf.5:162
6942 msgid "Overrides the I<multi> command."
6943 msgstr ""
6944
6945 #. type: TP
6946 #: build/C/man5/host.conf.5:162
6947 #, no-wrap
6948 msgid "B<RESOLV_REORDER>"
6949 msgstr ""
6950
6951 #. type: Plain text
6952 #: build/C/man5/host.conf.5:167
6953 msgid "Overrides the I<reorder> command."
6954 msgstr ""
6955
6956 #. type: TP
6957 #: build/C/man5/host.conf.5:167
6958 #, no-wrap
6959 msgid "B<RESOLV_ADD_TRIM_DOMAINS>"
6960 msgstr ""
6961
6962 #. type: Plain text
6963 #: build/C/man5/host.conf.5:172
6964 msgid ""
6965 "A list of domains, separated by colons (\\(aq:\\(aq), semicolons "
6966 "(\\(aq;\\(aq) or commas (\\(aq,\\(aq), with the leading dot, which will be "
6967 "added to the list of domains that should be trimmed."
6968 msgstr ""
6969
6970 #. type: TP
6971 #: build/C/man5/host.conf.5:172
6972 #, no-wrap
6973 msgid "B<RESOLV_OVERRIDE_TRIM_DOMAINS>"
6974 msgstr ""
6975
6976 #. type: Plain text
6977 #: build/C/man5/host.conf.5:180
6978 msgid ""
6979 "A list of domains, separated by colons (\\(aq:\\(aq), semicolons "
6980 "(\\(aq;\\(aq) or commas (\\(aq,\\(aq), with the leading dot, which will "
6981 "replace the list of domains that should be trimmed.  Overrides the I<trim> "
6982 "command."
6983 msgstr ""
6984
6985 #. type: Plain text
6986 #: build/C/man5/host.conf.5:184 build/C/man5/host.conf.5:187
6987 msgid "Resolver configuration file"
6988 msgstr ""
6989
6990 #. type: TP
6991 #: build/C/man5/host.conf.5:184
6992 #, no-wrap
6993 msgid "I</etc/resolv.conf>"
6994 msgstr ""
6995
6996 #. type: Plain text
6997 #: build/C/man5/host.conf.5:190
6998 msgid "Local hosts database"
6999 msgstr ""
7000
7001 #. type: Plain text
7002 #: build/C/man5/host.conf.5:199
7003 msgid ""
7004 "The following differences exist compared to the original implementation.  A "
7005 "new command I<spoof> and a new environment variable B<RESOLV_SPOOF_CHECK> "
7006 "can take arguments like I<off>, I<nowarn> and I<warn>.  Line comments can "
7007 "appear anywhere and not only at the beginning of a line."
7008 msgstr ""
7009
7010 #. type: Plain text
7011 #: build/C/man5/host.conf.5:204
7012 msgid "B<gethostbyname>(3), B<hostname>(7), B<named>(8), B<resolv+>(8)"
7013 msgstr ""
7014
7015 #. type: TH
7016 #: build/C/man7/hostname.7:39
7017 #, no-wrap
7018 msgid "HOSTNAME"
7019 msgstr ""
7020
7021 #. type: TH
7022 #: build/C/man7/hostname.7:39
7023 #, no-wrap
7024 msgid "2010-11-07"
7025 msgstr ""
7026
7027 #. type: Plain text
7028 #: build/C/man7/hostname.7:42
7029 msgid "hostname - hostname resolution description"
7030 msgstr ""
7031
7032 #. type: Plain text
7033 #: build/C/man7/hostname.7:46
7034 msgid ""
7035 "Hostnames are domains, where a domain is a hierarchical, dot-separated list "
7036 "of subdomains; for example, the machine monet, in the Berkeley subdomain of "
7037 "the EDU domain would be represented as \"monet.Berkeley.EDU\"."
7038 msgstr ""
7039
7040 #. type: Plain text
7041 #: build/C/man7/hostname.7:55
7042 msgid ""
7043 "Hostnames are often used with network client and server programs, which must "
7044 "generally translate the name to an address for use.  (This task is generally "
7045 "performed by either B<getaddrinfo>(3)  or the obsolete B<gethostbyname>(3).)  "
7046 "Hostnames are resolved by the Internet name resolver in the following "
7047 "fashion."
7048 msgstr ""
7049
7050 #. type: Plain text
7051 #: build/C/man7/hostname.7:68
7052 msgid ""
7053 "If the name consists of a single component, that is, contains no dot, and if "
7054 "the environment variable B<HOSTALIASES> is set to the name of a file, that "
7055 "file is searched for any string matching the input hostname.  The file "
7056 "should consist of lines made up of two white-space separated strings, the "
7057 "first of which is the hostname alias, and the second of which is the "
7058 "complete hostname to be substituted for that alias.  If a case-insensitive "
7059 "match is found between the hostname to be resolved and the first field of a "
7060 "line in the file, the substituted name is looked up with no further "
7061 "processing."
7062 msgstr ""
7063
7064 #. type: Plain text
7065 #: build/C/man7/hostname.7:72
7066 msgid ""
7067 "If the input name ends with a trailing dot, the trailing dot is removed, and "
7068 "the remaining name is looked up with no further processing."
7069 msgstr ""
7070
7071 #. type: Plain text
7072 #: build/C/man7/hostname.7:85
7073 msgid ""
7074 "If the input name does not end with a trailing dot, it is looked up by "
7075 "searching through a list of domains until a match is found.  The default "
7076 "search list includes first the local domain, then its parent domains with at "
7077 "least 2 name components (longest first).  For example, in the domain "
7078 "CS.Berkeley.EDU, the name lithium.CChem will be checked first as "
7079 "lithium.CChem.CS.Berkeley.EDU and then as lithium.CChem.Berkeley.EDU.  "
7080 "Lithium.CChem.EDU will not be tried, as there is only one component "
7081 "remaining from the local domain.  The search path can be changed from the "
7082 "default by a system-wide configuration file (see B<resolver>(5))."
7083 msgstr ""
7084
7085 #.  .SH HISTORY
7086 #.  Hostname appeared in
7087 #.  4.2BSD.
7088 #. type: Plain text
7089 #: build/C/man7/hostname.7:93
7090 msgid "B<gethostbyname>(3), B<resolver>(5), B<mailaddr>(7), B<named>(8)"
7091 msgstr ""
7092
7093 #. type: TH
7094 #: build/C/man5/hosts.5:27
7095 #, no-wrap
7096 msgid "HOSTS"
7097 msgstr ""
7098
7099 #. type: TH
7100 #: build/C/man5/hosts.5:27
7101 #, no-wrap
7102 msgid "2002-06-16"
7103 msgstr ""
7104
7105 #. type: Plain text
7106 #: build/C/man5/hosts.5:30
7107 msgid "hosts - static table lookup for hostnames"
7108 msgstr ""
7109
7110 #. type: Plain text
7111 #: build/C/man5/hosts.5:32
7112 msgid "B</etc/hosts>"
7113 msgstr ""
7114
7115 #. type: Plain text
7116 #: build/C/man5/hosts.5:40
7117 msgid ""
7118 "This manual page describes the format of the I</etc/hosts> file.  This file "
7119 "is a simple text file that associates IP addresses with hostnames, one line "
7120 "per IP address.  For each host a single line should be present with the "
7121 "following information:"
7122 msgstr ""
7123
7124 #. type: Plain text
7125 #: build/C/man5/hosts.5:43
7126 msgid "IP_address canonical_hostname [aliases...]"
7127 msgstr ""
7128
7129 #. type: Plain text
7130 #: build/C/man5/hosts.5:56
7131 msgid ""
7132 "Fields of the entry are separated by any number of blanks and/or tab "
7133 "characters.  Text from a \"#\" character until the end of the line is a "
7134 "comment, and is ignored.  Host names may contain only alphanumeric "
7135 "characters, minus signs (\"-\"), and periods (\".\").  They must begin with "
7136 "an alphabetic character and end with an alphanumeric character.  Optional "
7137 "aliases provide for name changes, alternate spellings, shorter hostnames, or "
7138 "generic hostnames (for example, I<localhost>)."
7139 msgstr ""
7140
7141 #. type: Plain text
7142 #: build/C/man5/hosts.5:64
7143 msgid ""
7144 "The Berkeley Internet Name Domain (BIND) Server implements the Internet name "
7145 "server for UNIX systems.  It augments or replaces the I</etc/hosts> file or "
7146 "hostname lookup, and frees a host from relying on I</etc/hosts> being up to "
7147 "date and complete."
7148 msgstr ""
7149
7150 #. type: Plain text
7151 #: build/C/man5/hosts.5:67
7152 msgid ""
7153 "In modern systems, even though the host table has been superseded by DNS, it "
7154 "is still widely used for:"
7155 msgstr ""
7156
7157 #. type: TP
7158 #: build/C/man5/hosts.5:67
7159 #, no-wrap
7160 msgid "B<bootstrapping>"
7161 msgstr ""
7162
7163 #. type: Plain text
7164 #: build/C/man5/hosts.5:73
7165 msgid ""
7166 "Most systems have a small host table containing the name and address "
7167 "information for important hosts on the local network.  This is useful when "
7168 "DNS is not running, for example during system bootup."
7169 msgstr ""
7170
7171 #. type: TP
7172 #: build/C/man5/hosts.5:73
7173 #, no-wrap
7174 msgid "B<NIS>"
7175 msgstr ""
7176
7177 #. type: Plain text
7178 #: build/C/man5/hosts.5:79
7179 msgid ""
7180 "Sites that use NIS use the host table as input to the NIS host database.  "
7181 "Even though NIS can be used with DNS, most NIS sites still use the host "
7182 "table with an entry for all local hosts as a backup."
7183 msgstr ""
7184
7185 #. type: TP
7186 #: build/C/man5/hosts.5:79
7187 #, no-wrap
7188 msgid "B<isolated nodes>"
7189 msgstr ""
7190
7191 #. type: Plain text
7192 #: build/C/man5/hosts.5:86
7193 msgid ""
7194 "Very small sites that are isolated from the network use the host table "
7195 "instead of DNS.  If the local information rarely changes, and the network is "
7196 "not connected to the Internet, DNS offers little advantage."
7197 msgstr ""
7198
7199 #. type: Plain text
7200 #: build/C/man5/hosts.5:91
7201 msgid ""
7202 "Modifications to this file normally take effect immediately, except in cases "
7203 "where the file is cached by applications."
7204 msgstr ""
7205
7206 #. type: SS
7207 #: build/C/man5/hosts.5:91
7208 #, no-wrap
7209 msgid "Historical notes"
7210 msgstr ""
7211
7212 #. type: Plain text
7213 #: build/C/man5/hosts.5:94
7214 msgid ""
7215 "RFC\\ 952 gave the original format for the host table, though it has since "
7216 "changed."
7217 msgstr ""
7218
7219 #. type: Plain text
7220 #: build/C/man5/hosts.5:107
7221 msgid ""
7222 "Before the advent of DNS, the host table was the only way of resolving "
7223 "hostnames on the fledgling Internet.  Indeed, this file could be created "
7224 "from the official host data base maintained at the Network Information "
7225 "Control Center (NIC), though local changes were often required to bring it "
7226 "up to date regarding unofficial aliases and/or unknown hosts.  The NIC no "
7227 "longer maintains the hosts.txt files, though looking around at the time of "
7228 "writing (circa 2000), there are historical hosts.txt files on the WWW.  I "
7229 "just found three, from 92, 94, and 95."
7230 msgstr ""
7231
7232 #. type: Plain text
7233 #: build/C/man5/hosts.5:114
7234 #, no-wrap
7235 msgid ""
7236 "127.0.0.1       localhost\n"
7237 "192.168.1.10    foo.mydomain.org       foo\n"
7238 "192.168.1.13    bar.mydomain.org       bar\n"
7239 "146.82.138.7    master.debian.org      master\n"
7240 "209.237.226.90  www.opensource.org\n"
7241 msgstr ""
7242
7243 #. type: Plain text
7244 #: build/C/man5/hosts.5:121
7245 msgid "B<hostname>(1), B<resolver>(3), B<resolver>(5), B<hostname>(7), B<named>(8)"
7246 msgstr ""
7247
7248 #.  .SH AUTHOR
7249 #.  This manual page was written by Manoj Srivastava <srivasta@debian.org>,
7250 #.  for the Debian GNU/Linux system.
7251 #. type: Plain text
7252 #: build/C/man5/hosts.5:126
7253 msgid "Internet RFC\\ 952"
7254 msgstr ""
7255
7256 #. type: TH
7257 #: build/C/man5/hosts.equiv.5:6
7258 #, no-wrap
7259 msgid "HOSTS.EQUIV"
7260 msgstr ""
7261
7262 #. type: TH
7263 #: build/C/man5/hosts.equiv.5:6
7264 #, no-wrap
7265 msgid "2003-08-24"
7266 msgstr ""
7267
7268 #. type: Plain text
7269 #: build/C/man5/hosts.equiv.5:11
7270 msgid ""
7271 "/etc/hosts.equiv - list of hosts and users that are granted \"trusted\" B<r> "
7272 "command access to your system"
7273 msgstr ""
7274
7275 #. type: Plain text
7276 #: build/C/man5/hosts.equiv.5:22
7277 msgid ""
7278 "The B<hosts.equiv> file allows or denies hosts and users to use the "
7279 "B<r>-commands (e.g., B<rlogin>, B<rsh> or B<rcp>)  without supplying a "
7280 "password."
7281 msgstr ""
7282
7283 #. type: Plain text
7284 #: build/C/man5/hosts.equiv.5:24
7285 msgid "The file uses the following format:"
7286 msgstr ""
7287
7288 #. type: TP
7289 #: build/C/man5/hosts.equiv.5:24
7290 #, no-wrap
7291 msgid "I<[ + | - ]> I<[hostname]> I<[username]>"
7292 msgstr ""
7293
7294 #. type: Plain text
7295 #: build/C/man5/hosts.equiv.5:43
7296 msgid ""
7297 "The I<hostname> is the name of a host which is logically equivalent to the "
7298 "local host.  Users logged into that host are allowed to access like-named "
7299 "user accounts on the local host without supplying a password.  The "
7300 "I<hostname> may be (optionally) preceded by a plus (+) sign.  If the plus "
7301 "sign is used alone it allows any host to access your system.  You can "
7302 "explicitly deny access to a host by preceding the I<hostname> by a minus (-) "
7303 "sign.  Users from that host must always supply a password.  For security "
7304 "reasons you should always use the FQDN of the hostname and not the short "
7305 "hostname."
7306 msgstr ""
7307
7308 #. type: Plain text
7309 #: build/C/man5/hosts.equiv.5:61
7310 msgid ""
7311 "The I<username> entry grants a specific user access to all user accounts "
7312 "(except root) without supplying a password.  That means the user is NOT "
7313 "restricted to like-named accounts.  The I<username> may be (optionally) "
7314 "preceded by a plus (+) sign.  You can also explicitly deny access to a "
7315 "specific user by preceding the I<username> with a minus (-) sign.  This says "
7316 "that the user is not trusted no matter what other entries for that host "
7317 "exist."
7318 msgstr ""
7319
7320 #. type: Plain text
7321 #: build/C/man5/hosts.equiv.5:63
7322 msgid "Netgroups can be specified by preceding the netgroup by an @ sign."
7323 msgstr ""
7324
7325 #. type: Plain text
7326 #: build/C/man5/hosts.equiv.5:69
7327 msgid ""
7328 "Be extremely careful when using the plus (+) sign.  A simple typographical "
7329 "error could result in a standalone plus sign.  A standalone plus sign is a "
7330 "wildcard character that means \"any host\"!"
7331 msgstr ""
7332
7333 #. type: Plain text
7334 #: build/C/man5/hosts.equiv.5:71
7335 msgid "I</etc/hosts.equiv>"
7336 msgstr ""
7337
7338 #. type: Plain text
7339 #: build/C/man5/hosts.equiv.5:76
7340 msgid ""
7341 "Some systems will honor the contents of this file only when it has owner "
7342 "root and no write permission for anybody else.  Some exceptionally paranoid "
7343 "systems even require that there be no other hard links to the file."
7344 msgstr ""
7345
7346 #. type: Plain text
7347 #: build/C/man5/hosts.equiv.5:84
7348 msgid ""
7349 "Modern systems use the Pluggable Authentication Modules library (PAM).  With "
7350 "PAM a standalone plus sign is considered a wildcard character which means "
7351 "\"any host\" only when the word I<promiscuous> is added to the auth "
7352 "component line in your PAM file for the particular service (e.g., "
7353 "B<rlogin>)."
7354 msgstr ""
7355
7356 #. type: Plain text
7357 #: build/C/man5/hosts.equiv.5:88
7358 msgid "B<rhosts>(5), B<rlogind>(8), B<rshd>(8)"
7359 msgstr ""
7360
7361 #. type: TH
7362 #: build/C/man7/icmp.7:12
7363 #, no-wrap
7364 msgid "ICMP"
7365 msgstr ""
7366
7367 #. type: TH
7368 #: build/C/man7/icmp.7:12 build/C/man8/nscd.8:23 build/C/man7/packet.7:12 build/C/man7/raw.7:13 build/C/man7/unix.7:18
7369 #, no-wrap
7370 msgid "2012-05-10"
7371 msgstr ""
7372
7373 #. type: Plain text
7374 #: build/C/man7/icmp.7:15
7375 msgid "icmp - Linux IPv4 ICMP kernel module."
7376 msgstr ""
7377
7378 #. type: Plain text
7379 #: build/C/man7/icmp.7:23
7380 msgid ""
7381 "This kernel protocol module implements the Internet Control Message Protocol "
7382 "defined in RFC\\ 792.  It is used to signal error conditions and for "
7383 "diagnosis.  The user doesn't interact directly with this module; instead it "
7384 "communicates with the other protocols in the kernel and these pass the ICMP "
7385 "errors to the application layers.  The kernel ICMP module also answers ICMP "
7386 "requests."
7387 msgstr ""
7388
7389 #. type: Plain text
7390 #: build/C/man7/icmp.7:35
7391 msgid ""
7392 "A user protocol may receive ICMP packets for all local sockets by opening a "
7393 "raw socket with the protocol B<IPPROTO_ICMP>.  See B<raw>(7)  for more "
7394 "information.  The types of ICMP packets passed to the socket can be filtered "
7395 "using the B<ICMP_FILTER> socket option.  ICMP packets are always processed "
7396 "by the kernel too, even when passed to a user socket."
7397 msgstr ""
7398
7399 #. type: Plain text
7400 #: build/C/man7/icmp.7:41
7401 msgid ""
7402 "Linux limits the rate of ICMP error packets to each destination.  "
7403 "B<ICMP_REDIRECT> and B<ICMP_DEST_UNREACH> are also limited by the "
7404 "destination route of the incoming packets."
7405 msgstr ""
7406
7407 #.  FIXME better description needed
7408 #. type: Plain text
7409 #: build/C/man7/icmp.7:54
7410 msgid ""
7411 "ICMP supports a set of I</proc> interfaces to configure some global IP "
7412 "parameters.  The parameters can be accessed by reading or writing files in "
7413 "the directory I</proc/sys/net/ipv4/>.  Most of these parameters are rate "
7414 "limitations for specific ICMP types.  Linux 2.2 uses a token bucket filter "
7415 "to limit ICMPs.  The value is the timeout in jiffies until the token bucket "
7416 "filter is cleared after a burst.  A jiffy is a system dependent unit, "
7417 "usually 10ms on i386 and about 1ms on alpha and ia64."
7418 msgstr ""
7419
7420 #. type: TP
7421 #: build/C/man7/icmp.7:54
7422 #, no-wrap
7423 msgid "I<icmp_destunreach_rate> (Linux 2.2 to 2.4.9)"
7424 msgstr ""
7425
7426 #.  Precisely: from 2.1.102
7427 #. type: Plain text
7428 #: build/C/man7/icmp.7:63
7429 msgid ""
7430 "Maximum rate to send ICMP Destination Unreachable packets.  This limits the "
7431 "rate at which packets are sent to any individual route or destination.  The "
7432 "limit does not affect sending of B<ICMP_FRAG_NEEDED> packets needed for path "
7433 "MTU discovery."
7434 msgstr ""
7435
7436 #. type: TP
7437 #: build/C/man7/icmp.7:63
7438 #, no-wrap
7439 msgid "I<icmp_echo_ignore_all> (since Linux 2.2)"
7440 msgstr ""
7441
7442 #.  Precisely: 2.1.68
7443 #. type: Plain text
7444 #: build/C/man7/icmp.7:69
7445 msgid "If this value is nonzero, Linux will ignore all B<ICMP_ECHO> requests."
7446 msgstr ""
7447
7448 #. type: TP
7449 #: build/C/man7/icmp.7:69
7450 #, no-wrap
7451 msgid "I<icmp_echo_ignore_broadcasts> (since Linux 2.2)"
7452 msgstr ""
7453
7454 #.  Precisely: from 2.1.68
7455 #. type: Plain text
7456 #: build/C/man7/icmp.7:75
7457 msgid ""
7458 "If this value is nonzero, Linux will ignore all B<ICMP_ECHO> packets sent to "
7459 "broadcast addresses."
7460 msgstr ""
7461
7462 #. type: TP
7463 #: build/C/man7/icmp.7:75
7464 #, no-wrap
7465 msgid "I<icmp_echoreply_rate> (Linux 2.2 to 2.4.9)"
7466 msgstr ""
7467
7468 #.  Precisely: from 2.1.102
7469 #. type: Plain text
7470 #: build/C/man7/icmp.7:83
7471 msgid ""
7472 "Maximum rate for sending B<ICMP_ECHOREPLY> packets in response to "
7473 "B<ICMP_ECHOREQUEST> packets."
7474 msgstr ""
7475
7476 #. type: TP
7477 #: build/C/man7/icmp.7:83
7478 #, no-wrap
7479 msgid ""
7480 "I<icmp_errors_use_inbound_ifaddr> (Boolean; default: disabled; since Linux "
7481 "2.6.12)"
7482 msgstr ""
7483
7484 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
7485 #. type: Plain text
7486 #: build/C/man7/icmp.7:88
7487 msgid ""
7488 "If disabled, ICMP error messages are sent with the primary address of the "
7489 "exiting interface."
7490 msgstr ""
7491
7492 #. type: Plain text
7493 #: build/C/man7/icmp.7:94
7494 msgid ""
7495 "If enabled, the message will be sent with the primary address of the "
7496 "interface that received the packet that caused the ICMP error.  This is the "
7497 "behavior that many network administrators will expect from a router.  And it "
7498 "can make debugging complicated network layouts much easier."
7499 msgstr ""
7500
7501 #. type: Plain text
7502 #: build/C/man7/icmp.7:98
7503 msgid ""
7504 "Note that if no primary address exists for the interface selected, then the "
7505 "primary address of the first non-loopback interface that has one will be "
7506 "used regardless of this setting."
7507 msgstr ""
7508
7509 #. type: TP
7510 #: build/C/man7/icmp.7:98
7511 #, no-wrap
7512 msgid ""
7513 "I<icmp_ignore_bogus_error_responses> (Boolean; default: disabled; since "
7514 "Linux 2.2)"
7515 msgstr ""
7516
7517 #.  precisely: since 2.1.32
7518 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
7519 #. type: Plain text
7520 #: build/C/man7/icmp.7:106
7521 msgid ""
7522 "Some routers violate RFC1122 by sending bogus responses to broadcast "
7523 "frames.  Such violations are normally logged via a kernel warning.  If this "
7524 "parameter is enabled, the kernel will not give such warnings, which will "
7525 "avoid log file clutter."
7526 msgstr ""
7527
7528 #. type: TP
7529 #: build/C/man7/icmp.7:106
7530 #, no-wrap
7531 msgid "I<icmp_paramprob_rate> (Linux 2.2 to 2.4.9)"
7532 msgstr ""
7533
7534 #.  Precisely: from 2.1.102
7535 #. type: Plain text
7536 #: build/C/man7/icmp.7:113
7537 msgid ""
7538 "Maximum rate for sending B<ICMP_PARAMETERPROB> packets.  These packets are "
7539 "sent when a packet arrives with an invalid IP header."
7540 msgstr ""
7541
7542 #. type: TP
7543 #: build/C/man7/icmp.7:113
7544 #, no-wrap
7545 msgid "I<icmp_ratelimit> (integer; default: 1000; since Linux 2.4.10)"
7546 msgstr ""
7547
7548 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
7549 #. type: Plain text
7550 #: build/C/man7/icmp.7:121
7551 msgid ""
7552 "Limit the maximum rates for sending ICMP packets whose type matches "
7553 "I<icmp_ratemask> (see below) to specific targets.  0 to disable any "
7554 "limiting, otherwise the minimum space between responses in milliseconds."
7555 msgstr ""
7556
7557 #. type: TP
7558 #: build/C/man7/icmp.7:121
7559 #, no-wrap
7560 msgid "I<icmp_ratemask> (integer; default: see below; since Linux 2.4.10)"
7561 msgstr ""
7562
7563 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
7564 #. type: Plain text
7565 #: build/C/man7/icmp.7:125
7566 msgid "Mask made of ICMP types for which rates are being limited."
7567 msgstr ""
7568
7569 #. type: Plain text
7570 #: build/C/man7/icmp.7:127
7571 msgid "Significant bits: IHGFEDCBA9876543210"
7572 msgstr ""
7573
7574 #. type: Plain text
7575 #: build/C/man7/icmp.7:129
7576 msgid "Default mask: 0000001100000011000 (0x1818)"
7577 msgstr ""
7578
7579 #. type: Plain text
7580 #: build/C/man7/icmp.7:132
7581 msgid "Bit definitions (see the Linux kernel source file I<include/linux/icmp.h>):"
7582 msgstr ""
7583
7584 #. type: tbl table
7585 #: build/C/man7/icmp.7:136
7586 #, no-wrap
7587 msgid "0 Echo Reply\n"
7588 msgstr ""
7589
7590 #. type: tbl table
7591 #: build/C/man7/icmp.7:137
7592 #, no-wrap
7593 msgid "3 Destination Unreachable *\n"
7594 msgstr ""
7595
7596 #. type: tbl table
7597 #: build/C/man7/icmp.7:138
7598 #, no-wrap
7599 msgid "4 Source Quench *\n"
7600 msgstr ""
7601
7602 #. type: tbl table
7603 #: build/C/man7/icmp.7:139
7604 #, no-wrap
7605 msgid "5 Redirect\n"
7606 msgstr ""
7607
7608 #. type: tbl table
7609 #: build/C/man7/icmp.7:140
7610 #, no-wrap
7611 msgid "8 Echo Request\n"
7612 msgstr ""
7613
7614 #. type: tbl table
7615 #: build/C/man7/icmp.7:141
7616 #, no-wrap
7617 msgid "B Time Exceeded *\n"
7618 msgstr ""
7619
7620 #. type: tbl table
7621 #: build/C/man7/icmp.7:142
7622 #, no-wrap
7623 msgid "C Parameter Problem *\n"
7624 msgstr ""
7625
7626 #. type: tbl table
7627 #: build/C/man7/icmp.7:143
7628 #, no-wrap
7629 msgid "D Timestamp Request\n"
7630 msgstr ""
7631
7632 #. type: tbl table
7633 #: build/C/man7/icmp.7:144
7634 #, no-wrap
7635 msgid "E Timestamp Reply\n"
7636 msgstr ""
7637
7638 #. type: tbl table
7639 #: build/C/man7/icmp.7:145
7640 #, no-wrap
7641 msgid "F Info Request\n"
7642 msgstr ""
7643
7644 #. type: tbl table
7645 #: build/C/man7/icmp.7:146
7646 #, no-wrap
7647 msgid "G Info Reply\n"
7648 msgstr ""
7649
7650 #. type: tbl table
7651 #: build/C/man7/icmp.7:147
7652 #, no-wrap
7653 msgid "H Address Mask Request\n"
7654 msgstr ""
7655
7656 #. type: tbl table
7657 #: build/C/man7/icmp.7:148
7658 #, no-wrap
7659 msgid "I Address Mask Reply\n"
7660 msgstr ""
7661
7662 #. type: Plain text
7663 #: build/C/man7/icmp.7:154
7664 msgid ""
7665 "The bits marked with an asterisk are rate limited by default (see the "
7666 "default mask above)."
7667 msgstr ""
7668
7669 #. type: TP
7670 #: build/C/man7/icmp.7:154
7671 #, no-wrap
7672 msgid "I<icmp_timeexceed_rate> (Linux 2.2 to 2.4.9)"
7673 msgstr ""
7674
7675 #. type: Plain text
7676 #: build/C/man7/icmp.7:161
7677 msgid ""
7678 "Maximum rate for sending B<ICMP_TIME_EXCEEDED> packets.  These packets are "
7679 "sent to prevent loops when a packet has crossed too many hops."
7680 msgstr ""
7681
7682 #. type: Plain text
7683 #: build/C/man7/icmp.7:165
7684 msgid "Support for the B<ICMP_ADDRESS> request was removed in 2.2."
7685 msgstr ""
7686
7687 #. type: Plain text
7688 #: build/C/man7/icmp.7:169
7689 msgid "Support for B<ICMP_SOURCE_QUENCH> was removed in Linux 2.2."
7690 msgstr ""
7691
7692 #.  not really true ATM
7693 #.  .PP
7694 #.  Linux ICMP should be compliant to RFC 1122.
7695 #. type: Plain text
7696 #: build/C/man7/icmp.7:177
7697 msgid ""
7698 "As many other implementations don't support B<IPPROTO_ICMP> raw sockets, "
7699 "this feature should not be relied on in portable programs."
7700 msgstr ""
7701
7702 #. type: Plain text
7703 #: build/C/man7/icmp.7:182
7704 msgid ""
7705 "B<ICMP_REDIRECT> packets are not sent when Linux is not acting as a router.  "
7706 "They are also accepted only from the old gateway defined in the routing "
7707 "table and the redirect routes are expired after some time."
7708 msgstr ""
7709
7710 #. type: Plain text
7711 #: build/C/man7/icmp.7:186
7712 msgid ""
7713 "The 64-bit timestamp returned by B<ICMP_TIMESTAMP> is in milliseconds since "
7714 "the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
7715 msgstr ""
7716
7717 #. type: Plain text
7718 #: build/C/man7/icmp.7:191
7719 msgid ""
7720 "Linux ICMP internally uses a raw socket to send ICMPs.  This raw socket may "
7721 "appear in B<netstat>(8)  output with a zero inode."
7722 msgstr ""
7723
7724 #. type: Plain text
7725 #: build/C/man7/icmp.7:193
7726 msgid "B<ip>(7)"
7727 msgstr ""
7728
7729 #. type: Plain text
7730 #: build/C/man7/icmp.7:195
7731 msgid "RFC\\ 792 for a description of the ICMP protocol."
7732 msgstr ""
7733
7734 #. type: TH
7735 #: build/C/man3/inet.3:42
7736 #, no-wrap
7737 msgid "INET"
7738 msgstr ""
7739
7740 #. type: TH
7741 #: build/C/man3/inet.3:42
7742 #, no-wrap
7743 msgid "2013-02-10"
7744 msgstr ""
7745
7746 #. type: Plain text
7747 #: build/C/man3/inet.3:46
7748 msgid ""
7749 "inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, "
7750 "inet_netof - Internet address manipulation routines"
7751 msgstr ""
7752
7753 #. type: Plain text
7754 #: build/C/man3/inet.3:51
7755 #, no-wrap
7756 msgid ""
7757 "B<#include E<lt>sys/socket.hE<gt>>\n"
7758 "B<#include E<lt>netinet/in.hE<gt>>\n"
7759 "B<#include E<lt>arpa/inet.hE<gt>>\n"
7760 msgstr ""
7761
7762 #. type: Plain text
7763 #: build/C/man3/inet.3:53
7764 #, no-wrap
7765 msgid "B<int inet_aton(const char *>I<cp>B<, struct in_addr *>I<inp>B<);>\n"
7766 msgstr ""
7767
7768 #. type: Plain text
7769 #: build/C/man3/inet.3:55
7770 #, no-wrap
7771 msgid "B<in_addr_t inet_addr(const char *>I<cp>B<);>\n"
7772 msgstr ""
7773
7774 #. type: Plain text
7775 #: build/C/man3/inet.3:57
7776 #, no-wrap
7777 msgid "B<in_addr_t inet_network(const char *>I<cp>B<);>\n"
7778 msgstr ""
7779
7780 #. type: Plain text
7781 #: build/C/man3/inet.3:59
7782 #, no-wrap
7783 msgid "B<char *inet_ntoa(struct in_addr >I<in>B<);>\n"
7784 msgstr ""
7785
7786 #. type: Plain text
7787 #: build/C/man3/inet.3:61
7788 #, no-wrap
7789 msgid "B<struct in_addr inet_makeaddr(int >I<net>B<, int >I<host>B<);>\n"
7790 msgstr ""
7791
7792 #. type: Plain text
7793 #: build/C/man3/inet.3:63
7794 #, no-wrap
7795 msgid "B<in_addr_t inet_lnaof(struct in_addr >I<in>B<);>\n"
7796 msgstr ""
7797
7798 #. type: Plain text
7799 #: build/C/man3/inet.3:65
7800 #, no-wrap
7801 msgid "B<in_addr_t inet_netof(struct in_addr >I<in>B<);>\n"
7802 msgstr ""
7803
7804 #. type: Plain text
7805 #: build/C/man3/inet.3:75
7806 msgid "B<inet_aton>(), B<inet_ntoa>(): _BSD_SOURCE || _SVID_SOURCE"
7807 msgstr ""
7808
7809 #. type: Plain text
7810 #: build/C/man3/inet.3:85
7811 msgid ""
7812 "B<inet_aton>()  converts the Internet host address I<cp> from the IPv4 "
7813 "numbers-and-dots notation into binary form (in network byte order)  and "
7814 "stores it in the structure that I<inp> points to.  B<inet_aton>()  returns "
7815 "nonzero if the address is valid, zero if not.  The address supplied in I<cp> "
7816 "can have one of the following forms:"
7817 msgstr ""
7818
7819 #. type: TP
7820 #: build/C/man3/inet.3:85
7821 #, no-wrap
7822 msgid "I<a.b.c.d>"
7823 msgstr ""
7824
7825 #. type: Plain text
7826 #: build/C/man3/inet.3:89
7827 msgid ""
7828 "Each of the four numeric parts specifies a byte of the address; the bytes "
7829 "are assigned in left-to-right order to produce the binary address."
7830 msgstr ""
7831
7832 #. type: TP
7833 #: build/C/man3/inet.3:89
7834 #, no-wrap
7835 msgid "I<a.b.c>"
7836 msgstr ""
7837
7838 #. type: Plain text
7839 #: build/C/man3/inet.3:102
7840 msgid ""
7841 "Parts I<a> and I<b> specify the first two bytes of the binary address.  Part "
7842 "I<c> is interpreted as a 16-bit value that defines the rightmost two bytes "
7843 "of the binary address.  This notation is suitable for specifying (outmoded) "
7844 "Class B network addresses."
7845 msgstr ""
7846
7847 #. type: TP
7848 #: build/C/man3/inet.3:102
7849 #, no-wrap
7850 msgid "I<a.b>"
7851 msgstr ""
7852
7853 #. type: Plain text
7854 #: build/C/man3/inet.3:113
7855 msgid ""
7856 "Part I<a> specifies the first byte of the binary address.  Part I<b> is "
7857 "interpreted as a 24-bit value that defines the rightmost three bytes of the "
7858 "binary address.  This notation is suitable for specifying (outmoded) Class C "
7859 "network addresses."
7860 msgstr ""
7861
7862 #. type: TP
7863 #: build/C/man3/inet.3:113
7864 #, no-wrap
7865 msgid "I<a>"
7866 msgstr ""
7867
7868 #. type: Plain text
7869 #: build/C/man3/inet.3:119
7870 msgid ""
7871 "The value I<a> is interpreted as a 32-bit value that is stored directly into "
7872 "the binary address without any byte rearrangement."
7873 msgstr ""
7874
7875 #. type: Plain text
7876 #: build/C/man3/inet.3:132
7877 msgid ""
7878 "In all of the above forms, components of the dotted address can be specified "
7879 "in decimal, octal (with a leading I<0>), or hexadecimal, with a leading "
7880 "I<0X>).  Addresses in any of these forms are collectively termed I<IPV4 "
7881 "numbers-and-dots notation>.  The form that uses exactly four decimal numbers "
7882 "is referred to as I<IPv4 dotted-decimal notation> (or sometimes: I<IPv4 "
7883 "dotted-quad notation>)."
7884 msgstr ""
7885
7886 #. type: Plain text
7887 #: build/C/man3/inet.3:149
7888 msgid ""
7889 "The B<inet_addr>()  function converts the Internet host address I<cp> from "
7890 "IPv4 numbers-and-dots notation into binary data in network byte order.  If "
7891 "the input is invalid, B<INADDR_NONE> (usually -1) is returned.  Use of this "
7892 "function is problematic because -1 is a valid address (255.255.255.255).  "
7893 "Avoid its use in favor of B<inet_aton>(), B<inet_pton>(3), or "
7894 "B<getaddrinfo>(3)  which provide a cleaner way to indicate error return."
7895 msgstr ""
7896
7897 #. type: Plain text
7898 #: build/C/man3/inet.3:159
7899 msgid ""
7900 "The B<inet_network>()  function converts I<cp>, a string in IPv4 "
7901 "numbers-and-dots notation, into a number in host byte order suitable for use "
7902 "as an Internet network address.  On success, the converted address is "
7903 "returned.  If the input is invalid, -1 is returned."
7904 msgstr ""
7905
7906 #. type: Plain text
7907 #: build/C/man3/inet.3:167
7908 msgid ""
7909 "The B<inet_ntoa>()  function converts the Internet host address I<in>, given "
7910 "in network byte order, to a string in IPv4 dotted-decimal notation.  The "
7911 "string is returned in a statically allocated buffer, which subsequent calls "
7912 "will overwrite."
7913 msgstr ""
7914
7915 #. type: Plain text
7916 #: build/C/man3/inet.3:173
7917 msgid ""
7918 "The B<inet_lnaof>()  function returns the local network address part of the "
7919 "Internet address I<in>.  The returned value is in host byte order."
7920 msgstr ""
7921
7922 #. type: Plain text
7923 #: build/C/man3/inet.3:179
7924 msgid ""
7925 "The B<inet_netof>()  function returns the network number part of the "
7926 "Internet address I<in>.  The returned value is in host byte order."
7927 msgstr ""
7928
7929 #. type: Plain text
7930 #: build/C/man3/inet.3:190
7931 msgid ""
7932 "The B<inet_makeaddr>()  function is the converse of B<inet_netof>()  and "
7933 "B<inet_lnaof>().  It returns an Internet host address in network byte order, "
7934 "created by combining the network number I<net> with the local address "
7935 "I<host>, both in host byte order."
7936 msgstr ""
7937
7938 #. type: Plain text
7939 #: build/C/man3/inet.3:200
7940 msgid ""
7941 "The structure I<in_addr> as used in B<inet_ntoa>(), B<inet_makeaddr>(), "
7942 "B<inet_lnaof>()  and B<inet_netof>()  is defined in "
7943 "I<E<lt>netinet/in.hE<gt>> as:"
7944 msgstr ""
7945
7946 #. type: Plain text
7947 #: build/C/man3/inet.3:204
7948 #, no-wrap
7949 msgid "typedef uint32_t in_addr_t;\n"
7950 msgstr ""
7951
7952 #. type: Plain text
7953 #: build/C/man3/inet.3:208
7954 #, no-wrap
7955 msgid ""
7956 "struct in_addr {\n"
7957 "    in_addr_t s_addr;\n"
7958 "};\n"
7959 msgstr ""
7960
7961 #. type: Plain text
7962 #: build/C/man3/inet.3:218
7963 msgid ""
7964 "4.3BSD.  B<inet_addr>()  and B<inet_ntoa>()  are specified in POSIX.1-2001.  "
7965 "B<inet_aton>()  is not specified in POSIX.1-2001, but is available on most "
7966 "systems."
7967 msgstr ""
7968
7969 #. type: Plain text
7970 #: build/C/man3/inet.3:222
7971 msgid ""
7972 "On the i386 the host byte order is Least Significant Byte first (little "
7973 "endian), whereas the network byte order, as used on the Internet, is Most "
7974 "Significant Byte first (big endian)."
7975 msgstr ""
7976
7977 #. type: Plain text
7978 #: build/C/man3/inet.3:231
7979 msgid ""
7980 "B<inet_lnaof>(), B<inet_netof>(), and B<inet_makeaddr>()  are legacy "
7981 "functions that assume they are dealing with I<classful network addresses>.  "
7982 "Classful networking divides IPv4 network addresses into host and network "
7983 "components at byte boundaries, as follows:"
7984 msgstr ""
7985
7986 #. type: TP
7987 #: build/C/man3/inet.3:231
7988 #, no-wrap
7989 msgid "Class A"
7990 msgstr ""
7991
7992 #. type: Plain text
7993 #: build/C/man3/inet.3:237
7994 msgid ""
7995 "This address type is indicated by the value 0 in the most significant bit of "
7996 "the (network byte ordered) address.  The network address is contained in the "
7997 "most significant byte, and the host address occupies the remaining three "
7998 "bytes."
7999 msgstr ""
8000
8001 #. type: TP
8002 #: build/C/man3/inet.3:237
8003 #, no-wrap
8004 msgid "Class B"
8005 msgstr ""
8006
8007 #. type: Plain text
8008 #: build/C/man3/inet.3:243
8009 msgid ""
8010 "This address type is indicated by the binary value 10 in the most "
8011 "significant two bits of the address.  The network address is contained in "
8012 "the two most significant bytes, and the host address occupies the remaining "
8013 "two bytes."
8014 msgstr ""
8015
8016 #. type: TP
8017 #: build/C/man3/inet.3:243
8018 #, no-wrap
8019 msgid "Class C"
8020 msgstr ""
8021
8022 #. type: Plain text
8023 #: build/C/man3/inet.3:249
8024 msgid ""
8025 "This address type is indicated by the binary value 110 in the most "
8026 "significant three bits of the address.  The network address is contained in "
8027 "the three most significant bytes, and the host address occupies the "
8028 "remaining byte."
8029 msgstr ""
8030
8031 #. type: Plain text
8032 #: build/C/man3/inet.3:254
8033 msgid ""
8034 "Classful network addresses are now obsolete, having been superseded by "
8035 "Classless Inter-Domain Routing (CIDR), which divides addresses into network "
8036 "and host components at arbitrary bit (rather than byte) boundaries."
8037 msgstr ""
8038
8039 #. type: Plain text
8040 #: build/C/man3/inet.3:261
8041 msgid ""
8042 "An example of the use of B<inet_aton>()  and B<inet_ntoa>()  is shown "
8043 "below.  Here are some example runs:"
8044 msgstr ""
8045
8046 #. type: Plain text
8047 #: build/C/man3/inet.3:268
8048 #, no-wrap
8049 msgid ""
8050 "$B< ./a.out 226.000.000.037>      # Last byte is in octal\n"
8051 "226.0.0.31\n"
8052 "$B< ./a.out 0x7f.1         >      # First byte is in hex\n"
8053 "127.0.0.1\n"
8054 msgstr ""
8055
8056 #. type: Plain text
8057 #: build/C/man3/inet.3:277
8058 #, no-wrap
8059 msgid ""
8060 "#define _BSD_SOURCE\n"
8061 "#include E<lt>arpa/inet.hE<gt>\n"
8062 "#include E<lt>stdio.hE<gt>\n"
8063 "#include E<lt>stdlib.hE<gt>\n"
8064 msgstr ""
8065
8066 #. type: Plain text
8067 #: build/C/man3/inet.3:282
8068 #, no-wrap
8069 msgid ""
8070 "int\n"
8071 "main(int argc, char *argv[])\n"
8072 "{\n"
8073 "    struct in_addr addr;\n"
8074 msgstr ""
8075
8076 #. type: Plain text
8077 #: build/C/man3/inet.3:287
8078 #, no-wrap
8079 msgid ""
8080 "    if (argc != 2) {\n"
8081 "        fprintf(stderr, \"%s E<lt>dotted-addressE<gt>\\en\", argv[0]);\n"
8082 "        exit(EXIT_FAILURE);\n"
8083 "    }\n"
8084 msgstr ""
8085
8086 #. type: Plain text
8087 #: build/C/man3/inet.3:292
8088 #, no-wrap
8089 msgid ""
8090 "    if (inet_aton(argv[1], &addr) == 0) {\n"
8091 "        fprintf(stderr, \"Invalid address\\en\");\n"
8092 "        exit(EXIT_FAILURE);\n"
8093 "    }\n"
8094 msgstr ""
8095
8096 #. type: Plain text
8097 #: build/C/man3/inet.3:296
8098 #, no-wrap
8099 msgid ""
8100 "    printf(\"%s\\en\", inet_ntoa(addr));\n"
8101 "    exit(EXIT_SUCCESS);\n"
8102 "}\n"
8103 msgstr ""
8104
8105 #. type: Plain text
8106 #: build/C/man3/inet.3:307
8107 msgid ""
8108 "B<byteorder>(3), B<getaddrinfo>(3), B<gethostbyname>(3), B<getnameinfo>(3), "
8109 "B<getnetent>(3), B<inet_ntop>(3), B<inet_pton>(3), B<hosts>(5), "
8110 "B<networks>(5)"
8111 msgstr ""
8112
8113 #. type: TH
8114 #: build/C/man3/inet_ntop.3:26
8115 #, no-wrap
8116 msgid "INET_NTOP"
8117 msgstr ""
8118
8119 #. type: TH
8120 #: build/C/man3/inet_ntop.3:26
8121 #, no-wrap
8122 msgid "2008-11-11"
8123 msgstr ""
8124
8125 #. type: Plain text
8126 #: build/C/man3/inet_ntop.3:29
8127 msgid "inet_ntop - convert IPv4 and IPv6 addresses from binary to text form"
8128 msgstr ""
8129
8130 #. type: Plain text
8131 #: build/C/man3/inet_ntop.3:35
8132 #, no-wrap
8133 msgid ""
8134 "B<const char *inet_ntop(int >I<af>B<, const void *>I<src>B<,>\n"
8135 "B<                      char *>I<dst>B<, socklen_t >I<size>B<);>\n"
8136 msgstr ""
8137
8138 #. type: Plain text
8139 #: build/C/man3/inet_ntop.3:48
8140 msgid ""
8141 "This function converts the network address structure I<src> in the I<af> "
8142 "address family into a character string.  The resulting string is copied to "
8143 "the buffer pointed to by I<dst>, which must be a non-NULL pointer.  The "
8144 "caller specifies the number of bytes available in this buffer in the "
8145 "argument I<size>."
8146 msgstr ""
8147
8148 #. type: Plain text
8149 #: build/C/man3/inet_ntop.3:57
8150 msgid ""
8151 "B<inet_ntop>()  extends the B<inet_ntoa>(3)  function to support multiple "
8152 "address families, B<inet_ntoa>(3)  is now considered to be deprecated in "
8153 "favor of B<inet_ntop>().  The following address families are currently "
8154 "supported:"
8155 msgstr ""
8156
8157 #. type: Plain text
8158 #: build/C/man3/inet_ntop.3:70
8159 msgid ""
8160 "I<src> points to a I<struct in_addr> (in network byte order)  which is "
8161 "converted to an IPv4 network address in the dotted-decimal format, "
8162 "\"I<ddd.ddd.ddd.ddd>\".  The buffer I<dst> must be at least "
8163 "B<INET_ADDRSTRLEN> bytes long."
8164 msgstr ""
8165
8166 #. type: Plain text
8167 #: build/C/man3/inet_ntop.3:83
8168 msgid ""
8169 "I<src> points to a I<struct in6_addr> (in network byte order)  which is "
8170 "converted to a representation of this address in the most appropriate IPv6 "
8171 "network address format for this address.  The buffer I<dst> must be at least "
8172 "B<INET6_ADDRSTRLEN> bytes long."
8173 msgstr ""
8174
8175 #. type: Plain text
8176 #: build/C/man3/inet_ntop.3:91
8177 msgid ""
8178 "On success, B<inet_ntop>()  returns a non-NULL pointer to I<dst>.  NULL is "
8179 "returned if there was an error, with I<errno> set to indicate the error."
8180 msgstr ""
8181
8182 #. type: TP
8183 #: build/C/man3/inet_ntop.3:92
8184 #, no-wrap
8185 msgid "B<EAFNOSUPPORT>"
8186 msgstr ""
8187
8188 #. type: Plain text
8189 #: build/C/man3/inet_ntop.3:96
8190 msgid "I<af> was not a valid address family."
8191 msgstr ""
8192
8193 #. type: TP
8194 #: build/C/man3/inet_ntop.3:96
8195 #, no-wrap
8196 msgid "B<ENOSPC>"
8197 msgstr ""
8198
8199 #. type: Plain text
8200 #: build/C/man3/inet_ntop.3:100
8201 msgid "The converted address string would exceed the size given by I<size>."
8202 msgstr ""
8203
8204 #.  2.1.3: size_t, 2.1.91: socklen_t
8205 #. type: Plain text
8206 #: build/C/man3/inet_ntop.3:112
8207 msgid ""
8208 "POSIX.1-2001.  Note that RFC\\ 2553 defines a prototype where the last "
8209 "argument I<size> is of type I<size_t>.  Many systems follow RFC\\ 2553.  "
8210 "Glibc 2.0 and 2.1 have I<size_t>, but 2.2 and later have I<socklen_t>."
8211 msgstr ""
8212
8213 #. type: Plain text
8214 #: build/C/man3/inet_ntop.3:115
8215 msgid "B<AF_INET6> converts IPv4-mapped IPv6 addresses into an IPv6 format."
8216 msgstr ""
8217
8218 #. type: Plain text
8219 #: build/C/man3/inet_ntop.3:118
8220 msgid "See B<inet_pton>(3)."
8221 msgstr ""
8222
8223 #. type: Plain text
8224 #: build/C/man3/inet_ntop.3:122
8225 msgid "B<getnameinfo>(3), B<inet>(3), B<inet_pton>(3)"
8226 msgstr ""
8227
8228 #. type: TH
8229 #: build/C/man3/inet_pton.3:27
8230 #, no-wrap
8231 msgid "INET_PTON"
8232 msgstr ""
8233
8234 #. type: TH
8235 #: build/C/man3/inet_pton.3:27
8236 #, no-wrap
8237 msgid "2008-06-18"
8238 msgstr ""
8239
8240 #. type: Plain text
8241 #: build/C/man3/inet_pton.3:30
8242 msgid "inet_pton - convert IPv4 and IPv6 addresses from text to binary form"
8243 msgstr ""
8244
8245 #. type: Plain text
8246 #: build/C/man3/inet_pton.3:35
8247 #, no-wrap
8248 msgid "B<int inet_pton(int >I<af>B<, const char *>I<src>B<, void *>I<dst>B<);>\n"
8249 msgstr ""
8250
8251 #. type: Plain text
8252 #: build/C/man3/inet_pton.3:51
8253 msgid ""
8254 "This function converts the character string I<src> into a network address "
8255 "structure in the I<af> address family, then copies the network address "
8256 "structure to I<dst>.  The I<af> argument must be either B<AF_INET> or "
8257 "B<AF_INET6>."
8258 msgstr ""
8259
8260 #. type: Plain text
8261 #: build/C/man3/inet_pton.3:53
8262 msgid "The following address families are currently supported:"
8263 msgstr ""
8264
8265 #. type: Plain text
8266 #: build/C/man3/inet_pton.3:67
8267 msgid ""
8268 "I<src> points to a character string containing an IPv4 network address in "
8269 "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
8270 "number of up to three digits in the range 0 to 255.  The address is "
8271 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
8272 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
8273 msgstr ""
8274
8275 #. type: Plain text
8276 #: build/C/man3/inet_pton.3:79
8277 msgid ""
8278 "I<src> points to a character string containing an IPv6 network address.  The "
8279 "address is converted to a I<struct in6_addr> and copied to I<dst>, which "
8280 "must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long.  The allowed "
8281 "formats for IPv6 addresses follow these rules:"
8282 msgstr ""
8283
8284 #. type: IP
8285 #: build/C/man3/inet_pton.3:80
8286 #, no-wrap
8287 msgid "1."
8288 msgstr ""
8289
8290 #. type: Plain text
8291 #: build/C/man3/inet_pton.3:87
8292 msgid ""
8293 "The preferred format is I<x:x:x:x:x:x:x:x>.  This form consists of eight "
8294 "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> "
8295 "can be up to 4 hex digits)."
8296 msgstr ""
8297
8298 #. type: IP
8299 #: build/C/man3/inet_pton.3:87
8300 #, no-wrap
8301 msgid "2."
8302 msgstr ""
8303
8304 #. type: Plain text
8305 #: build/C/man3/inet_pton.3:100
8306 msgid ""
8307 "A series of contiguous zero values in the preferred format can be "
8308 "abbreviated to I<::>.  Only one instance of I<::> can occur in an address.  "
8309 "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as "
8310 "I<::1>.  The wildcard address, consisting of all zeros, can be written as "
8311 "I<::>."
8312 msgstr ""
8313
8314 #. type: IP
8315 #: build/C/man3/inet_pton.3:100
8316 #, no-wrap
8317 msgid "3."
8318 msgstr ""
8319
8320 #. type: Plain text
8321 #: build/C/man3/inet_pton.3:113
8322 msgid ""
8323 "An alternate format is useful for expressing IPv4-mapped IPv6 addresses.  "
8324 "This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s "
8325 "are hexadecimal values that define the six most-significant 16-bit pieces of "
8326 "the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal "
8327 "notation that defines the least significant 32 bits of the address.  An "
8328 "example of such an address is I<::FFFF:204.152.189.116>."
8329 msgstr ""
8330
8331 #. type: Plain text
8332 #: build/C/man3/inet_pton.3:116
8333 msgid "See RFC 2373 for further details on the representation of IPv6 addresses."
8334 msgstr ""
8335
8336 #. type: Plain text
8337 #: build/C/man3/inet_pton.3:129
8338 msgid ""
8339 "B<inet_pton>()  returns 1 on success (network address was successfully "
8340 "converted).  0 is returned if I<src> does not contain a character string "
8341 "representing a valid network address in the specified address family.  If "
8342 "I<af> does not contain a valid address family, -1 is returned and I<errno> "
8343 "is set to B<EAFNOSUPPORT>."
8344 msgstr ""
8345
8346 #. type: Plain text
8347 #: build/C/man3/inet_pton.3:150
8348 msgid ""
8349 "Unlike B<inet_aton>(3)  and B<inet_addr>(3), B<inet_pton>()  supports IPv6 "
8350 "addresses.  On the other hand, B<inet_pton>()  accepts only IPv4 addresses "
8351 "in dotted-decimal notation, whereas B<inet_aton>(3)  and B<inet_addr>(3)  "
8352 "allow the more general numbers-and-dots notation (hexadecimal and octal "
8353 "number formats, and formats that don't require all four bytes to be "
8354 "explicitly written).  For an interface that handles both IPv6 addresses, and "
8355 "IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)."
8356 msgstr ""
8357
8358 #. type: Plain text
8359 #: build/C/man3/inet_pton.3:156
8360 msgid ""
8361 "B<AF_INET6> does not recognize IPv4 addresses.  An explicit IPv4-mapped IPv6 "
8362 "address must be supplied in I<src> instead."
8363 msgstr ""
8364
8365 #. type: Plain text
8366 #: build/C/man3/inet_pton.3:162
8367 msgid ""
8368 "The program below demonstrates the use of B<inet_pton>()  and "
8369 "B<inet_ntop>(3).  Here are some example runs:"
8370 msgstr ""
8371
8372 #. type: Plain text
8373 #: build/C/man3/inet_pton.3:171
8374 #, no-wrap
8375 msgid ""
8376 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
8377 "::\n"
8378 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
8379 "1::8\n"
8380 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
8381 "::ffff:204.152.189.116\n"
8382 msgstr ""
8383
8384 #. type: Plain text
8385 #: build/C/man3/inet_pton.3:180
8386 #, no-wrap
8387 msgid ""
8388 "#include E<lt>arpa/inet.hE<gt>\n"
8389 "#include E<lt>stdio.hE<gt>\n"
8390 "#include E<lt>stdlib.hE<gt>\n"
8391 "#include E<lt>string.hE<gt>\n"
8392 msgstr ""
8393
8394 #. type: Plain text
8395 #: build/C/man3/inet_pton.3:187
8396 #, no-wrap
8397 msgid ""
8398 "int\n"
8399 "main(int argc, char *argv[])\n"
8400 "{\n"
8401 "    unsigned char buf[sizeof(struct in6_addr)];\n"
8402 "    int domain, s;\n"
8403 "    char str[INET6_ADDRSTRLEN];\n"
8404 msgstr ""
8405
8406 #. type: Plain text
8407 #: build/C/man3/inet_pton.3:192
8408 #, no-wrap
8409 msgid ""
8410 "    if (argc != 3) {\n"
8411 "        fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\en\", "
8412 "argv[0]);\n"
8413 "        exit(EXIT_FAILURE);\n"
8414 "    }\n"
8415 msgstr ""
8416
8417 #. type: Plain text
8418 #: build/C/man3/inet_pton.3:195
8419 #, no-wrap
8420 msgid ""
8421 "    domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
8422 "             (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
8423 msgstr ""
8424
8425 #. type: Plain text
8426 #: build/C/man3/inet_pton.3:204
8427 #, no-wrap
8428 msgid ""
8429 "    s = inet_pton(domain, argv[2], buf);\n"
8430 "    if (s E<lt>= 0) {\n"
8431 "        if (s == 0)\n"
8432 "            fprintf(stderr, \"Not in presentation format\");\n"
8433 "        else\n"
8434 "            perror(\"inet_pton\");\n"
8435 "        exit(EXIT_FAILURE);\n"
8436 "    }\n"
8437 msgstr ""
8438
8439 #. type: Plain text
8440 #: build/C/man3/inet_pton.3:209
8441 #, no-wrap
8442 msgid ""
8443 "    if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
8444 "        perror(\"inet_ntop\");\n"
8445 "        exit(EXIT_FAILURE);\n"
8446 "    }\n"
8447 msgstr ""
8448
8449 #. type: Plain text
8450 #: build/C/man3/inet_pton.3:211
8451 #, no-wrap
8452 msgid "    printf(\"%s\\en\", str);\n"
8453 msgstr ""
8454
8455 #. type: Plain text
8456 #: build/C/man3/inet_pton.3:219
8457 msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
8458 msgstr ""
8459
8460 #. type: TH
8461 #: build/C/man7/ip.7:36
8462 #, no-wrap
8463 msgid "IP"
8464 msgstr ""
8465
8466 #. type: TH
8467 #: build/C/man7/ip.7:36
8468 #, no-wrap
8469 msgid "2013-09-17"
8470 msgstr ""
8471
8472 #. type: Plain text
8473 #: build/C/man7/ip.7:39
8474 msgid "ip - Linux IPv4 protocol implementation"
8475 msgstr ""
8476
8477 #. type: Plain text
8478 #: build/C/man7/ip.7:45 build/C/man7/ipv6.7:93 build/C/man7/raw.7:20 build/C/man7/tcp.7:72 build/C/man7/udp.7:19
8479 msgid "B<#include E<lt>netinet/in.hE<gt>>"
8480 msgstr ""
8481
8482 #. type: Plain text
8483 #: build/C/man7/ip.7:47
8484 msgid "B<#include E<lt>netinet/ip.hE<gt> >/* superset of previous */"
8485 msgstr ""
8486
8487 #. type: Plain text
8488 #: build/C/man7/ip.7:49
8489 msgid "I<tcp_socket>B< = socket(AF_INET, SOCK_STREAM, 0);>"
8490 msgstr ""
8491
8492 #. type: Plain text
8493 #: build/C/man7/ip.7:51
8494 msgid "I<udp_socket>B< = socket(AF_INET, SOCK_DGRAM, 0);>"
8495 msgstr ""
8496
8497 #. type: Plain text
8498 #: build/C/man7/ip.7:53
8499 msgid "I<raw_socket>B< = socket(AF_INET, SOCK_RAW, >I<protocol>B<);>"
8500 msgstr ""
8501
8502 #.  FIXME has someone verified that 2.1 is really 1812 compliant?
8503 #. type: Plain text
8504 #: build/C/man7/ip.7:60
8505 msgid ""
8506 "Linux implements the Internet Protocol, version 4, described in RFC\\ 791 "
8507 "and RFC\\ 1122.  B<ip> contains a level 2 multicasting implementation "
8508 "conforming to RFC\\ 1112.  It also contains an IP router including a packet "
8509 "filter."
8510 msgstr ""
8511
8512 #. type: Plain text
8513 #: build/C/man7/ip.7:64
8514 msgid ""
8515 "The programming interface is BSD-sockets compatible.  For more information "
8516 "on sockets, see B<socket>(7)."
8517 msgstr ""
8518
8519 #. type: Plain text
8520 #: build/C/man7/ip.7:95
8521 msgid ""
8522 "An IP socket is created by calling the B<socket>(2)  function as "
8523 "B<socket(AF_INET, >I<socket_type>B<, >I<protocol>B<)>.  Valid socket types "
8524 "are B<SOCK_STREAM> to open a B<tcp>(7)  socket, B<SOCK_DGRAM> to open a "
8525 "B<udp>(7)  socket, or B<SOCK_RAW> to open a B<raw>(7)  socket to access the "
8526 "IP protocol directly.  I<protocol> is the IP protocol in the IP header to be "
8527 "received or sent.  The only valid values for I<protocol> are 0 and "
8528 "B<IPPROTO_TCP> for TCP sockets, and 0 and B<IPPROTO_UDP> for UDP sockets.  "
8529 "For B<SOCK_RAW> you may specify a valid IANA IP protocol defined in RFC\\ "
8530 "1700 assigned numbers."
8531 msgstr ""
8532
8533 #. type: Plain text
8534 #: build/C/man7/ip.7:117
8535 msgid ""
8536 "When a process wants to receive new incoming packets or connections, it "
8537 "should bind a socket to a local interface address using B<bind>(2).  In this "
8538 "case, only one IP socket may be bound to any given local (address, port) "
8539 "pair.  When B<INADDR_ANY> is specified in the bind call, the socket will be "
8540 "bound to I<all> local interfaces.  When B<listen>(2)  is called on an "
8541 "unbound socket, the socket is automatically bound to a random free port with "
8542 "the local address set to B<INADDR_ANY>.  When B<connect>(2)  is called on an "
8543 "unbound socket, the socket is automatically bound to a random free port or "
8544 "to a usable shared port with the local address set to B<INADDR_ANY>."
8545 msgstr ""
8546
8547 #. type: Plain text
8548 #: build/C/man7/ip.7:123
8549 msgid ""
8550 "A TCP local socket address that has been bound is unavailable for some time "
8551 "after closing, unless the B<SO_REUSEADDR> flag has been set.  Care should be "
8552 "taken when using this flag as it makes TCP less reliable."
8553 msgstr ""
8554
8555 #. type: Plain text
8556 #: build/C/man7/ip.7:134
8557 msgid ""
8558 "An IP socket address is defined as a combination of an IP interface address "
8559 "and a 16-bit port number.  The basic IP protocol does not supply port "
8560 "numbers, they are implemented by higher level protocols like B<udp>(7)  and "
8561 "B<tcp>(7).  On raw sockets I<sin_port> is set to the IP protocol."
8562 msgstr ""
8563
8564 #. type: Plain text
8565 #: build/C/man7/ip.7:142
8566 #, no-wrap
8567 msgid ""
8568 "struct sockaddr_in {\n"
8569 "    sa_family_t    sin_family; /* address family: AF_INET */\n"
8570 "    in_port_t      sin_port;   /* port in network byte order */\n"
8571 "    struct in_addr sin_addr;   /* internet address */\n"
8572 "};\n"
8573 msgstr ""
8574
8575 #. type: Plain text
8576 #: build/C/man7/ip.7:147
8577 #, no-wrap
8578 msgid ""
8579 "/* Internet address. */\n"
8580 "struct in_addr {\n"
8581 "    uint32_t       s_addr;     /* address in network byte order */\n"
8582 "};\n"
8583 msgstr ""
8584
8585 #. type: Plain text
8586 #: build/C/man7/ip.7:172
8587 msgid ""
8588 "I<sin_family> is always set to B<AF_INET>.  This is required; in Linux 2.2 "
8589 "most networking functions return B<EINVAL> when this setting is missing.  "
8590 "I<sin_port> contains the port in network byte order.  The port numbers below "
8591 "1024 are called I<privileged ports> (or sometimes: I<reserved ports>).  Only "
8592 "privileged processes (i.e., those having the B<CAP_NET_BIND_SERVICE> "
8593 "capability) may B<bind>(2)  to these sockets.  Note that the raw IPv4 "
8594 "protocol as such has no concept of a port, they are implemented only by "
8595 "higher protocols like B<tcp>(7)  and B<udp>(7)."
8596 msgstr ""
8597
8598 #. type: Plain text
8599 #: build/C/man7/ip.7:191
8600 msgid ""
8601 "I<sin_addr> is the IP host address.  The I<s_addr> member of I<struct "
8602 "in_addr> contains the host interface address in network byte order.  "
8603 "I<in_addr> should be assigned one of the B<INADDR_*> values (e.g., "
8604 "B<INADDR_ANY>)  or set using the B<inet_aton>(3), B<inet_addr>(3), "
8605 "B<inet_makeaddr>(3)  library functions or directly with the name resolver "
8606 "(see B<gethostbyname>(3))."
8607 msgstr ""
8608
8609 #.  Leave a loophole for XTP @)
8610 #. type: Plain text
8611 #: build/C/man7/ip.7:203
8612 msgid ""
8613 "IPv4 addresses are divided into unicast, broadcast and multicast addresses.  "
8614 "Unicast addresses specify a single interface of a host, broadcast addresses "
8615 "specify all hosts on a network and multicast addresses address all hosts in "
8616 "a multicast group.  Datagrams to broadcast addresses can be sent or received "
8617 "only when the B<SO_BROADCAST> socket flag is set.  In the current "
8618 "implementation, connection-oriented sockets are allowed to use only unicast "
8619 "addresses."
8620 msgstr ""
8621
8622 #. type: Plain text
8623 #: build/C/man7/ip.7:211
8624 msgid ""
8625 "Note that the address and the port are always stored in network byte order.  "
8626 "In particular, this means that you need to call B<htons>(3)  on the number "
8627 "that is assigned to a port.  All address/port manipulation functions in the "
8628 "standard library work in network byte order."
8629 msgstr ""
8630
8631 #. type: Plain text
8632 #: build/C/man7/ip.7:224
8633 msgid ""
8634 "There are several special addresses: B<INADDR_LOOPBACK> (127.0.0.1)  always "
8635 "refers to the local host via the loopback device; B<INADDR_ANY> (0.0.0.0)  "
8636 "means any address for binding; B<INADDR_BROADCAST> (255.255.255.255)  means "
8637 "any host and has the same effect on bind as B<INADDR_ANY> for historical "
8638 "reasons."
8639 msgstr ""
8640
8641 #.  or SOL_IP on Linux
8642 #. type: Plain text
8643 #: build/C/man7/ip.7:233
8644 msgid ""
8645 "IP supports some protocol-specific socket options that can be set with "
8646 "B<setsockopt>(2)  and read with B<getsockopt>(2).  The socket option level "
8647 "for IP is B<IPPROTO_IP>.  A boolean integer flag is zero when it is false, "
8648 "otherwise true."
8649 msgstr ""
8650
8651 #. type: TP
8652 #: build/C/man7/ip.7:233
8653 #, no-wrap
8654 msgid "B<IP_ADD_MEMBERSHIP> (since Linux 1.2)"
8655 msgstr ""
8656
8657 #. type: Plain text
8658 #: build/C/man7/ip.7:239
8659 msgid "Join a multicast group.  Argument is an I<ip_mreqn> structure."
8660 msgstr ""
8661
8662 #. type: Plain text
8663 #: build/C/man7/ip.7:249
8664 #, no-wrap
8665 msgid ""
8666 "struct ip_mreqn {\n"
8667 "    struct in_addr imr_multiaddr; /* IP multicast group\n"
8668 "                                     address */\n"
8669 "    struct in_addr imr_address;   /* IP address of local\n"
8670 "                                     interface */\n"
8671 "    int            imr_ifindex;   /* interface index */\n"
8672 "};\n"
8673 msgstr ""
8674
8675 #.  (i.e., within the 224.0.0.0-239.255.255.255 range)
8676 #. type: Plain text
8677 #: build/C/man7/ip.7:270
8678 msgid ""
8679 "I<imr_multiaddr> contains the address of the multicast group the application "
8680 "wants to join or leave.  It must be a valid multicast address (or "
8681 "B<setsockopt>(2)  fails with the error B<EINVAL>).  I<imr_address> is the "
8682 "address of the local interface with which the system should join the "
8683 "multicast group; if it is equal to B<INADDR_ANY> an appropriate interface is "
8684 "chosen by the system.  I<imr_ifindex> is the interface index of the "
8685 "interface that should join/leave the I<imr_multiaddr> group, or 0 to "
8686 "indicate any interface."
8687 msgstr ""
8688
8689 #. type: Plain text
8690 #: build/C/man7/ip.7:285
8691 msgid ""
8692 "The I<ip_mreqn> structure is available only since Linux 2.2.  For "
8693 "compatibility, the old I<ip_mreq> structure (present since Linux 1.2) is "
8694 "still supported; it differs from I<ip_mreqn> only by not including the "
8695 "I<imr_ifindex> field.  Only valid as a B<setsockopt>(2)."
8696 msgstr ""
8697
8698 #. type: TP
8699 #: build/C/man7/ip.7:285
8700 #, no-wrap
8701 msgid "B<IP_ADD_SOURCE_MEMBERSHIP> (since Linux 2.4.22 / 2.5.68)"
8702 msgstr ""
8703
8704 #. type: Plain text
8705 #: build/C/man7/ip.7:292
8706 msgid ""
8707 "Join a multicast group and allow receiving data only from a specified "
8708 "source.  Argument is an I<ip_mreq_source> structure."
8709 msgstr ""
8710
8711 #. type: Plain text
8712 #: build/C/man7/ip.7:303
8713 #, no-wrap
8714 msgid ""
8715 "struct ip_mreq_source {\n"
8716 "    struct in_addr imr_multiaddr;  /* IP multicast group\n"
8717 "                                      address */\n"
8718 "    struct in_addr imr_interface;  /* IP address of local\n"
8719 "                                      interface */\n"
8720 "    struct in_addr imr_sourceaddr; /* IP address of\n"
8721 "                                      multicast source */\n"
8722 "};\n"
8723 msgstr ""
8724
8725 #. type: Plain text
8726 #: build/C/man7/ip.7:324
8727 msgid ""
8728 "The I<ip_mreq_source> structure is similar to I<ip_mreqn> described under "
8729 "B<IP_ADD_MEMBERSIP>.  The I<imr_multiaddr> field contains the address of the "
8730 "multicast group the application wants to join or leave.  The "
8731 "I<imr_interface> field is the address of the local interface with which the "
8732 "system should join the multicast group.  Finally, the I<imr_sourceaddr> "
8733 "field contains the address of the source the application wants to receive "
8734 "data from."
8735 msgstr ""
8736
8737 #. type: Plain text
8738 #: build/C/man7/ip.7:327
8739 msgid ""
8740 "This option can be used multiple times to allow receiving data from more "
8741 "than one source."
8742 msgstr ""
8743
8744 #. type: TP
8745 #: build/C/man7/ip.7:327
8746 #, no-wrap
8747 msgid "B<IP_BLOCK_SOURCE> (since Linux 2.4.22 / 2.5.68)"
8748 msgstr ""
8749
8750 #. type: Plain text
8751 #: build/C/man7/ip.7:335
8752 msgid ""
8753 "Stop receiving multicast data from a specific source in a given group.  This "
8754 "is valid only after the application has subscribed to the multicast group "
8755 "using either B<IP_ADD_MEMBERSHIP> or B<IP_ADD_SOURCE_MEMBERSHIP>."
8756 msgstr ""
8757
8758 #. type: Plain text
8759 #: build/C/man7/ip.7:340 build/C/man7/ip.7:362 build/C/man7/ip.7:923
8760 msgid ""
8761 "Argument is an I<ip_mreq_source> structure as described under "
8762 "B<IP_ADD_SOURCE_MEMBERSHIP>."
8763 msgstr ""
8764
8765 #. type: TP
8766 #: build/C/man7/ip.7:340
8767 #, no-wrap
8768 msgid "B<IP_DROP_MEMBERSHIP> (since Linux 1.2)"
8769 msgstr ""
8770
8771 #. type: Plain text
8772 #: build/C/man7/ip.7:349
8773 msgid ""
8774 "Leave a multicast group.  Argument is an I<ip_mreqn> or I<ip_mreq> structure "
8775 "similar to B<IP_ADD_MEMBERSHIP>."
8776 msgstr ""
8777
8778 #. type: TP
8779 #: build/C/man7/ip.7:349
8780 #, no-wrap
8781 msgid "B<IP_DROP_SOURCE_MEMBERSHIP> (since Linux 2.4.22 / 2.5.68)"
8782 msgstr ""
8783
8784 #. type: Plain text
8785 #: build/C/man7/ip.7:357
8786 msgid ""
8787 "Leave a source-specific group\\(emthat is, stop receiving data from a given "
8788 "multicast group that come from a given source.  If the application has "
8789 "subscribed to multiple sources within the same group, data from the "
8790 "remaining sources will still be delivered.  To stop receiving data from all "
8791 "sources at once, use B<IP_LEAVE_GROUP>."
8792 msgstr ""
8793
8794 #. type: TP
8795 #: build/C/man7/ip.7:362
8796 #, no-wrap
8797 msgid "B<IP_FREEBIND> (since Linux 2.4)"
8798 msgstr ""
8799
8800 #.  Precisely: 2.4.0-test10
8801 #. type: Plain text
8802 #: build/C/man7/ip.7:375
8803 msgid ""
8804 "If enabled, this boolean option allows binding to an IP address that is "
8805 "nonlocal or does not (yet) exist.  This permits listening on a socket, "
8806 "without requiring the underlying network interface or the specified dynamic "
8807 "IP address to be up at the time that the application is trying to bind to "
8808 "it.  This option is the per-socket equivalent of the I<ip_nonlocal_bind> "
8809 "I</proc> interface described below."
8810 msgstr ""
8811
8812 #. type: TP
8813 #: build/C/man7/ip.7:375
8814 #, no-wrap
8815 msgid "B<IP_HDRINCL> (since Linux 2.0)"
8816 msgstr ""
8817
8818 #. type: Plain text
8819 #: build/C/man7/ip.7:391
8820 msgid ""
8821 "If enabled, the user supplies an IP header in front of the user data.  Only "
8822 "valid for B<SOCK_RAW> sockets.  See B<raw>(7)  for more information.  When "
8823 "this flag is enabled the values set by B<IP_OPTIONS>, B<IP_TTL> and "
8824 "B<IP_TOS> are ignored."
8825 msgstr ""
8826
8827 #. type: TP
8828 #: build/C/man7/ip.7:391
8829 #, no-wrap
8830 msgid "B<IP_MSFILTER> (since Linux 2.4.22 / 2.5.68)"
8831 msgstr ""
8832
8833 #. type: Plain text
8834 #: build/C/man7/ip.7:397
8835 msgid ""
8836 "This option provides access to the advanced full-state filtering API.  "
8837 "Argument is an I<ip_msfilter> structure."
8838 msgstr ""
8839
8840 #. type: Plain text
8841 #: build/C/man7/ip.7:406
8842 #, no-wrap
8843 msgid ""
8844 "struct ip_msfilter {\n"
8845 "    struct in_addr imsf_multiaddr; /* IP multicast group\n"
8846 "                                      address */\n"
8847 "    struct in_addr imsf_interface; /* IP address of local\n"
8848 "                                      interface */\n"
8849 "    uint32_t       imsf_fmode;     /* Filter-mode */\n"
8850 msgstr ""
8851
8852 #. type: Plain text
8853 #: build/C/man7/ip.7:412
8854 #, no-wrap
8855 msgid ""
8856 "    uint32_t       imsf_numsrc;    /* Number of sources in\n"
8857 "                                      the following array */\n"
8858 "    struct in_addr imsf_slist[1];  /* Array of source\n"
8859 "                                      addresses */\n"
8860 "};\n"
8861 msgstr ""
8862
8863 #. type: Plain text
8864 #: build/C/man7/ip.7:427
8865 msgid ""
8866 "There are two macros, B<MCAST_INCLUDE> and B<MCAST_EXCLUDE>, which can be "
8867 "used to specify the filtering mode.  Additionally, the "
8868 "B<IP_MSFILTER_SIZE>(n)  macro exists to determine how much memory is needed "
8869 "to store I<ip_msfilter> structure with I<n> sources in the source list."
8870 msgstr ""
8871
8872 #. type: Plain text
8873 #: build/C/man7/ip.7:430
8874 msgid "For the full description of multicast source filtering refer to RFC 3376."
8875 msgstr ""
8876
8877 #. type: TP
8878 #: build/C/man7/ip.7:430
8879 #, no-wrap
8880 msgid "B<IP_MTU> (since Linux 2.2)"
8881 msgstr ""
8882
8883 #.  Precisely: 2.1.124
8884 #. type: Plain text
8885 #: build/C/man7/ip.7:438
8886 msgid ""
8887 "Retrieve the current known path MTU of the current socket.  Valid only when "
8888 "the socket has been connected.  Returns an integer.  Only valid as a "
8889 "B<getsockopt>(2)."
8890 msgstr ""
8891
8892 #. type: TP
8893 #: build/C/man7/ip.7:438
8894 #, no-wrap
8895 msgid "B<IP_MTU_DISCOVER> (since Linux 2.2)"
8896 msgstr ""
8897
8898 #.  Precisely: 2.1.124
8899 #. type: Plain text
8900 #: build/C/man7/ip.7:459
8901 msgid ""
8902 "Set or receive the Path MTU Discovery setting for a socket.  When enabled, "
8903 "Linux will perform Path MTU Discovery as defined in RFC\\ 1191 on "
8904 "B<SOCK_STREAM> sockets.  For non-B<SOCK_STREAM> sockets, B<IP_PMTUDISC_DO> "
8905 "forces the don't-fragment flag to be set on all outgoing packets.  It is the "
8906 "user's responsibility to packetize the data in MTU-sized chunks and to do "
8907 "the retransmits if necessary.  The kernel will reject (with B<EMSGSIZE>)  "
8908 "datagrams that are bigger than the known path MTU.  B<IP_PMTUDISC_WANT> will "
8909 "fragment a datagram if needed according to the path MTU, or will set the "
8910 "don't-fragment flag otherwise."
8911 msgstr ""
8912
8913 #. type: Plain text
8914 #: build/C/man7/ip.7:467
8915 msgid ""
8916 "The system-wide default can be toggled between B<IP_PMTUDISC_WANT> and "
8917 "B<IP_PMTUDISC_DONT> by writing (respectively, zero and nonzero values) to "
8918 "the I</proc/sys/net/ipv4/ip_no_pmtu_disc> file."
8919 msgstr ""
8920
8921 #. type: tbl table
8922 #: build/C/man7/ip.7:471
8923 #, no-wrap
8924 msgid "Path MTU discovery value:Meaning\n"
8925 msgstr ""
8926
8927 #. type: tbl table
8928 #: build/C/man7/ip.7:472
8929 #, no-wrap
8930 msgid "IP_PMTUDISC_WANT:Use per-route settings.\n"
8931 msgstr ""
8932
8933 #. type: tbl table
8934 #: build/C/man7/ip.7:473
8935 #, no-wrap
8936 msgid "IP_PMTUDISC_DONT:Never do Path MTU Discovery.\n"
8937 msgstr ""
8938
8939 #. type: tbl table
8940 #: build/C/man7/ip.7:474
8941 #, no-wrap
8942 msgid "IP_PMTUDISC_DO:Always do Path MTU Discovery.\n"
8943 msgstr ""
8944
8945 #. type: tbl table
8946 #: build/C/man7/ip.7:475
8947 #, no-wrap
8948 msgid "IP_PMTUDISC_PROBE:Set DF but ignore Path MTU.\n"
8949 msgstr ""
8950
8951 #. type: Plain text
8952 #: build/C/man7/ip.7:493
8953 msgid ""
8954 "When PMTU discovery is enabled, the kernel automatically keeps track of the "
8955 "path MTU per destination host.  When it is connected to a specific peer with "
8956 "B<connect>(2), the currently known path MTU can be retrieved conveniently "
8957 "using the B<IP_MTU> socket option (e.g., after an B<EMSGSIZE> error "
8958 "occurred).  The path MTU may change over time.  For connectionless sockets "
8959 "with many destinations, the new MTU for a given destination can also be "
8960 "accessed using the error queue (see B<IP_RECVERR>).  A new error will be "
8961 "queued for every incoming MTU update."
8962 msgstr ""
8963
8964 #. type: Plain text
8965 #: build/C/man7/ip.7:498
8966 msgid ""
8967 "While MTU discovery is in progress, initial packets from datagram sockets "
8968 "may be dropped.  Applications using UDP should be aware of this and not take "
8969 "it into account for their packet retransmit strategy."
8970 msgstr ""
8971
8972 #.  FIXME this is an ugly hack
8973 #. type: Plain text
8974 #: build/C/man7/ip.7:503
8975 msgid ""
8976 "To bootstrap the path MTU discovery process on unconnected sockets, it is "
8977 "possible to start with a big datagram size (up to 64K-headers bytes long) "
8978 "and let it shrink by updates of the path MTU."
8979 msgstr ""
8980
8981 #. type: Plain text
8982 #: build/C/man7/ip.7:512
8983 msgid ""
8984 "To get an initial estimate of the path MTU, connect a datagram socket to the "
8985 "destination address using B<connect>(2)  and retrieve the MTU by calling "
8986 "B<getsockopt>(2)  with the B<IP_MTU> option."
8987 msgstr ""
8988
8989 #. type: Plain text
8990 #: build/C/man7/ip.7:524
8991 msgid ""
8992 "It is possible to implement RFC 4821 MTU probing with B<SOCK_DGRAM> or "
8993 "B<SOCK_RAW> sockets by setting a value of B<IP_PMTUDISC_PROBE> (available "
8994 "since Linux 2.6.22).  This is also particularly useful for diagnostic tools "
8995 "such as B<tracepath>(8)  that wish to deliberately send probe packets larger "
8996 "than the observed Path MTU."
8997 msgstr ""
8998
8999 #. type: TP
9000 #: build/C/man7/ip.7:524
9001 #, no-wrap
9002 msgid "B<IP_MULTICAST_ALL> (since Linux 2.6.31)"
9003 msgstr ""
9004
9005 #. type: Plain text
9006 #: build/C/man7/ip.7:538
9007 msgid ""
9008 "This option can be used to modify the delivery policy of multicast messages "
9009 "to sockets bound to the wildcard B<INADDR_ANY> address.  The argument is a "
9010 "boolean integer (defaults to 1).  If set to 1, the socket will receive "
9011 "messages from all the groups that have been joined globally on the whole "
9012 "system.  Otherwise, it will deliver messages only from the groups that have "
9013 "been explicitly joined (for example via the B<IP_ADD_MEMBERSHIP> option) on "
9014 "this particular socket."
9015 msgstr ""
9016
9017 #. type: TP
9018 #: build/C/man7/ip.7:538
9019 #, no-wrap
9020 msgid "B<IP_MULTICAST_IF> (since Linux 1.2)"
9021 msgstr ""
9022
9023 #.  net: IP_MULTICAST_IF setsockopt now recognizes struct mreq
9024 #.  Commit: 3a084ddb4bf299a6e898a9a07c89f3917f0713f7
9025 #. type: Plain text
9026 #: build/C/man7/ip.7:550
9027 msgid ""
9028 "Set the local device for a multicast socket.  Argument is an I<ip_mreqn> or "
9029 "I<ip_mreq> (since Linux 3.5)  structure similar to B<IP_ADD_MEMBERSHIP>."
9030 msgstr ""
9031
9032 #. type: Plain text
9033 #: build/C/man7/ip.7:554
9034 msgid "When an invalid socket option is passed, B<ENOPROTOOPT> is returned."
9035 msgstr ""
9036
9037 #. type: TP
9038 #: build/C/man7/ip.7:554
9039 #, no-wrap
9040 msgid "B<IP_MULTICAST_LOOP> (since Linux 1.2)"
9041 msgstr ""
9042
9043 #. type: Plain text
9044 #: build/C/man7/ip.7:558
9045 msgid ""
9046 "Set or read a boolean integer argument that determines whether sent "
9047 "multicast packets should be looped back to the local sockets."
9048 msgstr ""
9049
9050 #. type: TP
9051 #: build/C/man7/ip.7:558
9052 #, no-wrap
9053 msgid "B<IP_MULTICAST_TTL> (since Linux 1.2)"
9054 msgstr ""
9055
9056 #. type: Plain text
9057 #: build/C/man7/ip.7:566
9058 msgid ""
9059 "Set or read the time-to-live value of outgoing multicast packets for this "
9060 "socket.  It is very important for multicast packets to set the smallest TTL "
9061 "possible.  The default is 1 which means that multicast packets don't leave "
9062 "the local network unless the user program explicitly requests it.  Argument "
9063 "is an integer."
9064 msgstr ""
9065
9066 #. type: TP
9067 #: build/C/man7/ip.7:566
9068 #, no-wrap
9069 msgid "B<IP_NODEFRAG> (since Linux 2.6.36)"
9070 msgstr ""
9071
9072 #. type: Plain text
9073 #: build/C/man7/ip.7:574
9074 msgid ""
9075 "If enabled (argument is nonzero), the reassembly of outgoing packets is "
9076 "disabled in the netfilter layer.  This option is valid only for B<SOCK_RAW> "
9077 "sockets.  The argument is an integer."
9078 msgstr ""
9079
9080 #. type: TP
9081 #: build/C/man7/ip.7:574
9082 #, no-wrap
9083 msgid "B<IP_OPTIONS> (since Linux 2.0)"
9084 msgstr ""
9085
9086 #.  Precisely: 1.3.30
9087 #. type: Plain text
9088 #: build/C/man7/ip.7:603
9089 msgid ""
9090 "Set or get the IP options to be sent with every packet from this socket.  "
9091 "The arguments are a pointer to a memory buffer containing the options and "
9092 "the option length.  The B<setsockopt>(2)  call sets the IP options "
9093 "associated with a socket.  The maximum option size for IPv4 is 40 bytes.  "
9094 "See RFC\\ 791 for the allowed options.  When the initial connection request "
9095 "packet for a B<SOCK_STREAM> socket contains IP options, the IP options will "
9096 "be set automatically to the options from the initial packet with routing "
9097 "headers reversed.  Incoming packets are not allowed to change options after "
9098 "the connection is established.  The processing of all incoming source "
9099 "routing options is disabled by default and can be enabled by using the "
9100 "I<accept_source_route> I</proc> interface.  Other options like timestamps "
9101 "are still handled.  For datagram sockets, IP options can be only set by the "
9102 "local user.  Calling B<getsockopt>(2)  with B<IP_OPTIONS> puts the current "
9103 "IP options used for sending into the supplied buffer."
9104 msgstr ""
9105
9106 #. type: TP
9107 #: build/C/man7/ip.7:603
9108 #, no-wrap
9109 msgid "B<IP_PKTINFO> (since Linux 2.2)"
9110 msgstr ""
9111
9112 #.  Precisely: 2.1.68
9113 #. type: Plain text
9114 #: build/C/man7/ip.7:620
9115 msgid ""
9116 "Pass an B<IP_PKTINFO> ancillary message that contains a I<pktinfo> structure "
9117 "that supplies some information about the incoming packet.  This only works "
9118 "for datagram oriented sockets.  The argument is a flag that tells the socket "
9119 "whether the B<IP_PKTINFO> message should be passed or not.  The message "
9120 "itself can only be sent/retrieved as control message with a packet using "
9121 "B<recvmsg>(2)  or B<sendmsg>(2)."
9122 msgstr ""
9123
9124 #. type: Plain text
9125 #: build/C/man7/ip.7:629
9126 #, no-wrap
9127 msgid ""
9128 "struct in_pktinfo {\n"
9129 "    unsigned int   ipi_ifindex;  /* Interface index */\n"
9130 "    struct in_addr ipi_spec_dst; /* Local address */\n"
9131 "    struct in_addr ipi_addr;     /* Header Destination\n"
9132 "                                    address */\n"
9133 "};\n"
9134 msgstr ""
9135
9136 #.  FIXME elaborate on that.
9137 #.  This field is grossly misnamed
9138 #. type: Plain text
9139 #: build/C/man7/ip.7:654
9140 msgid ""
9141 "I<ipi_ifindex> is the unique index of the interface the packet was received "
9142 "on.  I<ipi_spec_dst> is the local address of the packet and I<ipi_addr> is "
9143 "the destination address in the packet header.  If B<IP_PKTINFO> is passed to "
9144 "B<sendmsg>(2)  and I<ipi_spec_dst> is not zero, then it is used as the local "
9145 "source address for the routing table lookup and for setting up IP source "
9146 "route options.  When I<ipi_ifindex> is not zero, the primary local address "
9147 "of the interface specified by the index overwrites I<ipi_spec_dst> for the "
9148 "routing table lookup."
9149 msgstr ""
9150
9151 #. type: TP
9152 #: build/C/man7/ip.7:654
9153 #, no-wrap
9154 msgid "B<IP_RECVERR> (since Linux 2.2)"
9155 msgstr ""
9156
9157 #.  Precisely: 2.1.15
9158 #.  or SOL_IP on Linux
9159 #. type: Plain text
9160 #: build/C/man7/ip.7:676
9161 msgid ""
9162 "Enable extended reliable error message passing.  When enabled on a datagram "
9163 "socket, all generated errors will be queued in a per-socket error queue.  "
9164 "When the user receives an error from a socket operation, the errors can be "
9165 "received by calling B<recvmsg>(2)  with the B<MSG_ERRQUEUE> flag set.  The "
9166 "I<sock_extended_err> structure describing the error will be passed in an "
9167 "ancillary message with the type B<IP_RECVERR> and the level B<IPPROTO_IP>.  "
9168 "This is useful for reliable error handling on unconnected sockets.  The "
9169 "received data portion of the error queue contains the error packet."
9170 msgstr ""
9171
9172 #. type: Plain text
9173 #: build/C/man7/ip.7:682
9174 msgid "The B<IP_RECVERR> control message contains a I<sock_extended_err> structure:"
9175 msgstr ""
9176
9177 #. type: Plain text
9178 #: build/C/man7/ip.7:690
9179 #, no-wrap
9180 msgid ""
9181 "#define SO_EE_ORIGIN_NONE    0\n"
9182 "#define SO_EE_ORIGIN_LOCAL   1\n"
9183 "#define SO_EE_ORIGIN_ICMP    2\n"
9184 "#define SO_EE_ORIGIN_ICMP6   3\n"
9185 msgstr ""
9186
9187 #. type: Plain text
9188 #: build/C/man7/ip.7:701
9189 #, no-wrap
9190 msgid ""
9191 "struct sock_extended_err {\n"
9192 "    uint32_t ee_errno;   /* error number */\n"
9193 "    uint8_t  ee_origin;  /* where the error originated */\n"
9194 "    uint8_t  ee_type;    /* type */\n"
9195 "    uint8_t  ee_code;    /* code */\n"
9196 "    uint8_t  ee_pad;\n"
9197 "    uint32_t ee_info;    /* additional information */\n"
9198 "    uint32_t ee_data;    /* other data */\n"
9199 "    /* More data may follow */\n"
9200 "};\n"
9201 msgstr ""
9202
9203 #. type: Plain text
9204 #: build/C/man7/ip.7:703
9205 #, no-wrap
9206 msgid "struct sockaddr *SO_EE_OFFENDER(struct sock_extended_err *);\n"
9207 msgstr ""
9208
9209 #. type: Plain text
9210 #: build/C/man7/ip.7:726
9211 msgid ""
9212 "I<ee_errno> contains the I<errno> number of the queued error.  I<ee_origin> "
9213 "is the origin code of where the error originated.  The other fields are "
9214 "protocol-specific.  The macro B<SO_EE_OFFENDER> returns a pointer to the "
9215 "address of the network object where the error originated from given a "
9216 "pointer to the ancillary message.  If this address is not known, the "
9217 "I<sa_family> member of the I<sockaddr> contains B<AF_UNSPEC> and the other "
9218 "fields of the I<sockaddr> are undefined."
9219 msgstr ""
9220
9221 #.  FIXME . Is it a good idea to document that? It is a dubious feature.
9222 #.  On
9223 #.  .B SOCK_STREAM
9224 #.  sockets,
9225 #.  .B IP_RECVERR
9226 #.  has slightly different semantics. Instead of
9227 #.  saving the errors for the next timeout, it passes all incoming
9228 #.  errors immediately to the user.
9229 #.  This might be useful for very short-lived TCP connections which
9230 #.  need fast error handling. Use this option with care:
9231 #.  it makes TCP unreliable
9232 #.  by not allowing it to recover properly from routing
9233 #.  shifts and other normal
9234 #.  conditions and breaks the protocol specification.
9235 #. type: Plain text
9236 #: build/C/man7/ip.7:785
9237 msgid ""
9238 "IP uses the I<sock_extended_err> structure as follows: I<ee_origin> is set "
9239 "to B<SO_EE_ORIGIN_ICMP> for errors received as an ICMP packet, or "
9240 "B<SO_EE_ORIGIN_LOCAL> for locally generated errors.  Unknown values should "
9241 "be ignored.  I<ee_type> and I<ee_code> are set from the type and code fields "
9242 "of the ICMP header.  I<ee_info> contains the discovered MTU for B<EMSGSIZE> "
9243 "errors.  The message also contains the I<sockaddr_in of the node> caused the "
9244 "error, which can be accessed with the B<SO_EE_OFFENDER> macro.  The "
9245 "I<sin_family> field of the B<SO_EE_OFFENDER> address is B<AF_UNSPEC> when "
9246 "the source was unknown.  When the error originated from the network, all IP "
9247 "options (B<IP_OPTIONS>, B<IP_TTL>, etc.) enabled on the socket and contained "
9248 "in the error packet are passed as control messages.  The payload of the "
9249 "packet causing the error is returned as normal payload.  Note that TCP has "
9250 "no error queue; B<MSG_ERRQUEUE> is not permitted on B<SOCK_STREAM> sockets.  "
9251 "B<IP_RECVERR> is valid for TCP, but all errors are returned by socket "
9252 "function return or B<SO_ERROR> only."
9253 msgstr ""
9254
9255 #. type: Plain text
9256 #: build/C/man7/ip.7:790
9257 msgid ""
9258 "For raw sockets, B<IP_RECVERR> enables passing of all received ICMP errors "
9259 "to the application, otherwise errors are only reported on connected sockets"
9260 msgstr ""
9261
9262 #. type: Plain text
9263 #: build/C/man7/ip.7:794
9264 msgid ""
9265 "It sets or retrieves an integer boolean flag.  B<IP_RECVERR> defaults to "
9266 "off."
9267 msgstr ""
9268
9269 #. type: TP
9270 #: build/C/man7/ip.7:794
9271 #, no-wrap
9272 msgid "B<IP_RECVOPTS> (since Linux 2.2)"
9273 msgstr ""
9274
9275 #.  Precisely: 2.1.15
9276 #. type: Plain text
9277 #: build/C/man7/ip.7:805
9278 msgid ""
9279 "Pass all incoming IP options to the user in a B<IP_OPTIONS> control "
9280 "message.  The routing header and other options are already filled in for the "
9281 "local host.  Not supported for B<SOCK_STREAM> sockets."
9282 msgstr ""
9283
9284 #. type: TP
9285 #: build/C/man7/ip.7:805
9286 #, no-wrap
9287 msgid "B<IP_RECVORIGDSTADDR> (since Linux 2.6.29)"
9288 msgstr ""
9289
9290 #.  commit e8b2dfe9b4501ed0047459b2756ba26e5a940a69
9291 #. type: Plain text
9292 #: build/C/man7/ip.7:816
9293 msgid ""
9294 "This boolean option enables the B<IP_ORIGDSTADDR> ancillary message in "
9295 "B<recvmsg>(2), in which the kernel returns the original destination address "
9296 "of the datagram being received.  The ancillary message contains a I<struct "
9297 "sockaddr_in>."
9298 msgstr ""
9299
9300 #. type: TP
9301 #: build/C/man7/ip.7:816
9302 #, no-wrap
9303 msgid "B<IP_RECVTOS> (since Linux 2.2)"
9304 msgstr ""
9305
9306 #.  Precisely: 2.1.68
9307 #. type: Plain text
9308 #: build/C/man7/ip.7:825
9309 msgid ""
9310 "If enabled the B<IP_TOS> ancillary message is passed with incoming packets.  "
9311 "It contains a byte which specifies the Type of Service/Precedence field of "
9312 "the packet header.  Expects a boolean integer flag."
9313 msgstr ""
9314
9315 #. type: TP
9316 #: build/C/man7/ip.7:825
9317 #, no-wrap
9318 msgid "B<IP_RECVTTL> (since Linux 2.2)"
9319 msgstr ""
9320
9321 #.  Precisely: 2.1.68
9322 #. type: Plain text
9323 #: build/C/man7/ip.7:835
9324 msgid ""
9325 "When this flag is set, pass a B<IP_TTL> control message with the time to "
9326 "live field of the received packet as a byte.  Not supported for "
9327 "B<SOCK_STREAM> sockets."
9328 msgstr ""
9329
9330 #. type: TP
9331 #: build/C/man7/ip.7:835
9332 #, no-wrap
9333 msgid "B<IP_RETOPTS> (since Linux 2.2)"
9334 msgstr ""
9335
9336 #.  Precisely: 2.1.15
9337 #. type: Plain text
9338 #: build/C/man7/ip.7:842
9339 msgid ""
9340 "Identical to B<IP_RECVOPTS>, but returns raw unprocessed options with "
9341 "timestamp and route record options not filled in for this hop."
9342 msgstr ""
9343
9344 #. type: TP
9345 #: build/C/man7/ip.7:842
9346 #, no-wrap
9347 msgid "B<IP_ROUTER_ALERT> (since Linux 2.2)"
9348 msgstr ""
9349
9350 #.  Precisely: 2.1.68
9351 #. type: Plain text
9352 #: build/C/man7/ip.7:854
9353 msgid ""
9354 "Pass all to-be forwarded packets with the IP Router Alert option set to this "
9355 "socket.  Only valid for raw sockets.  This is useful, for instance, for "
9356 "user-space RSVP daemons.  The tapped packets are not forwarded by the "
9357 "kernel; it is the user's responsibility to send them out again.  Socket "
9358 "binding is ignored, such packets are only filtered by protocol.  Expects an "
9359 "integer flag."
9360 msgstr ""
9361
9362 #. type: TP
9363 #: build/C/man7/ip.7:854
9364 #, no-wrap
9365 msgid "B<IP_TOS> (since Linux 1.0)"
9366 msgstr ""
9367
9368 #.  FIXME elaborate on this
9369 #.  Needs CAP_NET_ADMIN
9370 #.  Boolean
9371 #.  Since Linux 2.6.27
9372 #.  Author: KOVACS Krisztian <hidden@sch.bme.hu>
9373 #.  http://lwn.net/Articles/252545/
9374 #. type: Plain text
9375 #: build/C/man7/ip.7:888
9376 msgid ""
9377 "Set or receive the Type-Of-Service (TOS) field that is sent with every IP "
9378 "packet originating from this socket.  It is used to prioritize packets on "
9379 "the network.  TOS is a byte.  There are some standard TOS flags defined: "
9380 "B<IPTOS_LOWDELAY> to minimize delays for interactive traffic, "
9381 "B<IPTOS_THROUGHPUT> to optimize throughput, B<IPTOS_RELIABILITY> to optimize "
9382 "for reliability, B<IPTOS_MINCOST> should be used for \"filler data\" where "
9383 "slow transmission doesn't matter.  At most one of these TOS values can be "
9384 "specified.  Other bits are invalid and shall be cleared.  Linux sends "
9385 "B<IPTOS_LOWDELAY> datagrams first by default, but the exact behavior depends "
9386 "on the configured queueing discipline.  Some high priority levels may "
9387 "require superuser privileges (the B<CAP_NET_ADMIN> capability).  The "
9388 "priority can also be set in a protocol independent way by the "
9389 "(B<SOL_SOCKET>, B<SO_PRIORITY>)  socket option (see B<socket>(7))."
9390 msgstr ""
9391
9392 #. type: TP
9393 #: build/C/man7/ip.7:888
9394 #, no-wrap
9395 msgid "B<IP_TRANSPARENT> (since Linux 2.6.24)"
9396 msgstr ""
9397
9398 #.  commit f5715aea4564f233767ea1d944b2637a5fd7cd2e
9399 #.      This patch introduces the IP_TRANSPARENT socket option: enabling that
9400 #.      will make the IPv4 routing omit the non-local source address check on
9401 #.      output. Setting IP_TRANSPARENT requires NET_ADMIN capability.
9402 #.  http://lwn.net/Articles/252545/
9403 #. type: Plain text
9404 #: build/C/man7/ip.7:905
9405 msgid ""
9406 "Setting this boolean option enables transparent proxying on this socket.  "
9407 "This socket option allows the calling application to bind to a nonlocal IP "
9408 "address and operate both as a client and a server with the foreign address "
9409 "as the local endpoint.  NOTE: this requires that routing be set up in a way "
9410 "that packets going to the foreign address are routed through the TProxy "
9411 "box.  Enabling this socket option requires superuser privileges (the "
9412 "B<CAP_NET_ADMIN> capability)."
9413 msgstr ""
9414
9415 #. type: Plain text
9416 #: build/C/man7/ip.7:908
9417 msgid ""
9418 "TProxy redirection with the iptables TPROXY target also requires that this "
9419 "option be set on the redirected socket."
9420 msgstr ""
9421
9422 #. type: TP
9423 #: build/C/man7/ip.7:908
9424 #, no-wrap
9425 msgid "B<IP_TTL> (since Linux 1.0)"
9426 msgstr ""
9427
9428 #. type: Plain text
9429 #: build/C/man7/ip.7:912
9430 msgid ""
9431 "Set or retrieve the current time-to-live field that is used in every packet "
9432 "sent from this socket."
9433 msgstr ""
9434
9435 #. type: TP
9436 #: build/C/man7/ip.7:912
9437 #, no-wrap
9438 msgid "B<IP_UNBLOCK_SOURCE> (since Linux 2.4.22 / 2.5.68)"
9439 msgstr ""
9440
9441 #. type: Plain text
9442 #: build/C/man7/ip.7:918
9443 msgid ""
9444 "Unblock previously blocked multicast source.  Returns B<EADDRNOTAVAIL> when "
9445 "given source is not being blocked."
9446 msgstr ""
9447
9448 #.  FIXME As at 2.6.12, 14 Jun 2005, the following are undocumented:
9449 #.      ip_queue_maxlen
9450 #.      ip_conntrack_max
9451 #. type: Plain text
9452 #: build/C/man7/ip.7:939
9453 msgid ""
9454 "The IP protocol supports a set of I</proc> interfaces to configure some "
9455 "global parameters.  The parameters can be accessed by reading or writing "
9456 "files in the directory I</proc/sys/net/ipv4/>.  Interfaces described as "
9457 "I<Boolean> take an integer value, with a nonzero value (\"true\") meaning "
9458 "that the corresponding option is enabled, and a zero value (\"false\")  "
9459 "meaning that the option is disabled."
9460 msgstr ""
9461
9462 #. type: TP
9463 #: build/C/man7/ip.7:939
9464 #, no-wrap
9465 msgid "I<ip_always_defrag> (Boolean; since Linux 2.2.13)"
9466 msgstr ""
9467
9468 #. type: Plain text
9469 #: build/C/man7/ip.7:945
9470 msgid ""
9471 "[New with kernel 2.2.13; in earlier kernel versions this feature was "
9472 "controlled at compile time by the B<CONFIG_IP_ALWAYS_DEFRAG> option; this "
9473 "option is not present in 2.4.x and later]"
9474 msgstr ""
9475
9476 #. type: Plain text
9477 #: build/C/man7/ip.7:952
9478 msgid ""
9479 "When this boolean flag is enabled (not equal 0), incoming fragments (parts "
9480 "of IP packets that arose when some host between origin and destination "
9481 "decided that the packets were too large and cut them into pieces) will be "
9482 "reassembled (defragmented) before being processed, even if they are about to "
9483 "be forwarded."
9484 msgstr ""
9485
9486 #. type: Plain text
9487 #: build/C/man7/ip.7:959
9488 msgid ""
9489 "Only enable if running either a firewall that is the sole link to your "
9490 "network or a transparent proxy; never ever use it for a normal router or "
9491 "host.  Otherwise fragmented communication can be disturbed if the fragments "
9492 "travel over different links.  Defragmentation also has a large memory and "
9493 "CPU time cost."
9494 msgstr ""
9495
9496 #. type: Plain text
9497 #: build/C/man7/ip.7:963
9498 msgid ""
9499 "This is automagically turned on when masquerading or transparent proxying "
9500 "are configured."
9501 msgstr ""
9502
9503 #. type: TP
9504 #: build/C/man7/ip.7:963
9505 #, no-wrap
9506 msgid "I<ip_autoconfig> (since Linux 2.2 to 2.6.17)"
9507 msgstr ""
9508
9509 #.  Precisely: since 2.1.68
9510 #.  FIXME document ip_autoconfig
9511 #. type: Plain text
9512 #: build/C/man7/ip.7:969
9513 msgid "Not documented."
9514 msgstr ""
9515
9516 #. type: TP
9517 #: build/C/man7/ip.7:969
9518 #, no-wrap
9519 msgid "I<ip_default_ttl> (integer; default: 64; since Linux 2.2)"
9520 msgstr ""
9521
9522 #.  Precisely: 2.1.15
9523 #. type: Plain text
9524 #: build/C/man7/ip.7:977
9525 msgid ""
9526 "Set the default time-to-live value of outgoing packets.  This can be changed "
9527 "per socket with the B<IP_TTL> option."
9528 msgstr ""
9529
9530 #. type: TP
9531 #: build/C/man7/ip.7:977
9532 #, no-wrap
9533 msgid "I<ip_dynaddr> (Boolean; default: disabled; since Linux 2.0.31)"
9534 msgstr ""
9535
9536 #. type: Plain text
9537 #: build/C/man7/ip.7:984
9538 msgid ""
9539 "Enable dynamic socket address and masquerading entry rewriting on interface "
9540 "address change.  This is useful for dialup interface with changing IP "
9541 "addresses.  0 means no rewriting, 1 turns it on and 2 enables verbose mode."
9542 msgstr ""
9543
9544 #. type: TP
9545 #: build/C/man7/ip.7:984
9546 #, no-wrap
9547 msgid "I<ip_forward> (Boolean; default: disabled; since Linux 1.2)"
9548 msgstr ""
9549
9550 #. type: Plain text
9551 #: build/C/man7/ip.7:989
9552 msgid ""
9553 "Enable IP forwarding with a boolean flag.  IP forwarding can be also set on "
9554 "a per-interface basis."
9555 msgstr ""
9556
9557 #. type: TP
9558 #: build/C/man7/ip.7:989
9559 #, no-wrap
9560 msgid "I<ip_local_port_range> (since Linux 2.2)"
9561 msgstr ""
9562
9563 #.  Precisely: since 2.1.68
9564 #. type: Plain text
9565 #: build/C/man7/ip.7:1003
9566 msgid ""
9567 "Contains two integers that define the default local port range allocated to "
9568 "sockets.  Allocation starts with the first number and ends with the second "
9569 "number.  Note that these should not conflict with the ports used by "
9570 "masquerading (although the case is handled).  Also arbitrary choices may "
9571 "cause problems with some firewall packet filters that make assumptions about "
9572 "the local ports in use.  First number should be at least greater than 1024, "
9573 "or better, greater than 4096, to avoid clashes with well known ports and to "
9574 "minimize firewall problems."
9575 msgstr ""
9576
9577 #. type: TP
9578 #: build/C/man7/ip.7:1003
9579 #, no-wrap
9580 msgid "I<ip_no_pmtu_disc> (Boolean; default: disabled; since Linux 2.2)"
9581 msgstr ""
9582
9583 #.  Precisely: 2.1.15
9584 #
9585 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
9586 #. type: Plain text
9587 #: build/C/man7/ip.7:1015
9588 msgid ""
9589 "If enabled, don't do Path MTU Discovery for TCP sockets by default.  Path "
9590 "MTU discovery may fail if misconfigured firewalls (that drop all ICMP "
9591 "packets) or misconfigured interfaces (e.g., a point-to-point link where the "
9592 "both ends don't agree on the MTU) are on the path.  It is better to fix the "
9593 "broken routers on the path than to turn off Path MTU Discovery globally, "
9594 "because not doing it incurs a high cost to the network."
9595 msgstr ""
9596
9597 #. type: TP
9598 #: build/C/man7/ip.7:1015
9599 #, no-wrap
9600 msgid "I<ip_nonlocal_bind> (Boolean; default: disabled; since Linux 2.4)"
9601 msgstr ""
9602
9603 #.  Precisely: patch-2.4.0-test10
9604 #
9605 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
9606 #. type: Plain text
9607 #: build/C/man7/ip.7:1024
9608 msgid ""
9609 "If set, allows processes to B<bind>(2)  to nonlocal IP addresses, which can "
9610 "be quite useful, but may break some applications."
9611 msgstr ""
9612
9613 #. type: TP
9614 #: build/C/man7/ip.7:1024
9615 #, no-wrap
9616 msgid "I<ip6frag_time> (integer; default: 30)"
9617 msgstr ""
9618
9619 #
9620 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
9621 #. type: Plain text
9622 #: build/C/man7/ip.7:1029
9623 msgid "Time in seconds to keep an IPv6 fragment in memory."
9624 msgstr ""
9625
9626 #. type: TP
9627 #: build/C/man7/ip.7:1029
9628 #, no-wrap
9629 msgid "I<ip6frag_secret_interval> (integer; default: 600)"
9630 msgstr ""
9631
9632 #. type: Plain text
9633 #: build/C/man7/ip.7:1033
9634 msgid ""
9635 "Regeneration interval (in seconds) of the hash secret (or lifetime for the "
9636 "hash secret) for IPv6 fragments."
9637 msgstr ""
9638
9639 #. type: TP
9640 #: build/C/man7/ip.7:1033
9641 #, no-wrap
9642 msgid "I<ipfrag_high_thresh> (integer), I<ipfrag_low_thresh> (integer)"
9643 msgstr ""
9644
9645 #. type: Plain text
9646 #: build/C/man7/ip.7:1040
9647 msgid ""
9648 "If the amount of queued IP fragments reaches I<ipfrag_high_thresh>, the "
9649 "queue is pruned down to I<ipfrag_low_thresh>.  Contains an integer with the "
9650 "number of bytes."
9651 msgstr ""
9652
9653 #. type: TP
9654 #: build/C/man7/ip.7:1040
9655 #, no-wrap
9656 msgid "I<neigh/*>"
9657 msgstr ""
9658
9659 #.  FIXME Document the conf/*/* interfaces
9660 #.  FIXME Document the route/* interfaces
9661 #.  FIXME document them all
9662 #. type: Plain text
9663 #: build/C/man7/ip.7:1047
9664 msgid "See B<arp>(7)."
9665 msgstr ""
9666
9667 #.  2006-04-02, mtk
9668 #.  commented out the following because ipchains is obsolete
9669 #.  .PP
9670 #.  The ioctls to configure firewalling are documented in
9671 #.  .BR ipfw (4)
9672 #.  from the
9673 #.  .B ipchains
9674 #.  package.
9675 #. type: Plain text
9676 #: build/C/man7/ip.7:1060
9677 msgid "All ioctls described in B<socket>(7)  apply to B<ip>."
9678 msgstr ""
9679
9680 #.  FIXME Add a discussion of multicasting
9681 #. type: Plain text
9682 #: build/C/man7/ip.7:1064
9683 msgid ""
9684 "Ioctls to configure generic device parameters are described in "
9685 "B<netdevice>(7)."
9686 msgstr ""
9687
9688 #. type: Plain text
9689 #: build/C/man7/ip.7:1084
9690 msgid ""
9691 "The user tried to execute an operation without the necessary permissions.  "
9692 "These include: sending a packet to a broadcast address without having the "
9693 "B<SO_BROADCAST> flag set; sending a packet via a I<prohibit> route; "
9694 "modifying firewall settings without superuser privileges (the "
9695 "B<CAP_NET_ADMIN> capability); binding to a privileged port without superuser "
9696 "privileges (the B<CAP_NET_BIND_SERVICE> capability)."
9697 msgstr ""
9698
9699 #. type: Plain text
9700 #: build/C/man7/ip.7:1097
9701 msgid "An connection operation on a nonblocking socket is already in progress."
9702 msgstr ""
9703
9704 #. type: Plain text
9705 #: build/C/man7/ip.7:1106
9706 msgid ""
9707 "No valid routing table entry matches the destination address.  This error "
9708 "can be caused by a ICMP message from a remote router or for the local "
9709 "routing table."
9710 msgstr ""
9711
9712 #. type: Plain text
9713 #: build/C/man7/ip.7:1112
9714 msgid ""
9715 "Invalid argument passed.  For send operations this can be caused by sending "
9716 "to a I<blackhole> route."
9717 msgstr ""
9718
9719 #. type: Plain text
9720 #: build/C/man7/ip.7:1119
9721 msgid "Datagram is bigger than an MTU on the path and it cannot be fragmented."
9722 msgstr ""
9723
9724 #. type: TP
9725 #: build/C/man7/ip.7:1119
9726 #, no-wrap
9727 msgid "B<ENOBUFS>, B<ENOMEM>"
9728 msgstr ""
9729
9730 #. type: Plain text
9731 #: build/C/man7/ip.7:1124
9732 msgid ""
9733 "Not enough free memory.  This often means that the memory allocation is "
9734 "limited by the socket buffer limits, not by the system memory, but this is "
9735 "not 100% consistent."
9736 msgstr ""
9737
9738 #. type: Plain text
9739 #: build/C/man7/ip.7:1142
9740 msgid ""
9741 "User doesn't have permission to set high priority, change configuration, or "
9742 "send signals to the requested process or group."
9743 msgstr ""
9744
9745 #. type: Plain text
9746 #: build/C/man7/ip.7:1148
9747 msgid "The socket is not configured or an unknown socket type was requested."
9748 msgstr ""
9749
9750 #. type: Plain text
9751 #: build/C/man7/ip.7:1155
9752 msgid ""
9753 "Other errors may be generated by the overlaying protocols; see B<tcp>(7), "
9754 "B<raw>(7), B<udp>(7)  and B<socket>(7)."
9755 msgstr ""
9756
9757 #.  IP_PASSSEC is Linux-specific
9758 #.  IP_XFRM_POLICY is Linux-specific
9759 #.  IP_IPSEC_POLICY is a nonstandard extension, also present on some BSDs
9760 #. type: Plain text
9761 #: build/C/man7/ip.7:1170
9762 msgid ""
9763 "B<IP_FREEBIND>, B<IP_MSFILTER>, B<IP_MTU>, B<IP_MTU_DISCOVER>, "
9764 "B<IP_RECVORIGDSTADDR>, B<IP_PKTINFO>, B<IP_RECVERR>, B<IP_ROUTER_ALERT>, and "
9765 "B<IP_TRANSPARENT> are Linux-specific."
9766 msgstr ""
9767
9768 #. type: Plain text
9769 #: build/C/man7/ip.7:1179
9770 msgid ""
9771 "Be very careful with the B<SO_BROADCAST> option - it is not privileged in "
9772 "Linux.  It is easy to overload the network with careless broadcasts.  For "
9773 "new application protocols it is better to use a multicast group instead of "
9774 "broadcasting.  Broadcasting is discouraged."
9775 msgstr ""
9776
9777 #. type: Plain text
9778 #: build/C/man7/ip.7:1189
9779 msgid ""
9780 "Some other BSD sockets implementations provide B<IP_RCVDSTADDR> and "
9781 "B<IP_RECVIF> socket options to get the destination address and the interface "
9782 "of received datagrams.  Linux has the more general B<IP_PKTINFO> for the "
9783 "same task."
9784 msgstr ""
9785
9786 #. type: Plain text
9787 #: build/C/man7/ip.7:1198
9788 msgid ""
9789 "Some BSD sockets implementations also provide an B<IP_RECVTTL> option, but "
9790 "an ancillary message with type B<IP_RECVTTL> is passed with the incoming "
9791 "packet.  This is different from the B<IP_TTL> option used in Linux."
9792 msgstr ""
9793
9794 #. type: Plain text
9795 #: build/C/man7/ip.7:1204
9796 msgid ""
9797 "Using B<SOL_IP> socket options level isn't portable, BSD-based stacks use "
9798 "B<IPPROTO_IP> level."
9799 msgstr ""
9800
9801 #. type: Plain text
9802 #: build/C/man7/ip.7:1217
9803 msgid ""
9804 "For compatibility with Linux 2.0, the obsolete B<socket(AF_INET, "
9805 "SOCK_PACKET, >I<protocol>B<)> syntax is still supported to open a "
9806 "B<packet>(7)  socket.  This is deprecated and should be replaced by "
9807 "B<socket(AF_PACKET, SOCK_RAW, >I<protocol>B<)> instead.  The main difference "
9808 "is the new I<sockaddr_ll> address structure for generic link layer "
9809 "information instead of the old B<sockaddr_pkt>."
9810 msgstr ""
9811
9812 #. type: Plain text
9813 #: build/C/man7/ip.7:1222
9814 msgid ""
9815 "The ioctls to configure IP-specific interface options and ARP tables are not "
9816 "described."
9817 msgstr ""
9818
9819 #. type: Plain text
9820 #: build/C/man7/ip.7:1226
9821 msgid ""
9822 "Some versions of glibc forget to declare I<in_pktinfo>.  Workaround "
9823 "currently is to copy it into your program from this man page."
9824 msgstr ""
9825
9826 #.  .SH AUTHORS
9827 #.  This man page was written by Andi Kleen.
9828 #. type: Plain text
9829 #: build/C/man7/ip.7:1236
9830 msgid ""
9831 "Receiving the original destination address with B<MSG_ERRQUEUE> in "
9832 "I<msg_name> by B<recvmsg>(2)  does not work in some 2.2 kernels."
9833 msgstr ""
9834
9835 #. type: Plain text
9836 #: build/C/man7/ip.7:1249
9837 msgid ""
9838 "B<recvmsg>(2), B<sendmsg>(2), B<byteorder>(3), B<ipfw>(4), "
9839 "B<capabilities>(7), B<icmp>(7), B<ipv6>(7), B<netlink>(7), B<raw>(7), "
9840 "B<socket>(7), B<tcp>(7), B<udp>(7)"
9841 msgstr ""
9842
9843 #.  FIXME autobind INADDR REUSEADDR
9844 #. type: Plain text
9845 #: build/C/man7/ip.7:1254
9846 msgid ""
9847 "RFC\\ 791 for the original IP specification.  RFC\\ 1122 for the IPv4 host "
9848 "requirements.  RFC\\ 1812 for the IPv4 router requirements."
9849 msgstr ""
9850
9851 #. type: TH
9852 #: build/C/man7/ipv6.7:86
9853 #, no-wrap
9854 msgid "IPV6"
9855 msgstr ""
9856
9857 #. type: TH
9858 #: build/C/man7/ipv6.7:86
9859 #, no-wrap
9860 msgid "2012-12-16"
9861 msgstr ""
9862
9863 #. type: Plain text
9864 #: build/C/man7/ipv6.7:89
9865 msgid "ipv6 - Linux IPv6 protocol implementation"
9866 msgstr ""
9867
9868 #. type: Plain text
9869 #: build/C/man7/ipv6.7:95
9870 msgid "I<tcp6_socket>B< = socket(AF_INET6, SOCK_STREAM, 0);>"
9871 msgstr ""
9872
9873 #. type: Plain text
9874 #: build/C/man7/ipv6.7:97
9875 msgid "I<raw6_socket>B< = socket(AF_INET6, SOCK_RAW, >I<protocol>B<);>"
9876 msgstr ""
9877
9878 #. type: Plain text
9879 #: build/C/man7/ipv6.7:99
9880 msgid "I<udp6_socket>B< = socket(AF_INET6, SOCK_DGRAM, >I<protocol>B<);>"
9881 msgstr ""
9882
9883 #. type: Plain text
9884 #: build/C/man7/ipv6.7:106
9885 msgid ""
9886 "Linux 2.2 optionally implements the Internet Protocol, version 6.  This man "
9887 "page contains a description of the IPv6 basic API as implemented by the "
9888 "Linux kernel and glibc 2.1.  The interface is based on the BSD sockets "
9889 "interface; see B<socket>(7)."
9890 msgstr ""
9891
9892 #. type: Plain text
9893 #: build/C/man7/ipv6.7:111
9894 msgid ""
9895 "The IPv6 API aims to be mostly compatible with the IPv4 API (see B<ip>(7)).  "
9896 "Only differences are described in this man page."
9897 msgstr ""
9898
9899 #. type: Plain text
9900 #: build/C/man7/ipv6.7:123
9901 msgid ""
9902 "To bind an B<AF_INET6> socket to any process, the local address should be "
9903 "copied from the I<in6addr_any> variable which has I<in6_addr> type.  In "
9904 "static initializations, B<IN6ADDR_ANY_INIT> may also be used, which expands "
9905 "to a constant expression.  Both of them are in network byte order."
9906 msgstr ""
9907
9908 #. type: Plain text
9909 #: build/C/man7/ipv6.7:130
9910 msgid ""
9911 "The IPv6 loopback address (::1) is available in the global "
9912 "I<in6addr_loopback> variable.  For initializations, B<IN6ADDR_LOOPBACK_INIT> "
9913 "should be used."
9914 msgstr ""
9915
9916 #. type: Plain text
9917 #: build/C/man7/ipv6.7:137
9918 msgid ""
9919 "IPv4 connections can be handled with the v6 API by using the v4-mapped-on-v6 "
9920 "address type; thus a program only needs to support this API type to support "
9921 "both protocols.  This is handled transparently by the address handling "
9922 "functions in the C library."
9923 msgstr ""
9924
9925 #. type: Plain text
9926 #: build/C/man7/ipv6.7:142
9927 msgid ""
9928 "IPv4 and IPv6 share the local port space.  When you get an IPv4 connection "
9929 "or packet to a IPv6 socket, its source address will be mapped to v6 and it "
9930 "will be mapped to v6."
9931 msgstr ""
9932
9933 #. type: Plain text
9934 #: build/C/man7/ipv6.7:152
9935 #, no-wrap
9936 msgid ""
9937 "struct sockaddr_in6 {\n"
9938 "    sa_family_t     sin6_family;   /* AF_INET6 */\n"
9939 "    in_port_t       sin6_port;     /* port number */\n"
9940 "    uint32_t        sin6_flowinfo; /* IPv6 flow information */\n"
9941 "    struct in6_addr sin6_addr;     /* IPv6 address */\n"
9942 "    uint32_t        sin6_scope_id; /* Scope ID (new in 2.4) */\n"
9943 "};\n"
9944 msgstr ""
9945
9946 #. type: Plain text
9947 #: build/C/man7/ipv6.7:156
9948 #, no-wrap
9949 msgid ""
9950 "struct in6_addr {\n"
9951 "    unsigned char   s6_addr[16];   /* IPv6 address */\n"
9952 "};\n"
9953 msgstr ""
9954
9955 #. type: Plain text
9956 #: build/C/man7/ipv6.7:178
9957 msgid ""
9958 "I<sin6_family> is always set to B<AF_INET6>; I<sin6_port> is the protocol "
9959 "port (see I<sin_port> in B<ip>(7)); I<sin6_flowinfo> is the IPv6 flow "
9960 "identifier; I<sin6_addr> is the 128-bit IPv6 address.  I<sin6_scope_id> is "
9961 "an ID depending on the scope of the address.  It is new in Linux 2.4.  Linux "
9962 "supports it only for link-local addresses, in that case I<sin6_scope_id> "
9963 "contains the interface index (see B<netdevice>(7))"
9964 msgstr ""
9965
9966 #. type: Plain text
9967 #: build/C/man7/ipv6.7:184
9968 msgid ""
9969 "IPv6 supports several address types: unicast to address a single host, "
9970 "multicast to address a group of hosts, anycast to address the nearest member "
9971 "of a group of hosts (not implemented in Linux), IPv4-on-IPv6 to address a "
9972 "IPv4 host, and other reserved address types."
9973 msgstr ""
9974
9975 #. type: Plain text
9976 #: build/C/man7/ipv6.7:190
9977 msgid ""
9978 "The address notation for IPv6 is a group of 8 4-digit hexadecimal numbers, "
9979 "separated with a \\(aq:\\(aq.  \\&\"::\" stands for a string of 0 bits.  "
9980 "Special addresses are ::1 for loopback and ::FFFF:E<lt>IPv4 addressE<gt> for "
9981 "IPv4-mapped-on-IPv6."
9982 msgstr ""
9983
9984 #. type: Plain text
9985 #: build/C/man7/ipv6.7:192
9986 msgid "The port space of IPv6 is shared with IPv4."
9987 msgstr ""
9988
9989 #. type: Plain text
9990 #: build/C/man7/ipv6.7:200
9991 msgid ""
9992 "IPv6 supports some protocol-specific socket options that can be set with "
9993 "B<setsockopt>(2)  and read with B<getsockopt>(2).  The socket option level "
9994 "for IPv6 is B<IPPROTO_IPV6>.  A boolean integer flag is zero when it is "
9995 "false, otherwise true."
9996 msgstr ""
9997
9998 #. type: TP
9999 #: build/C/man7/ipv6.7:200
10000 #, no-wrap
10001 msgid "B<IPV6_ADDRFORM>"
10002 msgstr ""
10003
10004 #. type: Plain text
10005 #: build/C/man7/ipv6.7:214
10006 msgid ""
10007 "Turn an B<AF_INET6> socket into a socket of a different address family.  "
10008 "Only B<AF_INET> is currently supported for that.  It is allowed only for "
10009 "IPv6 sockets that are connected and bound to a v4-mapped-on-v6 address.  The "
10010 "argument is a pointer to an integer containing B<AF_INET>.  This is useful "
10011 "to pass v4-mapped sockets as file descriptors to programs that don't know "
10012 "how to deal with the IPv6 API."
10013 msgstr ""
10014
10015 #. type: TP
10016 #: build/C/man7/ipv6.7:214
10017 #, no-wrap
10018 msgid "B<IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP>"
10019 msgstr ""
10020
10021 #. type: Plain text
10022 #: build/C/man7/ipv6.7:219
10023 msgid ""
10024 "Control membership in multicast groups.  Argument is a pointer to a I<struct "
10025 "ipv6_mreq>."
10026 msgstr ""
10027
10028 #. type: TP
10029 #: build/C/man7/ipv6.7:219
10030 #, no-wrap
10031 msgid "B<IPV6_MTU>"
10032 msgstr ""
10033
10034 #. type: Plain text
10035 #: build/C/man7/ipv6.7:225
10036 msgid ""
10037 "B<getsockopt>(): Retrieve the current known path MTU of the current socket.  "
10038 "Only valid when the socket has been connected.  Returns an integer."
10039 msgstr ""
10040
10041 #. type: Plain text
10042 #: build/C/man7/ipv6.7:231
10043 msgid ""
10044 "B<setsockopt>(): Set the MTU to be used for the socket.  The MTU is limited "
10045 "by the device MTU or the path MTU when path MTU discovery is enabled.  "
10046 "Argument is a pointer to integer."
10047 msgstr ""
10048
10049 #. type: TP
10050 #: build/C/man7/ipv6.7:231
10051 #, no-wrap
10052 msgid "B<IPV6_MTU_DISCOVER>"
10053 msgstr ""
10054
10055 #. type: Plain text
10056 #: build/C/man7/ipv6.7:239
10057 msgid ""
10058 "Control path-MTU discovery on the socket.  See B<IP_MTU_DISCOVER> in "
10059 "B<ip>(7)  for details."
10060 msgstr ""
10061
10062 #. type: TP
10063 #: build/C/man7/ipv6.7:239
10064 #, no-wrap
10065 msgid "B<IPV6_MULTICAST_HOPS>"
10066 msgstr ""
10067
10068 #. type: Plain text
10069 #: build/C/man7/ipv6.7:246
10070 msgid ""
10071 "Set the multicast hop limit for the socket.  Argument is a pointer to an "
10072 "integer.  -1 in the value means use the route default, otherwise it should "
10073 "be between 0 and 255."
10074 msgstr ""
10075
10076 #. type: TP
10077 #: build/C/man7/ipv6.7:246
10078 #, no-wrap
10079 msgid "B<IPV6_MULTICAST_IF>"
10080 msgstr ""
10081
10082 #. type: Plain text
10083 #: build/C/man7/ipv6.7:257
10084 msgid ""
10085 "Set the device for outgoing multicast packets on the socket.  This is "
10086 "allowed only for B<SOCK_DGRAM> and B<SOCK_RAW> socket.  The argument is a "
10087 "pointer to an interface index (see B<netdevice>(7))  in an integer."
10088 msgstr ""
10089
10090 #. type: TP
10091 #: build/C/man7/ipv6.7:257
10092 #, no-wrap
10093 msgid "B<IPV6_MULTICAST_LOOP>"
10094 msgstr ""
10095
10096 #. type: Plain text
10097 #: build/C/man7/ipv6.7:261
10098 msgid ""
10099 "Control whether the socket sees multicast packets that it has send itself.  "
10100 "Argument is a pointer to boolean."
10101 msgstr ""
10102
10103 #. type: TP
10104 #: build/C/man7/ipv6.7:261
10105 #, no-wrap
10106 msgid "B<IPV6_RECVPKTINFO> (since Linux 2.6.14)"
10107 msgstr ""
10108
10109 #. type: Plain text
10110 #: build/C/man7/ipv6.7:275
10111 msgid ""
10112 "Set delivery of the B<IPV6_PKTINFO> control message on incoming datagrams.  "
10113 "Such control messages contain a I<struct in6_pktinfo>, as per RFC 3542.  "
10114 "Only allowed for B<SOCK_DGRAM> or B<SOCK_RAW> sockets.  Argument is a "
10115 "pointer to a boolean value in an integer."
10116 msgstr ""
10117
10118 #. type: Plain text
10119 #: build/C/man7/ipv6.7:278
10120 msgid ""
10121 "B<IPV6_RTHDR, IPV6_AUTHHDR, IPV6_DSTOPTS, IPV6_HOPOPTS, IPV6_FLOWINFO, "
10122 "IPV6_HOPLIMIT>"
10123 msgstr ""
10124
10125 #. type: Plain text
10126 #: build/C/man7/ipv6.7:303
10127 msgid ""
10128 "Set delivery of control messages for incoming datagrams containing extension "
10129 "headers from the received packet.  B<IPV6_RTHDR> delivers the routing "
10130 "header, B<IPV6_AUTHHDR> delivers the authentication header, B<IPV6_DSTOPTS> "
10131 "delivers the destination options, B<IPV6_HOPOPTS> delivers the hop options, "
10132 "B<IPV6_FLOWINFO> delivers an integer containing the flow ID, "
10133 "B<IPV6_HOPLIMIT> delivers an integer containing the hop count of the "
10134 "packet.  The control messages have the same type as the socket option.  All "
10135 "these header options can also be set for outgoing packets by putting the "
10136 "appropriate control message into the control buffer of B<sendmsg>(2).  Only "
10137 "allowed for B<SOCK_DGRAM> or B<SOCK_RAW> sockets.  Argument is a pointer to "
10138 "a boolean value."
10139 msgstr ""
10140
10141 #. type: TP
10142 #: build/C/man7/ipv6.7:303
10143 #, no-wrap
10144 msgid "B<IPV6_RECVERR>"
10145 msgstr ""
10146
10147 #. type: Plain text
10148 #: build/C/man7/ipv6.7:312
10149 msgid ""
10150 "Control receiving of asynchronous error options.  See B<IP_RECVERR> in "
10151 "B<ip>(7)  for details.  Argument is a pointer to boolean."
10152 msgstr ""
10153
10154 #. type: TP
10155 #: build/C/man7/ipv6.7:312
10156 #, no-wrap
10157 msgid "B<IPV6_ROUTER_ALERT>"
10158 msgstr ""
10159
10160 #. type: Plain text
10161 #: build/C/man7/ipv6.7:325
10162 msgid ""
10163 "Pass forwarded packets containing a router alert hop-by-hop option to this "
10164 "socket.  Only allowed for SOCK_RAW sockets.  The tapped packets are not "
10165 "forwarded by the kernel, it is the user's responsibility to send them out "
10166 "again.  Argument is a pointer to an integer.  A positive integer indicates a "
10167 "router alert option value to intercept.  Packets carrying a router alert "
10168 "option with a value field containing this integer will be delivered to the "
10169 "socket.  A negative integer disables delivery of packets with router alert "
10170 "options to this socket."
10171 msgstr ""
10172
10173 #. type: TP
10174 #: build/C/man7/ipv6.7:325
10175 #, no-wrap
10176 msgid "B<IPV6_UNICAST_HOPS>"
10177 msgstr ""
10178
10179 #. type: Plain text
10180 #: build/C/man7/ipv6.7:331
10181 msgid ""
10182 "Set the unicast hop limit for the socket.  Argument is a pointer to an "
10183 "integer.  -1 in the value means use the route default, otherwise it should "
10184 "be between 0 and 255."
10185 msgstr ""
10186
10187 #. type: TP
10188 #: build/C/man7/ipv6.7:331
10189 #, no-wrap
10190 msgid "B<IPV6_V6ONLY> (since Linux 2.4.21 and 2.6)"
10191 msgstr ""
10192
10193 #.  See RFC 3493
10194 #. type: Plain text
10195 #: build/C/man7/ipv6.7:338
10196 msgid ""
10197 "If this flag is set to true (nonzero), then the socket is restricted to "
10198 "sending and receiving IPv6 packets only.  In this case, an IPv4 and an IPv6 "
10199 "application can bind to a single port at the same time."
10200 msgstr ""
10201
10202 #. type: Plain text
10203 #: build/C/man7/ipv6.7:342
10204 msgid ""
10205 "If this flag is set to false (zero), then the socket can be used to send and "
10206 "receive packets to and from an IPv6 address or an IPv4-mapped IPv6 address."
10207 msgstr ""
10208
10209 #. type: Plain text
10210 #: build/C/man7/ipv6.7:344
10211 msgid "The argument is a pointer to a boolean value in an integer."
10212 msgstr ""
10213
10214 #.  FLOWLABEL_MGR, FLOWINFO_SEND
10215 #. type: Plain text
10216 #: build/C/man7/ipv6.7:349
10217 msgid ""
10218 "The default value for this flag is defined by the contents of the file "
10219 "I</proc/sys/net/ipv6/bindv6only>.  The default value for that file is 0 "
10220 "(false)."
10221 msgstr ""
10222
10223 #. type: Plain text
10224 #: build/C/man7/ipv6.7:361
10225 msgid ""
10226 "The user tried to B<bind>(2)  to a link-local IPv6 address, but the "
10227 "I<sin6_scope_id> in the supplied I<sockaddr_in6> structure is not a valid "
10228 "interface index."
10229 msgstr ""
10230
10231 #. type: Plain text
10232 #: build/C/man7/ipv6.7:366
10233 msgid ""
10234 "The older I<libinet6> libc5 based IPv6 API implementation for Linux is not "
10235 "described here and may vary in details."
10236 msgstr ""
10237
10238 #. type: Plain text
10239 #: build/C/man7/ipv6.7:382
10240 msgid ""
10241 "Linux 2.4 will break binary compatibility for the I<sockaddr_in6> for 64-bit "
10242 "hosts by changing the alignment of I<in6_addr> and adding an additional "
10243 "I<sin6_scope_id> field.  The kernel interfaces stay compatible, but a "
10244 "program including I<sockaddr_in6> or I<in6_addr> into other structures may "
10245 "not be.  This is not a problem for 32-bit hosts like i386."
10246 msgstr ""
10247
10248 #. type: Plain text
10249 #: build/C/man7/ipv6.7:390
10250 msgid ""
10251 "The I<sin6_flowinfo> field is new in Linux 2.4.  It is transparently "
10252 "passed/read by the kernel when the passed address length contains it.  Some "
10253 "programs that pass a longer address buffer and then check the outgoing "
10254 "address length may break."
10255 msgstr ""
10256
10257 #. type: Plain text
10258 #: build/C/man7/ipv6.7:400
10259 msgid ""
10260 "The I<sockaddr_in6> structure is bigger than the generic I<sockaddr>.  "
10261 "Programs that assume that all address types can be stored safely in a "
10262 "I<struct sockaddr> need to be changed to use I<struct sockaddr_storage> for "
10263 "that instead."
10264 msgstr ""
10265
10266 #. type: Plain text
10267 #: build/C/man7/ipv6.7:405
10268 msgid ""
10269 "The IPv6 extended API as in RFC\\ 2292 is currently only partly implemented; "
10270 "although the 2.2 kernel has near complete support for receiving options, the "
10271 "macros for generating IPv6 options are missing in glibc 2.1."
10272 msgstr ""
10273
10274 #. type: Plain text
10275 #: build/C/man7/ipv6.7:407
10276 msgid "IPSec support for EH and AH headers is missing."
10277 msgstr ""
10278
10279 #. type: Plain text
10280 #: build/C/man7/ipv6.7:409
10281 msgid "Flow label management is not complete and not documented here."
10282 msgstr ""
10283
10284 #. type: Plain text
10285 #: build/C/man7/ipv6.7:411
10286 msgid "This man page is not complete."
10287 msgstr ""
10288
10289 #. type: Plain text
10290 #: build/C/man7/ipv6.7:414
10291 msgid "B<cmsg>(3), B<ip>(7)"
10292 msgstr ""
10293
10294 #. type: Plain text
10295 #: build/C/man7/ipv6.7:418
10296 msgid ""
10297 "RFC\\ 2553: IPv6 BASIC API; Linux tries to be compliant to this.  RFC\\ "
10298 "2460: IPv6 specification."
10299 msgstr ""
10300
10301 #. type: TH
10302 #: build/C/man7/netdevice.7:18
10303 #, no-wrap
10304 msgid "NETDEVICE"
10305 msgstr ""
10306
10307 #. type: TH
10308 #: build/C/man7/netdevice.7:18
10309 #, no-wrap
10310 msgid "2012-04-26"
10311 msgstr ""
10312
10313 #. type: Plain text
10314 #: build/C/man7/netdevice.7:21
10315 msgid "netdevice - low-level access to Linux network devices"
10316 msgstr ""
10317
10318 #. type: Plain text
10319 #: build/C/man7/netdevice.7:23
10320 msgid "B<#include E<lt>sys/ioctl.hE<gt>>"
10321 msgstr ""
10322
10323 #. type: Plain text
10324 #: build/C/man7/netdevice.7:25
10325 msgid "B<#include E<lt>net/if.hE<gt>>"
10326 msgstr ""
10327
10328 #. type: Plain text
10329 #: build/C/man7/netdevice.7:28
10330 msgid ""
10331 "This man page describes the sockets interface which is used to configure "
10332 "network devices."
10333 msgstr ""
10334
10335 #. type: Plain text
10336 #: build/C/man7/netdevice.7:35
10337 msgid ""
10338 "Linux supports some standard ioctls to configure network devices.  They can "
10339 "be used on any socket's file descriptor regardless of the family or type.  "
10340 "They pass an I<ifreq> structure:"
10341 msgstr ""
10342
10343 #. type: Plain text
10344 #: build/C/man7/netdevice.7:56
10345 #, no-wrap
10346 msgid ""
10347 "struct ifreq {\n"
10348 "    char ifr_name[IFNAMSIZ]; /* Interface name */\n"
10349 "    union {\n"
10350 "        struct sockaddr ifr_addr;\n"
10351 "        struct sockaddr ifr_dstaddr;\n"
10352 "        struct sockaddr ifr_broadaddr;\n"
10353 "        struct sockaddr ifr_netmask;\n"
10354 "        struct sockaddr ifr_hwaddr;\n"
10355 "        short           ifr_flags;\n"
10356 "        int             ifr_ifindex;\n"
10357 "        int             ifr_metric;\n"
10358 "        int             ifr_mtu;\n"
10359 "        struct ifmap    ifr_map;\n"
10360 "        char            ifr_slave[IFNAMSIZ];\n"
10361 "        char            ifr_newname[IFNAMSIZ];\n"
10362 "        char           *ifr_data;\n"
10363 "    };\n"
10364 "};\n"
10365 msgstr ""
10366
10367 #. type: Plain text
10368 #: build/C/man7/netdevice.7:64
10369 #, no-wrap
10370 msgid ""
10371 "struct ifconf {\n"
10372 "    int                 ifc_len; /* size of buffer */\n"
10373 "    union {\n"
10374 "        char           *ifc_buf; /* buffer address */\n"
10375 "        struct ifreq   *ifc_req; /* array of structures */\n"
10376 "    };\n"
10377 "};\n"
10378 msgstr ""
10379
10380 #. type: Plain text
10381 #: build/C/man7/netdevice.7:72
10382 msgid ""
10383 "Normally, the user specifies which device to affect by setting I<ifr_name> "
10384 "to the name of the interface.  All other members of the structure may share "
10385 "memory."
10386 msgstr ""
10387
10388 #. type: Plain text
10389 #: build/C/man7/netdevice.7:80
10390 msgid ""
10391 "If an ioctl is marked as privileged then using it requires an effective user "
10392 "ID of 0 or the B<CAP_NET_ADMIN> capability.  If this is not the case "
10393 "B<EPERM> will be returned."
10394 msgstr ""
10395
10396 #. type: TP
10397 #: build/C/man7/netdevice.7:80
10398 #, no-wrap
10399 msgid "B<SIOCGIFNAME>"
10400 msgstr ""
10401
10402 #. type: Plain text
10403 #: build/C/man7/netdevice.7:88
10404 msgid ""
10405 "Given the I<ifr_ifindex>, return the name of the interface in I<ifr_name>.  "
10406 "This is the only ioctl which returns its result in I<ifr_name>."
10407 msgstr ""
10408
10409 #. type: TP
10410 #: build/C/man7/netdevice.7:88
10411 #, no-wrap
10412 msgid "B<SIOCGIFINDEX>"
10413 msgstr ""
10414
10415 #. type: Plain text
10416 #: build/C/man7/netdevice.7:92
10417 msgid "Retrieve the interface index of the interface into I<ifr_ifindex>."
10418 msgstr ""
10419
10420 #. type: TP
10421 #: build/C/man7/netdevice.7:92
10422 #, no-wrap
10423 msgid "B<SIOCGIFFLAGS>, B<SIOCSIFFLAGS>"
10424 msgstr ""
10425
10426 #.  Do not right adjust text blocks in tables
10427 #. type: Plain text
10428 #: build/C/man7/netdevice.7:98
10429 msgid ""
10430 "Get or set the active flag word of the device.  I<ifr_flags> contains a bit "
10431 "mask of the following values:"
10432 msgstr ""
10433
10434 #. type: tbl table
10435 #: build/C/man7/netdevice.7:103
10436 #, no-wrap
10437 msgid "Device flags\n"
10438 msgstr ""
10439
10440 #. type: tbl table
10441 #: build/C/man7/netdevice.7:104
10442 #, no-wrap
10443 msgid "IFF_UP:Interface is running.\n"
10444 msgstr ""
10445
10446 #. type: tbl table
10447 #: build/C/man7/netdevice.7:105
10448 #, no-wrap
10449 msgid "IFF_BROADCAST:Valid broadcast address set.\n"
10450 msgstr ""
10451
10452 #. type: tbl table
10453 #: build/C/man7/netdevice.7:106
10454 #, no-wrap
10455 msgid "IFF_DEBUG:Internal debugging flag.\n"
10456 msgstr ""
10457
10458 #. type: tbl table
10459 #: build/C/man7/netdevice.7:107
10460 #, no-wrap
10461 msgid "IFF_LOOPBACK:Interface is a loopback interface.\n"
10462 msgstr ""
10463
10464 #. type: tbl table
10465 #: build/C/man7/netdevice.7:108
10466 #, no-wrap
10467 msgid "IFF_POINTOPOINT:Interface is a point-to-point link.\n"
10468 msgstr ""
10469
10470 #. type: tbl table
10471 #: build/C/man7/netdevice.7:109
10472 #, no-wrap
10473 msgid "IFF_RUNNING:Resources allocated.\n"
10474 msgstr ""
10475
10476 #. type: tbl table
10477 #: build/C/man7/netdevice.7:110
10478 #, no-wrap
10479 msgid "IFF_NOARP:T{\n"
10480 msgstr ""
10481
10482 #. type: tbl table
10483 #: build/C/man7/netdevice.7:111
10484 #, no-wrap
10485 msgid "No arp protocol, L2 destination address not set.\n"
10486 msgstr ""
10487
10488 #. type: tbl table
10489 #: build/C/man7/netdevice.7:112 build/C/man7/netdevice.7:123
10490 #, no-wrap
10491 msgid "T}\n"
10492 msgstr ""
10493
10494 #. type: tbl table
10495 #: build/C/man7/netdevice.7:113
10496 #, no-wrap
10497 msgid "IFF_PROMISC:Interface is in promiscuous mode.\n"
10498 msgstr ""
10499
10500 #. type: tbl table
10501 #: build/C/man7/netdevice.7:114
10502 #, no-wrap
10503 msgid "IFF_NOTRAILERS:Avoid use of trailers.\n"
10504 msgstr ""
10505
10506 #. type: tbl table
10507 #: build/C/man7/netdevice.7:115
10508 #, no-wrap
10509 msgid "IFF_ALLMULTI:Receive all multicast packets.\n"
10510 msgstr ""
10511
10512 #. type: tbl table
10513 #: build/C/man7/netdevice.7:116
10514 #, no-wrap
10515 msgid "IFF_MASTER:Master of a load balancing bundle.\n"
10516 msgstr ""
10517
10518 #. type: tbl table
10519 #: build/C/man7/netdevice.7:117
10520 #, no-wrap
10521 msgid "IFF_SLAVE:Slave of a load balancing bundle.\n"
10522 msgstr ""
10523
10524 #. type: tbl table
10525 #: build/C/man7/netdevice.7:118
10526 #, no-wrap
10527 msgid "IFF_MULTICAST:Supports multicast\n"
10528 msgstr ""
10529
10530 #. type: tbl table
10531 #: build/C/man7/netdevice.7:119
10532 #, no-wrap
10533 msgid "IFF_PORTSEL:Is able to select media type via ifmap.\n"
10534 msgstr ""
10535
10536 #. type: tbl table
10537 #: build/C/man7/netdevice.7:120
10538 #, no-wrap
10539 msgid "IFF_AUTOMEDIA:Auto media selection active.\n"
10540 msgstr ""
10541
10542 #. type: tbl table
10543 #: build/C/man7/netdevice.7:121
10544 #, no-wrap
10545 msgid "IFF_DYNAMIC:T{\n"
10546 msgstr ""
10547
10548 #. type: tbl table
10549 #: build/C/man7/netdevice.7:122
10550 #, no-wrap
10551 msgid "The addresses are lost when the interface goes down.\n"
10552 msgstr ""
10553
10554 #. type: tbl table
10555 #: build/C/man7/netdevice.7:124
10556 #, no-wrap
10557 msgid "IFF_LOWER_UP:Driver signals L1 up (since Linux 2.6.17)\n"
10558 msgstr ""
10559
10560 #. type: tbl table
10561 #: build/C/man7/netdevice.7:125
10562 #, no-wrap
10563 msgid "IFF_DORMANT:Driver signals dormant (since Linux 2.6.17)\n"
10564 msgstr ""
10565
10566 #. type: tbl table
10567 #: build/C/man7/netdevice.7:126
10568 #, no-wrap
10569 msgid "IFF_ECHO:Echo sent packets (since Linux 2.6.25)\n"
10570 msgstr ""
10571
10572 #. type: Plain text
10573 #: build/C/man7/netdevice.7:132
10574 msgid ""
10575 "Setting the active flag word is a privileged operation, but any process may "
10576 "read it."
10577 msgstr ""
10578
10579 #. type: TP
10580 #: build/C/man7/netdevice.7:132
10581 #, no-wrap
10582 msgid "B<SIOCGIFPFLAGS>, B<SIOCSIFPFLAGS>"
10583 msgstr ""
10584
10585 #. type: Plain text
10586 #: build/C/man7/netdevice.7:137
10587 msgid ""
10588 "Get or set extended (private) flags for the device.  I<ifr_flags> contains a "
10589 "bit mask of the following values:"
10590 msgstr ""
10591
10592 #. type: tbl table
10593 #: build/C/man7/netdevice.7:141
10594 #, no-wrap
10595 msgid "Private flags\n"
10596 msgstr ""
10597
10598 #. type: tbl table
10599 #: build/C/man7/netdevice.7:142
10600 #, no-wrap
10601 msgid "IFF_802_1Q_VLAN:Interface is 802.1Q VLAN device.\n"
10602 msgstr ""
10603
10604 #. type: tbl table
10605 #: build/C/man7/netdevice.7:143
10606 #, no-wrap
10607 msgid "IFF_EBRIDGE:Interface is Ethernet bridging device.\n"
10608 msgstr ""
10609
10610 #. type: tbl table
10611 #: build/C/man7/netdevice.7:144
10612 #, no-wrap
10613 msgid "IFF_SLAVE_INACTIVE:Interface is inactive bonding slave.\n"
10614 msgstr ""
10615
10616 #. type: tbl table
10617 #: build/C/man7/netdevice.7:145
10618 #, no-wrap
10619 msgid "IFF_MASTER_8023AD:Interface is 802.3ad bonding master.\n"
10620 msgstr ""
10621
10622 #. type: tbl table
10623 #: build/C/man7/netdevice.7:146
10624 #, no-wrap
10625 msgid "IFF_MASTER_ALB:Interface is balanced-alb bonding master.\n"
10626 msgstr ""
10627
10628 #. type: tbl table
10629 #: build/C/man7/netdevice.7:147
10630 #, no-wrap
10631 msgid "IFF_BONDING:Interface is a bonding master or slave.\n"
10632 msgstr ""
10633
10634 #. type: tbl table
10635 #: build/C/man7/netdevice.7:148
10636 #, no-wrap
10637 msgid "IFF_SLAVE_NEEDARP:Interface needs ARPs for validation.\n"
10638 msgstr ""
10639
10640 #. type: tbl table
10641 #: build/C/man7/netdevice.7:149
10642 #, no-wrap
10643 msgid "IFF_ISATAP:Interface is RFC4214 ISATAP interface.\n"
10644 msgstr ""
10645
10646 #. type: Plain text
10647 #: build/C/man7/netdevice.7:153
10648 msgid "Setting the extended (private) interface flags is a privileged operation."
10649 msgstr ""
10650
10651 #. type: TP
10652 #: build/C/man7/netdevice.7:153
10653 #, no-wrap
10654 msgid "B<SIOCGIFADDR>, B<SIOCSIFADDR>"
10655 msgstr ""
10656
10657 #. type: Plain text
10658 #: build/C/man7/netdevice.7:161
10659 msgid ""
10660 "Get or set the address of the device using I<ifr_addr>.  Setting the "
10661 "interface address is a privileged operation.  For compatibility, only "
10662 "B<AF_INET> addresses are accepted or returned."
10663 msgstr ""
10664
10665 #. type: TP
10666 #: build/C/man7/netdevice.7:161
10667 #, no-wrap
10668 msgid "B<SIOCGIFDSTADDR>, B<SIOCSIFDSTADDR>"
10669 msgstr ""
10670
10671 #. type: Plain text
10672 #: build/C/man7/netdevice.7:169
10673 msgid ""
10674 "Get or set the destination address of a point-to-point device using "
10675 "I<ifr_dstaddr>.  For compatibility, only B<AF_INET> addresses are accepted "
10676 "or returned.  Setting the destination address is a privileged operation."
10677 msgstr ""
10678
10679 #. type: TP
10680 #: build/C/man7/netdevice.7:169
10681 #, no-wrap
10682 msgid "B<SIOCGIFBRDADDR>, B<SIOCSIFBRDADDR>"
10683 msgstr ""
10684
10685 #. type: Plain text
10686 #: build/C/man7/netdevice.7:177
10687 msgid ""
10688 "Get or set the broadcast address for a device using I<ifr_brdaddr>.  For "
10689 "compatibility, only B<AF_INET> addresses are accepted or returned.  Setting "
10690 "the broadcast address is a privileged operation."
10691 msgstr ""
10692
10693 #. type: TP
10694 #: build/C/man7/netdevice.7:177
10695 #, no-wrap
10696 msgid "B<SIOCGIFNETMASK>, B<SIOCSIFNETMASK>"
10697 msgstr ""
10698
10699 #. type: Plain text
10700 #: build/C/man7/netdevice.7:185
10701 msgid ""
10702 "Get or set the network mask for a device using I<ifr_netmask>.  For "
10703 "compatibility, only B<AF_INET> addresses are accepted or returned.  Setting "
10704 "the network mask is a privileged operation."
10705 msgstr ""
10706
10707 #. type: TP
10708 #: build/C/man7/netdevice.7:185
10709 #, no-wrap
10710 msgid "B<SIOCGIFMETRIC>, B<SIOCSIFMETRIC>"
10711 msgstr ""
10712
10713 #. type: Plain text
10714 #: build/C/man7/netdevice.7:194
10715 msgid ""
10716 "Get or set the metric of the device using I<ifr_metric>.  This is currently "
10717 "not implemented; it sets I<ifr_metric> to 0 if you attempt to read it and "
10718 "returns B<EOPNOTSUPP> if you attempt to set it."
10719 msgstr ""
10720
10721 #. type: TP
10722 #: build/C/man7/netdevice.7:194
10723 #, no-wrap
10724 msgid "B<SIOCGIFMTU>, B<SIOCSIFMTU>"
10725 msgstr ""
10726
10727 #. type: Plain text
10728 #: build/C/man7/netdevice.7:201
10729 msgid ""
10730 "Get or set the MTU (Maximum Transfer Unit) of a device using I<ifr_mtu>.  "
10731 "Setting the MTU is a privileged operation.  Setting the MTU to too small "
10732 "values may cause kernel crashes."
10733 msgstr ""
10734
10735 #. type: TP
10736 #: build/C/man7/netdevice.7:201
10737 #, no-wrap
10738 msgid "B<SIOCGIFHWADDR>, B<SIOCSIFHWADDR>"
10739 msgstr ""
10740
10741 #. type: Plain text
10742 #: build/C/man7/netdevice.7:212
10743 msgid ""
10744 "Get or set the hardware address of a device using I<ifr_hwaddr>.  The "
10745 "hardware address is specified in a struct I<sockaddr>.  I<sa_family> "
10746 "contains the ARPHRD_* device type, I<sa_data> the L2 hardware address "
10747 "starting from byte 0.  Setting the hardware address is a privileged "
10748 "operation."
10749 msgstr ""
10750
10751 #. type: TP
10752 #: build/C/man7/netdevice.7:212
10753 #, no-wrap
10754 msgid "B<SIOCSIFHWBROADCAST>"
10755 msgstr ""
10756
10757 #. type: Plain text
10758 #: build/C/man7/netdevice.7:217
10759 msgid ""
10760 "Set the hardware broadcast address of a device from I<ifr_hwaddr>.  This is "
10761 "a privileged operation."
10762 msgstr ""
10763
10764 #. type: TP
10765 #: build/C/man7/netdevice.7:217
10766 #, no-wrap
10767 msgid "B<SIOCGIFMAP>, B<SIOCSIFMAP>"
10768 msgstr ""
10769
10770 #. type: Plain text
10771 #: build/C/man7/netdevice.7:222
10772 msgid ""
10773 "Get or set the interface's hardware parameters using I<ifr_map>.  Setting "
10774 "the parameters is a privileged operation."
10775 msgstr ""
10776
10777 #. type: Plain text
10778 #: build/C/man7/netdevice.7:233
10779 #, no-wrap
10780 msgid ""
10781 "struct ifmap {\n"
10782 "    unsigned long   mem_start;\n"
10783 "    unsigned long   mem_end;\n"
10784 "    unsigned short  base_addr;\n"
10785 "    unsigned char   irq;\n"
10786 "    unsigned char   dma;\n"
10787 "    unsigned char   port;\n"
10788 "};\n"
10789 msgstr ""
10790
10791 #. type: Plain text
10792 #: build/C/man7/netdevice.7:238
10793 msgid ""
10794 "The interpretation of the ifmap structure depends on the device driver and "
10795 "the architecture."
10796 msgstr ""
10797
10798 #. type: TP
10799 #: build/C/man7/netdevice.7:238
10800 #, no-wrap
10801 msgid "B<SIOCADDMULTI>, B<SIOCDELMULTI>"
10802 msgstr ""
10803
10804 #. type: Plain text
10805 #: build/C/man7/netdevice.7:247
10806 msgid ""
10807 "Add an address to or delete an address from the device's link layer "
10808 "multicast filters using I<ifr_hwaddr>.  These are privileged operations.  "
10809 "See also B<packet>(7)  for an alternative."
10810 msgstr ""
10811
10812 #. type: TP
10813 #: build/C/man7/netdevice.7:247
10814 #, no-wrap
10815 msgid "B<SIOCGIFTXQLEN>, B<SIOCSIFTXQLEN>"
10816 msgstr ""
10817
10818 #. type: Plain text
10819 #: build/C/man7/netdevice.7:252
10820 msgid ""
10821 "Get or set the transmit queue length of a device using I<ifr_qlen>.  Setting "
10822 "the transmit queue length is a privileged operation."
10823 msgstr ""
10824
10825 #. type: TP
10826 #: build/C/man7/netdevice.7:252
10827 #, no-wrap
10828 msgid "B<SIOCSIFNAME>"
10829 msgstr ""
10830
10831 #. type: Plain text
10832 #: build/C/man7/netdevice.7:261
10833 msgid ""
10834 "Changes the name of the interface specified in I<ifr_name> to "
10835 "I<ifr_newname>.  This is a privileged operation.  It is allowed only when "
10836 "the interface is not up."
10837 msgstr ""
10838
10839 #. type: TP
10840 #: build/C/man7/netdevice.7:261
10841 #, no-wrap
10842 msgid "B<SIOCGIFCONF>"
10843 msgstr ""
10844
10845 #.  Slaving isn't supported in 2.2
10846 #.  .
10847 #.  .TP
10848 #.  .BR SIOCGIFSLAVE ", " SIOCSIFSLAVE
10849 #.  Get or set the slave device using
10850 #.  .IR ifr_slave .
10851 #.  Setting the slave device is a privileged operation.
10852 #.  .PP
10853 #.  FIXME add amateur radio stuff.
10854 #. type: Plain text
10855 #: build/C/man7/netdevice.7:301
10856 msgid ""
10857 "Return a list of interface (transport layer) addresses.  This currently "
10858 "means only addresses of the B<AF_INET> (IPv4) family for compatibility.  The "
10859 "user passes a I<ifconf> structure as argument to the ioctl.  It contains a "
10860 "pointer to an array of I<ifreq> structures in I<ifc_req> and its length in "
10861 "bytes in I<ifc_len>.  The kernel fills the ifreqs with all current L3 "
10862 "interface addresses that are running: I<ifr_name> contains the interface "
10863 "name (eth0:1 etc.), I<ifr_addr> the address.  The kernel returns with the "
10864 "actual length in I<ifc_len>.  If I<ifc_len> is equal to the original length "
10865 "the buffer probably has overflowed and you should retry with a bigger buffer "
10866 "to get all addresses.  When no error occurs the ioctl returns 0; otherwise "
10867 "-1.  Overflow is not an error."
10868 msgstr ""
10869
10870 #. type: Plain text
10871 #: build/C/man7/netdevice.7:307
10872 msgid ""
10873 "Most protocols support their own ioctls to configure protocol-specific "
10874 "interface options.  See the protocol man pages for a description.  For "
10875 "configuring IP addresses see B<ip>(7)."
10876 msgstr ""
10877
10878 #. type: Plain text
10879 #: build/C/man7/netdevice.7:310
10880 msgid ""
10881 "In addition some devices support private ioctls.  These are not described "
10882 "here."
10883 msgstr ""
10884
10885 #. type: Plain text
10886 #: build/C/man7/netdevice.7:318
10887 msgid ""
10888 "Strictly speaking, B<SIOCGIFCONF> and the other ioctls that accept or return "
10889 "only B<AF_INET> socket addresses, are IP specific and belong in B<ip>(7)."
10890 msgstr ""
10891
10892 #. type: Plain text
10893 #: build/C/man7/netdevice.7:323
10894 msgid ""
10895 "The names of interfaces with no addresses or that don't have the "
10896 "B<IFF_RUNNING> flag set can be found via I</proc/net/dev>."
10897 msgstr ""
10898
10899 #. type: Plain text
10900 #: build/C/man7/netdevice.7:328
10901 msgid ""
10902 "Local IPv6 IP addresses can be found via I</proc/net> or via "
10903 "B<rtnetlink>(7)."
10904 msgstr ""
10905
10906 #. type: Plain text
10907 #: build/C/man7/netdevice.7:334
10908 msgid ""
10909 "glibc 2.1 is missing the I<ifr_newname> macro in I<E<lt>net/if.hE<gt>>.  Add "
10910 "the following to your program as a workaround:"
10911 msgstr ""
10912
10913 #. type: Plain text
10914 #: build/C/man7/netdevice.7:340
10915 #, no-wrap
10916 msgid ""
10917 "#ifndef ifr_newname\n"
10918 "#define ifr_newname     ifr_ifru.ifru_slave\n"
10919 "#endif\n"
10920 msgstr ""
10921
10922 #. type: Plain text
10923 #: build/C/man7/netdevice.7:347
10924 msgid "B<proc>(5), B<capabilities>(7), B<ip>(7), B<rtnetlink>(7)"
10925 msgstr ""
10926
10927 #. type: TH
10928 #: build/C/man5/networks.5:26
10929 #, no-wrap
10930 msgid "NETWORKS"
10931 msgstr ""
10932
10933 #. type: TH
10934 #: build/C/man5/networks.5:26
10935 #, no-wrap
10936 msgid "2008-09-04"
10937 msgstr ""
10938
10939 #. type: TH
10940 #: build/C/man5/networks.5:26
10941 #, no-wrap
10942 msgid "GNU/Linux"
10943 msgstr ""
10944
10945 #. type: Plain text
10946 #: build/C/man5/networks.5:29
10947 msgid "networks - network name information"
10948 msgstr ""
10949
10950 #. type: Plain text
10951 #: build/C/man5/networks.5:35
10952 msgid ""
10953 "The file I</etc/networks> is a plain ASCII file that describes known DARPA "
10954 "networks and symbolic names for these networks.  Each line represents a "
10955 "network and has the following structure:"
10956 msgstr ""
10957
10958 #. type: Plain text
10959 #: build/C/man5/networks.5:38
10960 msgid "I<name number aliases ...>"
10961 msgstr ""
10962
10963 #. type: Plain text
10964 #: build/C/man5/networks.5:46
10965 msgid ""
10966 "where the fields are delimited by spaces or tabs.  Empty lines are ignored.  "
10967 "The hash character (B<#>) indicates the start of a comment: this character, "
10968 "and the remaining characters up to the end of the current line, are ignored "
10969 "by library functions that process the file."
10970 msgstr ""
10971
10972 #. type: Plain text
10973 #: build/C/man5/networks.5:48 build/C/man5/protocols.5:59
10974 msgid "The field descriptions are:"
10975 msgstr ""
10976
10977 #. type: TP
10978 #: build/C/man5/networks.5:48
10979 #, no-wrap
10980 msgid "I<name>"
10981 msgstr ""
10982
10983 #. type: Plain text
10984 #: build/C/man5/networks.5:53
10985 msgid ""
10986 "The symbolic name for the network.  Network names can contain any printable "
10987 "characters execept white-space characters or the comment character."
10988 msgstr ""
10989
10990 #. type: TP
10991 #: build/C/man5/networks.5:53 build/C/man5/protocols.5:67
10992 #, no-wrap
10993 msgid "I<number>"
10994 msgstr ""
10995
10996 #. type: Plain text
10997 #: build/C/man5/networks.5:58
10998 msgid ""
10999 "The official number for this network in numbers-and-dots notation (see "
11000 "B<inet>(3)).  The trailing \".0\" (for the host component of the network "
11001 "address) may be omitted."
11002 msgstr ""
11003
11004 #. type: TP
11005 #: build/C/man5/networks.5:58 build/C/man5/protocols.5:71 build/C/man5/services.5:120
11006 #, no-wrap
11007 msgid "I<aliases>"
11008 msgstr ""
11009
11010 #. type: Plain text
11011 #: build/C/man5/networks.5:61
11012 msgid "Optional aliases for the network."
11013 msgstr ""
11014
11015 #. type: Plain text
11016 #: build/C/man5/networks.5:70
11017 msgid ""
11018 "This file is read by the B<route>(8)  and B<netstat>(8)  utilities.  Only "
11019 "Class A, B or C networks are supported, partitioned networks (i.e., "
11020 "network/26 or network/28) are not supported by this facility."
11021 msgstr ""
11022
11023 #. type: Plain text
11024 #: build/C/man5/networks.5:74
11025 msgid "The networks definition file."
11026 msgstr ""
11027
11028 #. type: Plain text
11029 #: build/C/man5/networks.5:80
11030 msgid ""
11031 "B<getnetbyaddr>(3), B<getnetbyname>(3), B<getnetent>(3), B<netstat>(8), "
11032 "B<route>(8)"
11033 msgstr ""
11034
11035 #. type: TH
11036 #: build/C/man8/nscd.8:23
11037 #, no-wrap
11038 msgid "NSCD"
11039 msgstr ""
11040
11041 #. type: Plain text
11042 #: build/C/man8/nscd.8:26
11043 msgid "nscd - name service cache daemon"
11044 msgstr ""
11045
11046 #. type: Plain text
11047 #: build/C/man8/nscd.8:34
11048 msgid ""
11049 "Nscd is a daemon that provides a cache for the most common name service "
11050 "requests.  The default configuration file, I</etc/nscd.conf>, determines the "
11051 "behavior of the cache daemon.  See B<nscd.conf>(5)."
11052 msgstr ""
11053
11054 #. type: Plain text
11055 #: build/C/man8/nscd.8:47
11056 msgid ""
11057 "Nscd provides caching for accesses of the B<passwd>(5), B<group>(5), and "
11058 "B<hosts>(5)  databases through standard libc interfaces, such as "
11059 "B<getpwnam>(3), B<getpwuid>(3), B<getgrnam>(3), B<getgrgid>(3), "
11060 "B<gethostbyname>(3), and others."
11061 msgstr ""
11062
11063 #. type: Plain text
11064 #: build/C/man8/nscd.8:56
11065 msgid ""
11066 "There are two caches for each database: a positive one for items found, and "
11067 "a negative one for items not found.  Each cache has a separate TTL "
11068 "(time-to-live)  period for its data.  Note that the shadow file is "
11069 "specifically not cached.  B<getspnam>(3)  calls remain uncached as a result."
11070 msgstr ""
11071
11072 #. type: SH
11073 #: build/C/man8/nscd.8:56
11074 #, no-wrap
11075 msgid "OPTIONS"
11076 msgstr ""
11077
11078 #. type: TP
11079 #: build/C/man8/nscd.8:57
11080 #, no-wrap
11081 msgid "B<--help>"
11082 msgstr ""
11083
11084 #. type: Plain text
11085 #: build/C/man8/nscd.8:60
11086 msgid "will give you a list with all options and what they do."
11087 msgstr ""
11088
11089 #. type: Plain text
11090 #: build/C/man8/nscd.8:83
11091 msgid ""
11092 "The daemon will try to watch for changes in configuration files appropriate "
11093 "for each database (e.g., I</etc/passwd> for the I<passwd> database or "
11094 "I</etc/hosts> and I</etc/resolv.conf> for the I<hosts> database), and flush "
11095 "the cache when these are changed.  However, this will happen only after a "
11096 "short delay (unless the B<inotify>(7)  mechanism is available and glibc 2.9 "
11097 "or later is available), and this auto-detection does not cover configuration "
11098 "files required by nonstandard NSS modules, if any are specified in "
11099 "I</etc/nsswitch.conf>.  In that case, you need to run the following command "
11100 "after changing the configuration file of the database so that B<nscd> "
11101 "invalidates its cache:"
11102 msgstr ""
11103
11104 #. type: Plain text
11105 #: build/C/man8/nscd.8:85
11106 #, no-wrap
11107 msgid "    $ B<nscd -i> I<E<lt>databaseE<gt>>\n"
11108 msgstr ""
11109
11110 #.  .SH AUTHOR
11111 #.  .B nscd
11112 #.  was written by Thorsten Kukuk and Ulrich Drepper.
11113 #. type: Plain text
11114 #: build/C/man8/nscd.8:91
11115 msgid "B<nscd.conf>(5), B<nsswitch.conf>(5)"
11116 msgstr ""
11117
11118 #. type: TH
11119 #: build/C/man5/nscd.conf.5:20
11120 #, no-wrap
11121 msgid "NSCD.CONF"
11122 msgstr ""
11123
11124 #. type: Plain text
11125 #: build/C/man5/nscd.conf.5:23
11126 msgid "/etc/nscd.conf - name service cache daemon configuration file"
11127 msgstr ""
11128
11129 #. type: Plain text
11130 #: build/C/man5/nscd.conf.5:36
11131 msgid ""
11132 "The file I</etc/nscd.conf> is read from B<nscd>(8)  at startup.  Each line "
11133 "specifies either an attribute and a value, or an attribute, service, and a "
11134 "value.  Fields are separated either by SPACE or TAB characters.  A "
11135 "\\(aq#\\(aq (number sign) indicates the beginning of a comment; following "
11136 "characters, up to the end of the line, are not interpreted by nscd."
11137 msgstr ""
11138
11139 #. type: Plain text
11140 #: build/C/man5/nscd.conf.5:39
11141 msgid ""
11142 "Valid services are I<passwd>, I<group>, I<hosts>, I<services> or "
11143 "I<netgroup>."
11144 msgstr ""
11145
11146 #. type: Plain text
11147 #: build/C/man5/nscd.conf.5:42
11148 msgid "B<logfile> I<debug-file-name>"
11149 msgstr ""
11150
11151 #. type: Plain text
11152 #: build/C/man5/nscd.conf.5:44
11153 msgid "Specifies name of the file to which debug info should be written."
11154 msgstr ""
11155
11156 #. type: Plain text
11157 #: build/C/man5/nscd.conf.5:48
11158 msgid "B<debug-level> I<value>"
11159 msgstr ""
11160
11161 #. type: Plain text
11162 #: build/C/man5/nscd.conf.5:51
11163 msgid "Sets the desired debug level.  The default is 0."
11164 msgstr ""
11165
11166 #. type: Plain text
11167 #: build/C/man5/nscd.conf.5:55
11168 msgid "B<threads> I<number>"
11169 msgstr ""
11170
11171 #. type: Plain text
11172 #: build/C/man5/nscd.conf.5:59
11173 msgid ""
11174 "This is the number of threads that are started to wait for requests.  At "
11175 "least five threads will always be created."
11176 msgstr ""
11177
11178 #. type: Plain text
11179 #: build/C/man5/nscd.conf.5:63
11180 msgid "B<max-threads> I<number>"
11181 msgstr ""
11182
11183 #. type: Plain text
11184 #: build/C/man5/nscd.conf.5:66
11185 msgid "Specifies the maximum number of threads.  The default is 32."
11186 msgstr ""
11187
11188 #. type: Plain text
11189 #: build/C/man5/nscd.conf.5:70
11190 msgid "B<server-user> I<user>"
11191 msgstr ""
11192
11193 #. type: Plain text
11194 #: build/C/man5/nscd.conf.5:74
11195 msgid ""
11196 "If this option is set, nscd will run as this user and not as root.  If a "
11197 "separate cache for every user is used (-S parameter), this option is "
11198 "ignored."
11199 msgstr ""
11200
11201 #. type: Plain text
11202 #: build/C/man5/nscd.conf.5:78
11203 msgid "B<stat-user> I<user>"
11204 msgstr ""
11205
11206 #. type: Plain text
11207 #: build/C/man5/nscd.conf.5:80
11208 msgid "Specifies the user who is allowed to request statistics."
11209 msgstr ""
11210
11211 #. type: Plain text
11212 #: build/C/man5/nscd.conf.5:85
11213 msgid "B<reload-count> unlimited | I<number>"
11214 msgstr ""
11215
11216 #. type: Plain text
11217 #: build/C/man5/nscd.conf.5:89
11218 msgid ""
11219 "Limit on the number of times a cached entry gets reloaded without being used "
11220 "before it gets removed.  The default is 5."
11221 msgstr ""
11222
11223 #. type: Plain text
11224 #: build/C/man5/nscd.conf.5:93
11225 msgid "B<paranoia> I<E<lt>yes|noE<gt>>"
11226 msgstr ""
11227
11228 #. type: Plain text
11229 #: build/C/man5/nscd.conf.5:96
11230 msgid ""
11231 "Enabling paranoia mode causes nscd to restart itself periodically.  The "
11232 "default is no."
11233 msgstr ""
11234
11235 #. type: Plain text
11236 #: build/C/man5/nscd.conf.5:100
11237 msgid "B<restart-interval> I<time>"
11238 msgstr ""
11239
11240 #. type: Plain text
11241 #: build/C/man5/nscd.conf.5:108
11242 msgid ""
11243 "Sets the restart interval to I<time> seconds if periodic restart is enabled "
11244 "by enabling B<paranoia> mode.  The default is 3600."
11245 msgstr ""
11246
11247 #. type: Plain text
11248 #: build/C/man5/nscd.conf.5:113
11249 msgid "B<enable-cache> I<service> I<E<lt>yes|noE<gt>>"
11250 msgstr ""
11251
11252 #. type: Plain text
11253 #: build/C/man5/nscd.conf.5:118
11254 msgid "Enables or disables the specified I<service> cache.  The default is no."
11255 msgstr ""
11256
11257 #. type: Plain text
11258 #: build/C/man5/nscd.conf.5:123
11259 msgid "B<positive-time-to-live> I<service> I<value>"
11260 msgstr ""
11261
11262 #. type: Plain text
11263 #: build/C/man5/nscd.conf.5:131
11264 msgid ""
11265 "Sets the TTL (time-to-live) for positive entries (successful queries)  in "
11266 "the specified cache for I<service>.  I<Value> is in seconds.  Larger values "
11267 "increase cache hit rates and reduce mean response times, but increase "
11268 "problems with cache coherence."
11269 msgstr ""
11270
11271 #. type: Plain text
11272 #: build/C/man5/nscd.conf.5:136
11273 msgid "B<negative-time-to-live> I<service> I<value>"
11274 msgstr ""
11275
11276 #. type: Plain text
11277 #: build/C/man5/nscd.conf.5:146
11278 msgid ""
11279 "Sets the TTL (time-to-live) for negative entries (unsuccessful queries)  in "
11280 "the specified cache for I<service>.  I<Value> is in seconds.  Can result in "
11281 "significant performance improvements if there are several files owned by "
11282 "UIDs (user IDs) not in system databases (for example untarring the Linux "
11283 "kernel sources as root); should be kept small to reduce cache coherency "
11284 "problems."
11285 msgstr ""
11286
11287 #. type: Plain text
11288 #: build/C/man5/nscd.conf.5:151
11289 msgid "B<suggested-size> I<service> I<value>"
11290 msgstr ""
11291
11292 #. type: Plain text
11293 #: build/C/man5/nscd.conf.5:156
11294 msgid ""
11295 "This is the internal hash table size, I<value> should remain a prime number "
11296 "for optimum efficiency.  The default is 211."
11297 msgstr ""
11298
11299 #. type: Plain text
11300 #: build/C/man5/nscd.conf.5:161
11301 msgid "B<check-files> I<service> I<E<lt>yes|noE<gt>>"
11302 msgstr ""
11303
11304 #. type: Plain text
11305 #: build/C/man5/nscd.conf.5:173
11306 msgid ""
11307 "Enables or disables checking the file belonging to the specified I<service> "
11308 "for changes.  The files are I</etc/passwd>, I</etc/group>, I</etc/hosts>, "
11309 "I</etc/services> and I</etc/netgroup>.  The default is yes."
11310 msgstr ""
11311
11312 #. type: Plain text
11313 #: build/C/man5/nscd.conf.5:178
11314 msgid "B<persistent> I<service> I<E<lt>yes|noE<gt>>"
11315 msgstr ""
11316
11317 #. type: Plain text
11318 #: build/C/man5/nscd.conf.5:185
11319 msgid ""
11320 "Keep the content of the cache for I<service> over server restarts; useful "
11321 "when B<paranoia> mode is set.  The default is no."
11322 msgstr ""
11323
11324 #. type: Plain text
11325 #: build/C/man5/nscd.conf.5:190
11326 msgid "B<shared> I<service> I<E<lt>yes|noE<gt>>"
11327 msgstr ""
11328
11329 #. type: Plain text
11330 #: build/C/man5/nscd.conf.5:197
11331 msgid ""
11332 "The memory mapping of the nscd databases for I<service> is shared with the "
11333 "clients so that they can directly search in them instead of having to ask "
11334 "the daemon over the socket each time a lookup is performed.  The default is "
11335 "no."
11336 msgstr ""
11337
11338 #. type: Plain text
11339 #: build/C/man5/nscd.conf.5:202
11340 msgid "B<max-db-size> I<service> I<bytes>"
11341 msgstr ""
11342
11343 #. type: Plain text
11344 #: build/C/man5/nscd.conf.5:206
11345 msgid ""
11346 "The maximum allowable size, in bytes, of the database files for the "
11347 "I<service>.  The default is 33554432."
11348 msgstr ""
11349
11350 #. type: Plain text
11351 #: build/C/man5/nscd.conf.5:211
11352 msgid "B<auto-propagate> I<service> I<E<lt>yes|noE<gt>>"
11353 msgstr ""
11354
11355 #. type: Plain text
11356 #: build/C/man5/nscd.conf.5:231
11357 msgid ""
11358 "When set to I<no> for I<passwd> or I<group> service, then the I<.byname> "
11359 "requests are not added to I<passwd.byuid> or I<group.bygid> cache.  This can "
11360 "help with tables containing multiple records for the same ID.  The default "
11361 "is yes.  This option is valid only for services I<passwd> and I<group>."
11362 msgstr ""
11363
11364 #.  .SH AUTHOR
11365 #.  .B nscd
11366 #.  was written by Thorsten Kukuk and Ulrich Drepper.
11367 #. type: Plain text
11368 #: build/C/man5/nscd.conf.5:237
11369 msgid "B<nscd>(8)"
11370 msgstr ""
11371
11372 #. type: TH
11373 #: build/C/man5/nss.5:19
11374 #, no-wrap
11375 msgid "NSS"
11376 msgstr ""
11377
11378 #. type: Plain text
11379 #: build/C/man5/nss.5:22
11380 msgid "nss - Name Service Switch configuration file"
11381 msgstr ""
11382
11383 #. type: Plain text
11384 #: build/C/man5/nss.5:29
11385 msgid ""
11386 "Each call to a function which retrieves data from a system database like the "
11387 "password or group database is handled by the Name Service Switch "
11388 "implementation in the GNU C library.  The various services provided are "
11389 "implemented by independent modules, each of which naturally varies widely "
11390 "from the other."
11391 msgstr ""
11392
11393 #. type: Plain text
11394 #: build/C/man5/nss.5:38
11395 msgid ""
11396 "The default implementations coming with the GNU C library are by default "
11397 "conservative and do not use unsafe data.  This might be very costly in some "
11398 "situations, especially when the databases are large.  Some modules allow the "
11399 "system administrator to request taking shortcuts if these are known to be "
11400 "safe.  It is then the system administrator's responsibility to ensure the "
11401 "assumption is correct."
11402 msgstr ""
11403
11404 #. type: Plain text
11405 #: build/C/man5/nss.5:42
11406 msgid ""
11407 "There are other modules where the implementation changed over time.  If an "
11408 "implementation used to sacrifice speed for memory consumption it might "
11409 "create problems if the preference is switched."
11410 msgstr ""
11411
11412 #. type: Plain text
11413 #: build/C/man5/nss.5:51
11414 msgid ""
11415 "The I</etc/default/nss> file contains a number of variable assignments.  "
11416 "Each variable controls the behavior of one or more NSS modules.  White "
11417 "spaces are ignored.  Lines beginning with \\(aq#\\(aq are treated as "
11418 "comments."
11419 msgstr ""
11420
11421 #. type: Plain text
11422 #: build/C/man5/nss.5:53
11423 msgid "The variables currently recognized are:"
11424 msgstr ""
11425
11426 #. type: TP
11427 #: build/C/man5/nss.5:53
11428 #, no-wrap
11429 msgid "B<NETID_AUTHORITATIVE => I<TRUE>|I<FALSE>"
11430 msgstr ""
11431
11432 #. type: Plain text
11433 #: build/C/man5/nss.5:68
11434 msgid ""
11435 "If set to TRUE, the NIS backend for the B<initgroups>(3)  function will "
11436 "accept the information from the I<netid.byname> NIS map as authoritative.  "
11437 "This can speed up the function significantly if the I<group.byname> map is "
11438 "large.  The content of the I<netid.byname> map is used B<as is>.  The system "
11439 "administrator has to make sure it is correctly generated."
11440 msgstr ""
11441
11442 #. type: TP
11443 #: build/C/man5/nss.5:68
11444 #, no-wrap
11445 msgid "B<SERVICES_AUTHORITATIVE => I<TRUE>|I<FALSE>"
11446 msgstr ""
11447
11448 #. type: Plain text
11449 #: build/C/man5/nss.5:80
11450 msgid ""
11451 "If set to TRUE, the NIS backend for the B<getservbyname>(3)  and "
11452 "B<getservbyname_r>(3)  functions will assume that the "
11453 "I<services.byservicename> NIS map exists and is authoritative, particularly "
11454 "that it contains both keys with /proto and without /proto for both primary "
11455 "service names and service aliases.  The system administrator has to make "
11456 "sure it is correctly generated."
11457 msgstr ""
11458
11459 #. type: TP
11460 #: build/C/man5/nss.5:80
11461 #, no-wrap
11462 msgid "B<SETENT_BATCH_READ => I<TRUE>|I<FALSE>"
11463 msgstr ""
11464
11465 #. type: Plain text
11466 #: build/C/man5/nss.5:98
11467 msgid ""
11468 "If set to TRUE, the NIS backend for the B<setpwent>(3)  and B<setgrent>(3)  "
11469 "functions will read the entire database at once and then hand out the "
11470 "requests one by one from memory with every corresponding B<getpwent>(3)  or "
11471 "B<getgrent>(3)  call respectively.  Otherwise each B<getpwent>(3)  or "
11472 "B<getgrent>(3)  call might result in a network communication with the server "
11473 "to get the next entry."
11474 msgstr ""
11475
11476 #. type: Plain text
11477 #: build/C/man5/nss.5:100
11478 msgid "I</etc/default/nss>"
11479 msgstr ""
11480
11481 #. type: Plain text
11482 #: build/C/man5/nss.5:102
11483 msgid "The default configuration corresponds to the following configuration file:"
11484 msgstr ""
11485
11486 #.  .SH AUTHOR
11487 #.  Ulrich Drepper <drepper@redhat.com>
11488 #. type: Plain text
11489 #: build/C/man5/nss.5:110
11490 #, no-wrap
11491 msgid ""
11492 "NETID_AUTHORITATIVE=FALSE\n"
11493 "SERVICES_AUTHORITATIVE=FALSE\n"
11494 "SETENT_BATCH_READ=FALSE\n"
11495 msgstr ""
11496
11497 #. type: Plain text
11498 #: build/C/man5/nss.5:112
11499 msgid "I<nsswitch.conf>"
11500 msgstr ""
11501
11502 #. type: TH
11503 #: build/C/man5/nsswitch.conf.5:25
11504 #, no-wrap
11505 msgid "NSSWITCH.CONF"
11506 msgstr ""
11507
11508 #. type: Plain text
11509 #: build/C/man5/nsswitch.conf.5:28
11510 msgid "nsswitch.conf - Name Service Switch configuration file"
11511 msgstr ""
11512
11513 #. type: Plain text
11514 #: build/C/man5/nsswitch.conf.5:36
11515 msgid ""
11516 "The Name Service Switch (NSS) configuration file, I</etc/nsswitch.conf>, is "
11517 "used by the GNU C Library to determine the sources from which to obtain "
11518 "name-service information in a range of categories, and in what order.  Each "
11519 "category of information is identified by a database name."
11520 msgstr ""
11521
11522 #. type: Plain text
11523 #: build/C/man5/nsswitch.conf.5:42
11524 msgid ""
11525 "The file is plain ASCII text, with columns separated by spaces or tab "
11526 "characters.  The first column specifies the database name.  The remaining "
11527 "columns describe the order of sources to query and a limited set of actions "
11528 "that can be performed by lookup result."
11529 msgstr ""
11530
11531 #. type: Plain text
11532 #: build/C/man5/nsswitch.conf.5:44
11533 msgid "The following databases are understood by the GNU C Library:"
11534 msgstr ""
11535
11536 #. type: Plain text
11537 #: build/C/man5/nsswitch.conf.5:49
11538 msgid "Mail aliases, used by B<getaliasent>(3)  and related functions."
11539 msgstr ""
11540
11541 #. type: Plain text
11542 #: build/C/man5/nsswitch.conf.5:52
11543 msgid "Ethernet numbers."
11544 msgstr ""
11545
11546 #. type: Plain text
11547 #: build/C/man5/nsswitch.conf.5:57
11548 msgid "Groups of users, used by B<getgrent>(3)  and related functions."
11549 msgstr ""
11550
11551 #. type: Plain text
11552 #: build/C/man5/nsswitch.conf.5:62
11553 msgid "Host names and numbers, used by B<gethostbyname>(3)  and related functions."
11554 msgstr ""
11555
11556 #. type: Plain text
11557 #: build/C/man5/nsswitch.conf.5:67
11558 msgid "Supplementary group access list, used by B<getgrouplist>(3)  function."
11559 msgstr ""
11560
11561 #. type: Plain text
11562 #: build/C/man5/nsswitch.conf.5:71
11563 msgid ""
11564 "Network-wide list of hosts and users, used for access rules.  C libraries "
11565 "before glibc 2.1 supported netgroups only over NIS."
11566 msgstr ""
11567
11568 #. type: Plain text
11569 #: build/C/man5/nsswitch.conf.5:76
11570 msgid "Network names and numbers, used by B<getnetent>(3)  and related functions."
11571 msgstr ""
11572
11573 #. type: Plain text
11574 #: build/C/man5/nsswitch.conf.5:81
11575 msgid "User passwords, used by B<getpwent>(3)  and related functions."
11576 msgstr ""
11577
11578 #. type: Plain text
11579 #: build/C/man5/nsswitch.conf.5:86
11580 msgid "Network protocols, used by B<getprotoent>(3)  and related functions."
11581 msgstr ""
11582
11583 #. type: TP
11584 #: build/C/man5/nsswitch.conf.5:86
11585 #, no-wrap
11586 msgid "B<publickey>"
11587 msgstr ""
11588
11589 #. type: Plain text
11590 #: build/C/man5/nsswitch.conf.5:89
11591 msgid "Public and secret keys for Secure_RPC used by NFS and NIS+."
11592 msgstr ""
11593
11594 #. type: Plain text
11595 #: build/C/man5/nsswitch.conf.5:94
11596 msgid ""
11597 "Remote procedure call names and numbers, used by B<getrpcbyname>(3)  and "
11598 "related functions."
11599 msgstr ""
11600
11601 #. type: Plain text
11602 #: build/C/man5/nsswitch.conf.5:99
11603 msgid "Network services, used by B<getservent>(3)  and related functions."
11604 msgstr ""
11605
11606 #. type: Plain text
11607 #: build/C/man5/nsswitch.conf.5:104
11608 msgid "Shadow user passwords, used by B<getspnam>(3)  and related functions."
11609 msgstr ""
11610
11611 #. type: Plain text
11612 #: build/C/man5/nsswitch.conf.5:108
11613 msgid "Here is an example I</etc/nsswitch.conf> file:"
11614 msgstr ""
11615
11616 #. type: TP
11617 #: build/C/man5/nsswitch.conf.5:111
11618 #, no-wrap
11619 msgid "passwd:"
11620 msgstr ""
11621
11622 #. type: Plain text
11623 #: build/C/man5/nsswitch.conf.5:114 build/C/man5/nsswitch.conf.5:117 build/C/man5/nsswitch.conf.5:120
11624 msgid "compat"
11625 msgstr ""
11626
11627 #. type: TP
11628 #: build/C/man5/nsswitch.conf.5:114
11629 #, no-wrap
11630 msgid "group:"
11631 msgstr ""
11632
11633 #. type: TP
11634 #: build/C/man5/nsswitch.conf.5:117
11635 #, no-wrap
11636 msgid "shadow:"
11637 msgstr ""
11638
11639 #. type: TP
11640 #: build/C/man5/nsswitch.conf.5:121
11641 #, no-wrap
11642 msgid "hosts:"
11643 msgstr ""
11644
11645 #. type: Plain text
11646 #: build/C/man5/nsswitch.conf.5:124
11647 msgid "dns [!UNAVAIL=return] files"
11648 msgstr ""
11649
11650 #. type: TP
11651 #: build/C/man5/nsswitch.conf.5:124
11652 #, no-wrap
11653 msgid "networks:"
11654 msgstr ""
11655
11656 #. type: Plain text
11657 #: build/C/man5/nsswitch.conf.5:127 build/C/man5/nsswitch.conf.5:130 build/C/man5/nsswitch.conf.5:133 build/C/man5/nsswitch.conf.5:136 build/C/man5/nsswitch.conf.5:139
11658 msgid "nis [NOTFOUND=return] files"
11659 msgstr ""
11660
11661 #. type: TP
11662 #: build/C/man5/nsswitch.conf.5:127
11663 #, no-wrap
11664 msgid "ethers:"
11665 msgstr ""
11666
11667 #. type: TP
11668 #: build/C/man5/nsswitch.conf.5:130
11669 #, no-wrap
11670 msgid "protocols:"
11671 msgstr ""
11672
11673 #. type: TP
11674 #: build/C/man5/nsswitch.conf.5:133
11675 #, no-wrap
11676 msgid "rpc:"
11677 msgstr ""
11678
11679 #. type: TP
11680 #: build/C/man5/nsswitch.conf.5:136
11681 #, no-wrap
11682 msgid "services:"
11683 msgstr ""
11684
11685 #. type: Plain text
11686 #: build/C/man5/nsswitch.conf.5:144
11687 msgid "The first column is the database name.  The remaining columns specify:"
11688 msgstr ""
11689
11690 #. type: Plain text
11691 #: build/C/man5/nsswitch.conf.5:148
11692 msgid ""
11693 "One or more service specifications e.g., \"files\", \"db\", or \"nis\".  The "
11694 "order of the services on the line determines the order in which those "
11695 "services will be queried, in turn, until a result is found."
11696 msgstr ""
11697
11698 #. type: Plain text
11699 #: build/C/man5/nsswitch.conf.5:151
11700 msgid ""
11701 "Optional actions to perform if a particular result is obtained from the "
11702 "preceding service, e.g., \"[NOTFOUND=return]\"."
11703 msgstr ""
11704
11705 #. type: Plain text
11706 #: build/C/man5/nsswitch.conf.5:177
11707 msgid ""
11708 "The service specifications supported on your system depend on the presence "
11709 "of shared libraries, and are therefore extensible.  Libraries called "
11710 "I</lib/libnss_SERVICE.so.>B<X> will provide the named I<SERVICE>.  On a "
11711 "standard installation, you can use \"files\", \"db\", \"nis\", and "
11712 "\"nisplus\".  For the B<hosts> database, you can additionally specify "
11713 "\"dns\".  For the B<passwd>, B<group>, and B<shadow> databases, you can "
11714 "additionally specify \"compat\" (see B<Compatibility mode> below).  The "
11715 "version number B<X> may be 1 for glibc 2.0, or 2 for glibc 2.1 and later.  "
11716 "On systems with additional libraries installed, you may have access to "
11717 "further services such as \"hesiod\", \"ldap\", \"winbind\" and \"wins\"."
11718 msgstr ""
11719
11720 #. type: Plain text
11721 #: build/C/man5/nsswitch.conf.5:182
11722 msgid ""
11723 "An action may also be specified following a service specification.  The "
11724 "action modifies the behavior following a result obtained from the preceding "
11725 "data source.  Action items take the general form:"
11726 msgstr ""
11727
11728 #. type: Plain text
11729 #: build/C/man5/nsswitch.conf.5:185
11730 msgid "[I<STATUS>=I<ACTION>]"
11731 msgstr ""
11732
11733 #. type: Plain text
11734 #: build/C/man5/nsswitch.conf.5:187
11735 msgid "[!I<STATUS>=I<ACTION>]"
11736 msgstr ""
11737
11738 #. type: Plain text
11739 #: build/C/man5/nsswitch.conf.5:190
11740 msgid "where"
11741 msgstr ""
11742
11743 #. type: Plain text
11744 #: build/C/man5/nsswitch.conf.5:201
11745 msgid "I<STATUS> =E<gt> B<success> | B<notfound> | B<unavail> | B<tryagain>"
11746 msgstr ""
11747
11748 #. type: Plain text
11749 #: build/C/man5/nsswitch.conf.5:207
11750 msgid "I<ACTION> =E<gt> B<return> | B<continue>"
11751 msgstr ""
11752
11753 #. type: Plain text
11754 #: build/C/man5/nsswitch.conf.5:212
11755 msgid ""
11756 "The ! negates the test, matching all possible results except the one "
11757 "specified.  The case of the keywords is not significant."
11758 msgstr ""
11759
11760 #. type: Plain text
11761 #: build/C/man5/nsswitch.conf.5:217
11762 msgid ""
11763 "The I<STATUS> value is matched against the result of the lookup function "
11764 "called by the preceding service specification, and can be one of:"
11765 msgstr ""
11766
11767 #. type: TP
11768 #: build/C/man5/nsswitch.conf.5:218
11769 #, no-wrap
11770 msgid "B<success>"
11771 msgstr ""
11772
11773 #. type: Plain text
11774 #: build/C/man5/nsswitch.conf.5:222
11775 msgid ""
11776 "No error occurred and the requested entry is returned.  The default action "
11777 "for this condition is \"return\"."
11778 msgstr ""
11779
11780 #. type: TP
11781 #: build/C/man5/nsswitch.conf.5:222
11782 #, no-wrap
11783 msgid "B<notfound>"
11784 msgstr ""
11785
11786 #. type: Plain text
11787 #: build/C/man5/nsswitch.conf.5:226
11788 msgid ""
11789 "The lookup succeeded, but the requested entry was not found.  The default "
11790 "action for this condition is \"continue\"."
11791 msgstr ""
11792
11793 #. type: TP
11794 #: build/C/man5/nsswitch.conf.5:226
11795 #, no-wrap
11796 msgid "B<unavail>"
11797 msgstr ""
11798
11799 #. type: Plain text
11800 #: build/C/man5/nsswitch.conf.5:233
11801 msgid ""
11802 "The service is permanently unavailable.  This can mean either that the "
11803 "required file cannot be read, or, for network services, that the server is "
11804 "not available or does not allow queries.  The default action for this "
11805 "condition is \"continue\"."
11806 msgstr ""
11807
11808 #. type: TP
11809 #: build/C/man5/nsswitch.conf.5:233
11810 #, no-wrap
11811 msgid "B<tryagain>"
11812 msgstr ""
11813
11814 #. type: Plain text
11815 #: build/C/man5/nsswitch.conf.5:239
11816 msgid ""
11817 "The service is temporarily unavailable.  This could mean a file is locked or "
11818 "a server currently cannot accept more connections.  The default action for "
11819 "this condition is \"continue\"."
11820 msgstr ""
11821
11822 #. type: Plain text
11823 #: build/C/man5/nsswitch.conf.5:244
11824 msgid "The I<ACTION> value can be one of:"
11825 msgstr ""
11826
11827 #. type: TP
11828 #: build/C/man5/nsswitch.conf.5:245
11829 #, no-wrap
11830 msgid "B<return>"
11831 msgstr ""
11832
11833 #. type: Plain text
11834 #: build/C/man5/nsswitch.conf.5:257
11835 msgid ""
11836 "Return a result now.  Do not call any further lookup functions.  However, "
11837 "for compatibility reasons, if this is the selected action for the B<group> "
11838 "database and the B<notfound> status, and the configuration file does not "
11839 "contain the B<initgroups> line, the next lookup function is always called, "
11840 "without affecting the search result."
11841 msgstr ""
11842
11843 #. type: TP
11844 #: build/C/man5/nsswitch.conf.5:257
11845 #, no-wrap
11846 msgid "B<continue>"
11847 msgstr ""
11848
11849 #. type: Plain text
11850 #: build/C/man5/nsswitch.conf.5:260
11851 msgid "Call the next lookup function."
11852 msgstr ""
11853
11854 #. type: SS
11855 #: build/C/man5/nsswitch.conf.5:261
11856 #, no-wrap
11857 msgid "Compatibility mode (compat)"
11858 msgstr ""
11859
11860 #. type: Plain text
11861 #: build/C/man5/nsswitch.conf.5:267
11862 msgid ""
11863 "The NSS \"compat\" service is similar to \"files\" except that it "
11864 "additionally permits special entries in I</etc/passwd> for granting users or "
11865 "members of netgroups access to the system.  The following entries are valid "
11866 "in this mode:"
11867 msgstr ""
11868
11869 #. type: TP
11870 #: build/C/man5/nsswitch.conf.5:268
11871 #, no-wrap
11872 msgid "B<+>I<user>"
11873 msgstr ""
11874
11875 #. type: Plain text
11876 #: build/C/man5/nsswitch.conf.5:273
11877 msgid "Include the specified I<user> from the NIS passwd map."
11878 msgstr ""
11879
11880 #. type: TP
11881 #: build/C/man5/nsswitch.conf.5:273
11882 #, no-wrap
11883 msgid "B<+@>I<netgroup>"
11884 msgstr ""
11885
11886 #. type: Plain text
11887 #: build/C/man5/nsswitch.conf.5:277
11888 msgid "Include all users in the given I<netgroup>."
11889 msgstr ""
11890
11891 #. type: TP
11892 #: build/C/man5/nsswitch.conf.5:277
11893 #, no-wrap
11894 msgid "B<->I<user>"
11895 msgstr ""
11896
11897 #. type: Plain text
11898 #: build/C/man5/nsswitch.conf.5:282
11899 msgid "Exclude the specified I<user> from the NIS passwd map."
11900 msgstr ""
11901
11902 #. type: TP
11903 #: build/C/man5/nsswitch.conf.5:282
11904 #, no-wrap
11905 msgid "B<-@>I<netgroup>"
11906 msgstr ""
11907
11908 #. type: Plain text
11909 #: build/C/man5/nsswitch.conf.5:286
11910 msgid "Exclude all users in the given I<netgroup>."
11911 msgstr ""
11912
11913 #. type: TP
11914 #: build/C/man5/nsswitch.conf.5:286
11915 #, no-wrap
11916 msgid "B<+>"
11917 msgstr ""
11918
11919 #. type: Plain text
11920 #: build/C/man5/nsswitch.conf.5:290
11921 msgid ""
11922 "Include every user, except previously excluded ones, from the NIS passwd "
11923 "map."
11924 msgstr ""
11925
11926 #. type: Plain text
11927 #: build/C/man5/nsswitch.conf.5:298
11928 msgid ""
11929 "By default the source is \"nis\", but this may be overridden by specifying "
11930 "\"nisplus\" as the source for the pseudo-databases B<passwd_compat>, "
11931 "B<group_compat>, and B<shadow_compat>."
11932 msgstr ""
11933
11934 #. type: Plain text
11935 #: build/C/man5/nsswitch.conf.5:305
11936 msgid ""
11937 "A service named I<SERVICE> is implemented by a shared object library named "
11938 "I<libnss_SERVICE.so.>B<X> that resides in I</lib>."
11939 msgstr ""
11940
11941 #. type: Plain text
11942 #: build/C/man5/nsswitch.conf.5:310
11943 msgid "NSS configuration file."
11944 msgstr ""
11945
11946 #. type: TP
11947 #: build/C/man5/nsswitch.conf.5:310
11948 #, no-wrap
11949 msgid "I</lib/libnss_compat.so.>B<X>"
11950 msgstr ""
11951
11952 #. type: Plain text
11953 #: build/C/man5/nsswitch.conf.5:313
11954 msgid "implements \"compat\" source."
11955 msgstr ""
11956
11957 #. type: TP
11958 #: build/C/man5/nsswitch.conf.5:313
11959 #, no-wrap
11960 msgid "I</lib/libnss_db.so.>B<X>"
11961 msgstr ""
11962
11963 #. type: Plain text
11964 #: build/C/man5/nsswitch.conf.5:316
11965 msgid "implements \"db\" source."
11966 msgstr ""
11967
11968 #. type: TP
11969 #: build/C/man5/nsswitch.conf.5:316
11970 #, no-wrap
11971 msgid "I</lib/libnss_dns.so.>B<X>"
11972 msgstr ""
11973
11974 #. type: Plain text
11975 #: build/C/man5/nsswitch.conf.5:319
11976 msgid "implements \"dns\" source."
11977 msgstr ""
11978
11979 #. type: TP
11980 #: build/C/man5/nsswitch.conf.5:319
11981 #, no-wrap
11982 msgid "I</lib/libnss_files.so.>B<X>"
11983 msgstr ""
11984
11985 #. type: Plain text
11986 #: build/C/man5/nsswitch.conf.5:322
11987 msgid "implements \"files\" source."
11988 msgstr ""
11989
11990 #. type: TP
11991 #: build/C/man5/nsswitch.conf.5:322
11992 #, no-wrap
11993 msgid "I</lib/libnss_hesiod.so.>B<X>"
11994 msgstr ""
11995
11996 #. type: Plain text
11997 #: build/C/man5/nsswitch.conf.5:325
11998 msgid "implements \"hesiod\" source."
11999 msgstr ""
12000
12001 #. type: TP
12002 #: build/C/man5/nsswitch.conf.5:325
12003 #, no-wrap
12004 msgid "I</lib/libnss_nis.so.>B<X>"
12005 msgstr ""
12006
12007 #. type: Plain text
12008 #: build/C/man5/nsswitch.conf.5:328
12009 msgid "implements \"nis\" source."
12010 msgstr ""
12011
12012 #. type: TP
12013 #: build/C/man5/nsswitch.conf.5:328
12014 #, no-wrap
12015 msgid "I</lib/libnss_nisplus.so.>B<X>"
12016 msgstr ""
12017
12018 #. type: Plain text
12019 #: build/C/man5/nsswitch.conf.5:331
12020 msgid "implements \"nisplus\" source."
12021 msgstr ""
12022
12023 #. type: Plain text
12024 #: build/C/man5/nsswitch.conf.5:339
12025 msgid ""
12026 "Within each process that uses B<nsswitch.conf>, the entire file is read only "
12027 "once.  If the file is later changed, the process will continue using the old "
12028 "configuration."
12029 msgstr ""
12030
12031 #. type: Plain text
12032 #: build/C/man5/nsswitch.conf.5:352
12033 msgid ""
12034 "Traditionally, there was only a single source for service information, often "
12035 "in the form of a single configuration file (e.g., I</etc/passwd>).  However, "
12036 "as other name services, such as the Network Information Service (NIS) and "
12037 "the Domain Name Service (DNS), became popular, a method was needed that "
12038 "would be more flexible than fixed search orders coded into the C library.  "
12039 "The Name Service Switch mechanism, which was based on the mechanism used by "
12040 "Sun Microsystems in the Solaris 2 C library, introduced a cleaner solution "
12041 "to the problem."
12042 msgstr ""
12043
12044 #. type: Plain text
12045 #: build/C/man5/nsswitch.conf.5:355
12046 msgid "B<getent>(1), B<nss>(5)"
12047 msgstr ""
12048
12049 #. type: TH
12050 #: build/C/man7/packet.7:12
12051 #, no-wrap
12052 msgid "PACKET"
12053 msgstr ""
12054
12055 #. type: Plain text
12056 #: build/C/man7/packet.7:15
12057 msgid "packet - packet interface on device level."
12058 msgstr ""
12059
12060 #. type: Plain text
12061 #: build/C/man7/packet.7:18
12062 #, no-wrap
12063 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
12064 msgstr ""
12065
12066 #. type: Plain text
12067 #: build/C/man7/packet.7:20
12068 #, no-wrap
12069 msgid "B<#include E<lt>netpacket/packet.hE<gt>>\n"
12070 msgstr ""
12071
12072 #. type: Plain text
12073 #: build/C/man7/packet.7:22
12074 #, no-wrap
12075 msgid "B<#include E<lt>net/ethernet.hE<gt> /* the L2 protocols */>\n"
12076 msgstr ""
12077
12078 #. type: Plain text
12079 #: build/C/man7/packet.7:24
12080 #, no-wrap
12081 msgid ""
12082 "B<packet_socket = socket(AF_PACKET, int >I<socket_type>B<, int "
12083 ">I<protocol>B<);>\n"
12084 msgstr ""
12085
12086 #. type: Plain text
12087 #: build/C/man7/packet.7:30
12088 msgid ""
12089 "Packet sockets are used to receive or send raw packets at the device driver "
12090 "(OSI Layer 2) level.  They allow the user to implement protocol modules in "
12091 "user space on top of the physical layer."
12092 msgstr ""
12093
12094 #. type: Plain text
12095 #: build/C/man7/packet.7:52
12096 msgid ""
12097 "The I<socket_type> is either B<SOCK_RAW> for raw packets including the link "
12098 "level header or B<SOCK_DGRAM> for cooked packets with the link level header "
12099 "removed.  The link level header information is available in a common format "
12100 "in a I<sockaddr_ll>.  I<protocol> is the IEEE 802.3 protocol number in "
12101 "network order.  See the I<E<lt>linux/if_ether.hE<gt>> include file for a "
12102 "list of allowed protocols.  When protocol is set to B<htons(ETH_P_ALL)> then "
12103 "all protocols are received.  All incoming packets of that protocol type will "
12104 "be passed to the packet socket before they are passed to the protocols "
12105 "implemented in the kernel."
12106 msgstr ""
12107
12108 #. type: Plain text
12109 #: build/C/man7/packet.7:56
12110 msgid ""
12111 "Only processes with effective UID 0 or the B<CAP_NET_RAW> capability may "
12112 "open packet sockets."
12113 msgstr ""
12114
12115 #. type: Plain text
12116 #: build/C/man7/packet.7:74
12117 msgid ""
12118 "B<SOCK_RAW> packets are passed to and from the device driver without any "
12119 "changes in the packet data.  When receiving a packet, the address is still "
12120 "parsed and passed in a standard I<sockaddr_ll> address structure.  When "
12121 "transmitting a packet, the user supplied buffer should contain the physical "
12122 "layer header.  That packet is then queued unmodified to the network driver "
12123 "of the interface defined by the destination address.  Some device drivers "
12124 "always add other headers.  B<SOCK_RAW> is similar to but not compatible with "
12125 "the obsolete B<AF_INET/SOCK_PACKET> of Linux 2.0."
12126 msgstr ""
12127
12128 #. type: Plain text
12129 #: build/C/man7/packet.7:84
12130 msgid ""
12131 "B<SOCK_DGRAM> operates on a slightly higher level.  The physical header is "
12132 "removed before the packet is passed to the user.  Packets sent through a "
12133 "B<SOCK_DGRAM> packet socket get a suitable physical layer header based on "
12134 "the information in the I<sockaddr_ll> destination address before they are "
12135 "queued."
12136 msgstr ""
12137
12138 #. type: Plain text
12139 #: build/C/man7/packet.7:97
12140 msgid ""
12141 "By default all packets of the specified protocol type are passed to a packet "
12142 "socket.  To get packets only from a specific interface use B<bind>(2)  "
12143 "specifying an address in a I<struct sockaddr_ll> to bind the packet socket "
12144 "to an interface.  Only the I<sll_protocol> and the I<sll_ifindex> address "
12145 "fields are used for purposes of binding."
12146 msgstr ""
12147
12148 #. type: Plain text
12149 #: build/C/man7/packet.7:101
12150 msgid "The B<connect>(2)  operation is not supported on packet sockets."
12151 msgstr ""
12152
12153 #. type: Plain text
12154 #: build/C/man7/packet.7:110
12155 msgid ""
12156 "When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), "
12157 "B<recvfrom>(2)  the real length of the packet on the wire is always "
12158 "returned, even when it is longer than the buffer."
12159 msgstr ""
12160
12161 #. type: SS
12162 #: build/C/man7/packet.7:110
12163 #, no-wrap
12164 msgid "Address types"
12165 msgstr ""
12166
12167 #. type: Plain text
12168 #: build/C/man7/packet.7:112
12169 msgid "The sockaddr_ll is a device independent physical layer address."
12170 msgstr ""
12171
12172 #. type: Plain text
12173 #: build/C/man7/packet.7:124
12174 #, no-wrap
12175 msgid ""
12176 "struct sockaddr_ll {\n"
12177 "    unsigned short sll_family;   /* Always AF_PACKET */\n"
12178 "    unsigned short sll_protocol; /* Physical layer protocol */\n"
12179 "    int            sll_ifindex;  /* Interface number */\n"
12180 "    unsigned short sll_hatype;   /* ARP hardware type */\n"
12181 "    unsigned char  sll_pkttype;  /* Packet type */\n"
12182 "    unsigned char  sll_halen;    /* Length of address */\n"
12183 "    unsigned char  sll_addr[8];  /* Physical layer address */\n"
12184 "};\n"
12185 msgstr ""
12186
12187 #. type: Plain text
12188 #: build/C/man7/packet.7:163
12189 msgid ""
12190 "I<sll_protocol> is the standard ethernet protocol type in network order as "
12191 "defined in the I<E<lt>linux/if_ether.hE<gt>> include file.  It defaults to "
12192 "the socket's protocol.  I<sll_ifindex> is the interface index of the "
12193 "interface (see B<netdevice>(7)); 0 matches any interface (only permitted for "
12194 "binding).  I<sll_hatype> is an ARP type as defined in the "
12195 "I<E<lt>linux/if_arp.hE<gt>> include file.  I<sll_pkttype> contains the "
12196 "packet type.  Valid types are B<PACKET_HOST> for a packet addressed to the "
12197 "local host, B<PACKET_BROADCAST> for a physical layer broadcast packet, "
12198 "B<PACKET_MULTICAST> for a packet sent to a physical layer multicast address, "
12199 "B<PACKET_OTHERHOST> for a packet to some other host that has been caught by "
12200 "a device driver in promiscuous mode, and B<PACKET_OUTGOING> for a packet "
12201 "originated from the local host that is looped back to a packet socket.  "
12202 "These types make sense only for receiving.  I<sll_addr> and I<sll_halen> "
12203 "contain the physical layer (e.g., IEEE 802.3) address and its length.  The "
12204 "exact interpretation depends on the device."
12205 msgstr ""
12206
12207 #. type: Plain text
12208 #: build/C/man7/packet.7:179
12209 msgid ""
12210 "When you send packets it is enough to specify I<sll_family>, I<sll_addr>, "
12211 "I<sll_halen>, I<sll_ifindex>.  The other fields should be 0.  I<sll_hatype> "
12212 "and I<sll_pkttype> are set on received packets for your information.  For "
12213 "bind only I<sll_protocol> and I<sll_ifindex> are used."
12214 msgstr ""
12215
12216 #. type: Plain text
12217 #: build/C/man7/packet.7:194
12218 msgid ""
12219 "Packet sockets can be used to configure physical layer multicasting and "
12220 "promiscuous mode.  It works by calling B<setsockopt>(2)  on a packet socket "
12221 "for B<SOL_PACKET> and one of the options B<PACKET_ADD_MEMBERSHIP> to add a "
12222 "binding or B<PACKET_DROP_MEMBERSHIP> to drop it.  They both expect a "
12223 "B<packet_mreq> structure as argument:"
12224 msgstr ""
12225
12226 #. type: Plain text
12227 #: build/C/man7/packet.7:203
12228 #, no-wrap
12229 msgid ""
12230 "struct packet_mreq {\n"
12231 "    int            mr_ifindex;    /* interface index */\n"
12232 "    unsigned short mr_type;       /* action */\n"
12233 "    unsigned short mr_alen;       /* address length */\n"
12234 "    unsigned char  mr_address[8]; /* physical layer address */\n"
12235 "};\n"
12236 msgstr ""
12237
12238 #. type: Plain text
12239 #: build/C/man7/packet.7:224
12240 msgid ""
12241 "B<mr_ifindex> contains the interface index for the interface whose status "
12242 "should be changed.  The B<mr_type> parameter specifies which action to "
12243 "perform.  B<PACKET_MR_PROMISC> enables receiving all packets on a shared "
12244 "medium (often known as \"promiscuous mode\"), B<PACKET_MR_MULTICAST> binds "
12245 "the socket to the physical layer multicast group specified in B<mr_address> "
12246 "and B<mr_alen>, and B<PACKET_MR_ALLMULTI> sets the socket up to receive all "
12247 "multicast packets arriving at the interface."
12248 msgstr ""
12249
12250 #. type: Plain text
12251 #: build/C/man7/packet.7:230
12252 msgid ""
12253 "In addition the traditional ioctls B<SIOCSIFFLAGS>, B<SIOCADDMULTI>, "
12254 "B<SIOCDELMULTI> can be used for the same purpose."
12255 msgstr ""
12256
12257 #.  FIXME Document SIOCGSTAMPNS
12258 #. type: Plain text
12259 #: build/C/man7/packet.7:236
12260 msgid ""
12261 "B<SIOCGSTAMP> can be used to receive the timestamp of the last received "
12262 "packet.  Argument is a I<struct timeval.>"
12263 msgstr ""
12264
12265 #. type: Plain text
12266 #: build/C/man7/packet.7:242
12267 msgid ""
12268 "In addition all standard ioctls defined in B<netdevice>(7)  and B<socket>(7)  "
12269 "are valid on packet sockets."
12270 msgstr ""
12271
12272 #. type: SS
12273 #: build/C/man7/packet.7:242 build/C/man7/raw.7:131 build/C/man7/tcp.7:1115 build/C/man7/udp.7:103
12274 #, no-wrap
12275 msgid "Error handling"
12276 msgstr ""
12277
12278 #. type: Plain text
12279 #: build/C/man7/packet.7:246
12280 msgid ""
12281 "Packet sockets do no error handling other than errors occurred while passing "
12282 "the packet to the device driver.  They don't have the concept of a pending "
12283 "error."
12284 msgstr ""
12285
12286 #. type: Plain text
12287 #: build/C/man7/packet.7:250
12288 msgid "Unknown multicast group address passed."
12289 msgstr ""
12290
12291 #. type: Plain text
12292 #: build/C/man7/packet.7:253
12293 msgid "User passed invalid memory address."
12294 msgstr ""
12295
12296 #. type: Plain text
12297 #: build/C/man7/packet.7:256 build/C/man7/raw.7:155
12298 msgid "Invalid argument."
12299 msgstr ""
12300
12301 #. type: Plain text
12302 #: build/C/man7/packet.7:259
12303 msgid "Packet is bigger than interface MTU."
12304 msgstr ""
12305
12306 #. type: TP
12307 #: build/C/man7/packet.7:259
12308 #, no-wrap
12309 msgid "B<ENETDOWN>"
12310 msgstr ""
12311
12312 #. type: Plain text
12313 #: build/C/man7/packet.7:262
12314 msgid "Interface is not up."
12315 msgstr ""
12316
12317 #. type: Plain text
12318 #: build/C/man7/packet.7:265
12319 msgid "Not enough memory to allocate the packet."
12320 msgstr ""
12321
12322 #. type: Plain text
12323 #: build/C/man7/packet.7:268
12324 msgid "Unknown device name or interface index specified in interface address."
12325 msgstr ""
12326
12327 #. type: Plain text
12328 #: build/C/man7/packet.7:271
12329 msgid "No packet received."
12330 msgstr ""
12331
12332 #. type: Plain text
12333 #: build/C/man7/packet.7:274
12334 msgid "No interface address passed."
12335 msgstr ""
12336
12337 #. type: TP
12338 #: build/C/man7/packet.7:274
12339 #, no-wrap
12340 msgid "B<ENXIO>"
12341 msgstr ""
12342
12343 #. type: Plain text
12344 #: build/C/man7/packet.7:277
12345 msgid "Interface address contained an invalid interface index."
12346 msgstr ""
12347
12348 #. type: Plain text
12349 #: build/C/man7/packet.7:280
12350 msgid "User has insufficient privileges to carry out this operation."
12351 msgstr ""
12352
12353 #. type: Plain text
12354 #: build/C/man7/packet.7:282
12355 msgid "In addition other errors may be generated by the low-level driver."
12356 msgstr ""
12357
12358 #. type: Plain text
12359 #: build/C/man7/packet.7:287
12360 msgid ""
12361 "B<AF_PACKET> is a new feature in Linux 2.2.  Earlier Linux versions "
12362 "supported only B<SOCK_PACKET>."
12363 msgstr ""
12364
12365 #. type: Plain text
12366 #: build/C/man7/packet.7:292
12367 msgid ""
12368 "The include file I<E<lt>netpacket/packet.hE<gt>> is present since glibc "
12369 "2.1.  Older systems need:"
12370 msgstr ""
12371
12372 #. type: Plain text
12373 #: build/C/man7/packet.7:298
12374 #, no-wrap
12375 msgid ""
12376 "#include E<lt>asm/types.hE<gt>\n"
12377 "#include E<lt>linux/if_packet.hE<gt>\n"
12378 "#include E<lt>linux/if_ether.hE<gt>  /* The L2 protocols */\n"
12379 msgstr ""
12380
12381 #. type: Plain text
12382 #: build/C/man7/packet.7:308
12383 msgid ""
12384 "For portable programs it is suggested to use B<AF_PACKET> via B<pcap>(3); "
12385 "although this covers only a subset of the B<AF_PACKET> features."
12386 msgstr ""
12387
12388 #. type: Plain text
12389 #: build/C/man7/packet.7:329
12390 msgid ""
12391 "The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the IEEE "
12392 "802.2 LLC header for a IEEE 802.3 frame.  When B<ETH_P_802_3> is specified "
12393 "as protocol for sending the kernel creates the 802.3 frame and fills out the "
12394 "length field; the user has to supply the LLC header to get a fully "
12395 "conforming packet.  Incoming 802.3 packets are not multiplexed on the "
12396 "DSAP/SSAP protocol fields; instead they are supplied to the user as protocol "
12397 "B<ETH_P_802_2> with the LLC header prepended.  It is thus not possible to "
12398 "bind to B<ETH_P_802_3>; bind to B<ETH_P_802_2> instead and do the protocol "
12399 "multiplex yourself.  The default for sending is the standard Ethernet DIX "
12400 "encapsulation with the protocol filled in."
12401 msgstr ""
12402
12403 #. type: Plain text
12404 #: build/C/man7/packet.7:331
12405 msgid "Packet sockets are not subject to the input or output firewall chains."
12406 msgstr ""
12407
12408 #. type: Plain text
12409 #: build/C/man7/packet.7:341
12410 msgid ""
12411 "In Linux 2.0, the only way to get a packet socket was by calling "
12412 "B<socket(AF_INET, SOCK_PACKET, >I<protocol>B<)>.  This is still supported "
12413 "but strongly deprecated.  The main difference between the two methods is "
12414 "that B<SOCK_PACKET> uses the old I<struct sockaddr_pkt> to specify an "
12415 "interface, which doesn't provide physical layer independence."
12416 msgstr ""
12417
12418 #. type: Plain text
12419 #: build/C/man7/packet.7:349
12420 #, no-wrap
12421 msgid ""
12422 "struct sockaddr_pkt {\n"
12423 "    unsigned short spkt_family;\n"
12424 "    unsigned char  spkt_device[14];\n"
12425 "    unsigned short spkt_protocol;\n"
12426 "};\n"
12427 msgstr ""
12428
12429 #. type: Plain text
12430 #: build/C/man7/packet.7:361
12431 msgid ""
12432 "I<spkt_family> contains the device type, I<spkt_protocol> is the IEEE 802.3 "
12433 "protocol type as defined in I<E<lt>sys/if_ether.hE<gt>> and I<spkt_device> "
12434 "is the device name as a null-terminated string, for example, eth0."
12435 msgstr ""
12436
12437 #. type: Plain text
12438 #: build/C/man7/packet.7:363
12439 msgid "This structure is obsolete and should not be used in new code."
12440 msgstr ""
12441
12442 #. type: Plain text
12443 #: build/C/man7/packet.7:367
12444 msgid ""
12445 "glibc 2.1 does not have a define for B<SOL_PACKET>.  The suggested "
12446 "workaround is to use:"
12447 msgstr ""
12448
12449 #. type: Plain text
12450 #: build/C/man7/packet.7:373
12451 #, no-wrap
12452 msgid ""
12453 "#ifndef SOL_PACKET\n"
12454 "#define SOL_PACKET 263\n"
12455 "#endif\n"
12456 msgstr ""
12457
12458 #. type: Plain text
12459 #: build/C/man7/packet.7:378
12460 msgid ""
12461 "This is fixed in later glibc versions and also does not occur on libc5 "
12462 "systems."
12463 msgstr ""
12464
12465 #. type: Plain text
12466 #: build/C/man7/packet.7:380
12467 msgid "The IEEE 802.2/803.3 LLC handling could be considered as a bug."
12468 msgstr ""
12469
12470 #. type: Plain text
12471 #: build/C/man7/packet.7:382
12472 msgid "Socket filters are not documented."
12473 msgstr ""
12474
12475 #.  .SH CREDITS
12476 #.  This man page was written by Andi Kleen with help from Matthew Wilcox.
12477 #.  AF_PACKET in Linux 2.2 was implemented
12478 #.  by Alexey Kuznetsov, based on code by Alan Cox and others.
12479 #. type: Plain text
12480 #: build/C/man7/packet.7:394
12481 msgid ""
12482 "The B<MSG_TRUNC> B<recvmsg>(2)  extension is an ugly hack and should be "
12483 "replaced by a control message.  There is currently no way to get the "
12484 "original destination address of packets via B<SOCK_DGRAM>."
12485 msgstr ""
12486
12487 #. type: Plain text
12488 #: build/C/man7/packet.7:401
12489 msgid ""
12490 "B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), "
12491 "B<socket>(7)"
12492 msgstr ""
12493
12494 #. type: Plain text
12495 #: build/C/man7/packet.7:404
12496 msgid ""
12497 "RFC\\ 894 for the standard IP Ethernet encapsulation.  RFC\\ 1700 for the "
12498 "IEEE 802.3 IP encapsulation."
12499 msgstr ""
12500
12501 #. type: Plain text
12502 #: build/C/man7/packet.7:408
12503 msgid "The I<E<lt>linux/if_ether.hE<gt>> include file for physical layer protocols."
12504 msgstr ""
12505
12506 #. type: TH
12507 #: build/C/man5/protocols.5:29
12508 #, no-wrap
12509 msgid "PROTOCOLS"
12510 msgstr ""
12511
12512 #. type: TH
12513 #: build/C/man5/protocols.5:29 build/C/man7/x25.7:12
12514 #, no-wrap
12515 msgid "2012-08-05"
12516 msgstr ""
12517
12518 #. type: Plain text
12519 #: build/C/man5/protocols.5:32
12520 msgid "protocols - protocols definition file"
12521 msgstr ""
12522
12523 #. type: Plain text
12524 #: build/C/man5/protocols.5:40
12525 msgid ""
12526 "This file is a plain ASCII file, describing the various DARPA internet "
12527 "protocols that are available from the TCP/IP subsystem.  It should be "
12528 "consulted instead of using the numbers in the ARPA include files, or, even "
12529 "worse, just guessing them.  These numbers will occur in the protocol field "
12530 "of any IP header."
12531 msgstr ""
12532
12533 #.  .. by the DDN Network Information Center.
12534 #. type: Plain text
12535 #: build/C/man5/protocols.5:46
12536 msgid ""
12537 "Keep this file untouched since changes would result in incorrect IP "
12538 "packages.  Protocol numbers and names are specified by the IANA (Internet "
12539 "Assigned Numbers Authority)."
12540 msgstr ""
12541
12542 #. type: Plain text
12543 #: build/C/man5/protocols.5:48
12544 msgid "Each line is of the following format:"
12545 msgstr ""
12546
12547 #. type: Plain text
12548 #: build/C/man5/protocols.5:51
12549 msgid "I<protocol number aliases ...>"
12550 msgstr ""
12551
12552 #. type: Plain text
12553 #: build/C/man5/protocols.5:57
12554 msgid ""
12555 "where the fields are delimited by spaces or tabs.  Empty lines are ignored.  "
12556 "If a line contains a hash mark (#), the hash mark and the part of the line "
12557 "following it are ignored."
12558 msgstr ""
12559
12560 #. type: TP
12561 #: build/C/man5/protocols.5:59 build/C/man5/services.5:109
12562 #, no-wrap
12563 msgid "I<protocol>"
12564 msgstr ""
12565
12566 #. type: Plain text
12567 #: build/C/man5/protocols.5:67
12568 msgid "the native name for the protocol.  For example I<ip>, I<tcp>, or I<udp>."
12569 msgstr ""
12570
12571 #. type: Plain text
12572 #: build/C/man5/protocols.5:71
12573 msgid ""
12574 "the official number for this protocol as it will appear within the IP "
12575 "header."
12576 msgstr ""
12577
12578 #. type: Plain text
12579 #: build/C/man5/protocols.5:74
12580 msgid "optional aliases for the protocol."
12581 msgstr ""
12582
12583 #.  The following is not true as at glibc 2.8 (a line with a comma is
12584 #.  ignored by getservent()); it's not clear if/when it was ever true.
12585 #.    As a backward compatibility feature, the slash (/) between the
12586 #.    .I port
12587 #.    number and
12588 #.    .I protocol
12589 #.    name can in fact be either a slash or a comma (,).
12590 #.    Use of the comma in
12591 #.    modern installations is deprecated.
12592 #. type: Plain text
12593 #: build/C/man5/protocols.5:77 build/C/man5/services.5:165
12594 msgid ""
12595 "This file might be distributed over a network using a network-wide naming "
12596 "service like Yellow Pages/NIS or BIND/Hesiod."
12597 msgstr ""
12598
12599 #. type: Plain text
12600 #: build/C/man5/protocols.5:81
12601 msgid "The protocols definition file."
12602 msgstr ""
12603
12604 #. type: Plain text
12605 #: build/C/man5/protocols.5:83
12606 msgid "B<getprotoent>(3)"
12607 msgstr ""
12608
12609 #. type: Plain text
12610 #: build/C/man5/protocols.5:86
12611 msgid "E<.UR http://www.iana.org\\:/assignments\\:/protocol-numbers> E<.UE>"
12612 msgstr ""
12613
12614 #. type: TH
12615 #: build/C/man7/raw.7:13
12616 #, no-wrap
12617 msgid "RAW"
12618 msgstr ""
12619
12620 #. type: Plain text
12621 #: build/C/man7/raw.7:16
12622 msgid "raw - Linux IPv4 raw sockets"
12623 msgstr ""
12624
12625 #. type: Plain text
12626 #: build/C/man7/raw.7:22
12627 msgid "B<raw_socket = socket(AF_INET, SOCK_RAW, int >I<protocol>B<);>"
12628 msgstr ""
12629
12630 #. type: Plain text
12631 #: build/C/man7/raw.7:26
12632 msgid ""
12633 "Raw sockets allow new IPv4 protocols to be implemented in user space.  A raw "
12634 "socket receives or sends the raw datagram not including link level headers."
12635 msgstr ""
12636
12637 #. type: Plain text
12638 #: build/C/man7/raw.7:32
12639 msgid ""
12640 "The IPv4 layer generates an IP header when sending a packet unless the "
12641 "B<IP_HDRINCL> socket option is enabled on the socket.  When it is enabled, "
12642 "the packet must contain an IP header.  For receiving the IP header is always "
12643 "included in the packet."
12644 msgstr ""
12645
12646 #. type: Plain text
12647 #: build/C/man7/raw.7:36
12648 msgid ""
12649 "Only processes with an effective user ID of 0 or the B<CAP_NET_RAW> "
12650 "capability are allowed to open raw sockets."
12651 msgstr ""
12652
12653 #. type: Plain text
12654 #: build/C/man7/raw.7:43
12655 msgid ""
12656 "All packets or errors matching the I<protocol> number specified for the raw "
12657 "socket are passed to this socket.  For a list of the allowed protocols see "
12658 "RFC\\ 1700 assigned numbers and B<getprotobyname>(3)."
12659 msgstr ""
12660
12661 #. type: Plain text
12662 #: build/C/man7/raw.7:53
12663 msgid ""
12664 "A protocol of B<IPPROTO_RAW> implies enabled B<IP_HDRINCL> and is able to "
12665 "send any IP protocol that is specified in the passed header.  Receiving of "
12666 "all IP protocols via B<IPPROTO_RAW> is not possible using raw sockets."
12667 msgstr ""
12668
12669 #. type: tbl table
12670 #: build/C/man7/raw.7:58
12671 #, no-wrap
12672 msgid "IP Header fields modified on sending by B<IP_HDRINCL>\n"
12673 msgstr ""
12674
12675 #. type: tbl table
12676 #: build/C/man7/raw.7:59
12677 #, no-wrap
12678 msgid "IP Checksum:Always filled in.\n"
12679 msgstr ""
12680
12681 #. type: tbl table
12682 #: build/C/man7/raw.7:60
12683 #, no-wrap
12684 msgid "Source Address:Filled in when zero.\n"
12685 msgstr ""
12686
12687 #. type: tbl table
12688 #: build/C/man7/raw.7:61
12689 #, no-wrap
12690 msgid "Packet Id:Filled in when zero.\n"
12691 msgstr ""
12692
12693 #. type: tbl table
12694 #: build/C/man7/raw.7:62
12695 #, no-wrap
12696 msgid "Total Length:Always filled in.\n"
12697 msgstr ""
12698
12699 #. type: Plain text
12700 #: build/C/man7/raw.7:76
12701 msgid ""
12702 "If B<IP_HDRINCL> is specified and the IP header has a nonzero destination "
12703 "address then the destination address of the socket is used to route the "
12704 "packet.  When B<MSG_DONTROUTE> is specified, the destination address should "
12705 "refer to a local interface, otherwise a routing table lookup is done anyway "
12706 "but gatewayed routes are ignored."
12707 msgstr ""
12708
12709 #. type: Plain text
12710 #: build/C/man7/raw.7:84
12711 msgid ""
12712 "If B<IP_HDRINCL> isn't set, then IP header options can be set on raw sockets "
12713 "with B<setsockopt>(2); see B<ip>(7)  for more information."
12714 msgstr ""
12715
12716 #. type: Plain text
12717 #: build/C/man7/raw.7:89
12718 msgid ""
12719 "In Linux 2.2, all IP header fields and options can be set using IP socket "
12720 "options.  This means raw sockets are usually needed only for new protocols "
12721 "or protocols with no user interface (like ICMP)."
12722 msgstr ""
12723
12724 #. type: Plain text
12725 #: build/C/man7/raw.7:93
12726 msgid ""
12727 "When a packet is received, it is passed to any raw sockets which have been "
12728 "bound to its protocol before it is passed to other protocol handlers (e.g., "
12729 "kernel protocol modules)."
12730 msgstr ""
12731
12732 #. type: Plain text
12733 #: build/C/man7/raw.7:109
12734 msgid ""
12735 "Raw sockets use the standard I<sockaddr_in> address structure defined in "
12736 "B<ip>(7).  The I<sin_port> field could be used to specify the IP protocol "
12737 "number, but it is ignored for sending in Linux 2.2 and should be always set "
12738 "to 0 (see BUGS).  For incoming packets, I<sin_port> is set to the protocol "
12739 "of the packet.  See the I<E<lt>netinet/in.hE<gt>> include file for valid IP "
12740 "protocols."
12741 msgstr ""
12742
12743 #.  Or SOL_RAW on Linux
12744 #. type: Plain text
12745 #: build/C/man7/raw.7:118
12746 msgid ""
12747 "Raw socket options can be set with B<setsockopt>(2)  and read with "
12748 "B<getsockopt>(2)  by passing the B<IPPROTO_RAW> family flag."
12749 msgstr ""
12750
12751 #. type: TP
12752 #: build/C/man7/raw.7:118
12753 #, no-wrap
12754 msgid "B<ICMP_FILTER>"
12755 msgstr ""
12756
12757 #. type: Plain text
12758 #: build/C/man7/raw.7:126
12759 msgid ""
12760 "Enable a special filter for raw sockets bound to the B<IPPROTO_ICMP> "
12761 "protocol.  The value has a bit set for each ICMP message type which should "
12762 "be filtered out.  The default is to filter no ICMP messages."
12763 msgstr ""
12764
12765 #. type: Plain text
12766 #: build/C/man7/raw.7:131
12767 msgid ""
12768 "In addition, all B<ip>(7)  B<IPPROTO_IP> socket options valid for datagram "
12769 "sockets are supported."
12770 msgstr ""
12771
12772 #. type: Plain text
12773 #: build/C/man7/raw.7:144
12774 msgid ""
12775 "Errors originating from the network are passed to the user only when the "
12776 "socket is connected or the B<IP_RECVERR> flag is enabled.  For connected "
12777 "sockets, only B<EMSGSIZE> and B<EPROTO> are passed for compatibility.  With "
12778 "B<IP_RECVERR>, all network errors are saved in the error queue."
12779 msgstr ""
12780
12781 #. type: Plain text
12782 #: build/C/man7/raw.7:149
12783 msgid ""
12784 "User tried to send to a broadcast address without having the broadcast flag "
12785 "set on the socket."
12786 msgstr ""
12787
12788 #. type: Plain text
12789 #: build/C/man7/raw.7:152
12790 msgid "An invalid memory address was supplied."
12791 msgstr ""
12792
12793 #. type: Plain text
12794 #: build/C/man7/raw.7:162
12795 msgid ""
12796 "Packet too big.  Either Path MTU Discovery is enabled (the "
12797 "B<IP_MTU_DISCOVER> socket flag) or the packet size exceeds the maximum "
12798 "allowed IPv4 packet size of 64KB."
12799 msgstr ""
12800
12801 #. type: TP
12802 #: build/C/man7/raw.7:162 build/C/man7/unix.7:364
12803 #, no-wrap
12804 msgid "B<EOPNOTSUPP>"
12805 msgstr ""
12806
12807 #. type: Plain text
12808 #: build/C/man7/raw.7:166
12809 msgid "Invalid flag has been passed to a socket call (like B<MSG_OOB>)."
12810 msgstr ""
12811
12812 #. type: Plain text
12813 #: build/C/man7/raw.7:172
12814 msgid ""
12815 "The user doesn't have permission to open raw sockets.  Only processes with "
12816 "an effective user ID of 0 or the B<CAP_NET_RAW> attribute may do that."
12817 msgstr ""
12818
12819 #. type: TP
12820 #: build/C/man7/raw.7:172
12821 #, no-wrap
12822 msgid "B<EPROTO>"
12823 msgstr ""
12824
12825 #. type: Plain text
12826 #: build/C/man7/raw.7:175
12827 msgid "An ICMP error has arrived reporting a parameter problem."
12828 msgstr ""
12829
12830 #. type: Plain text
12831 #: build/C/man7/raw.7:181
12832 msgid ""
12833 "B<IP_RECVERR> and B<ICMP_FILTER> are new in Linux 2.2.  They are Linux "
12834 "extensions and should not be used in portable programs."
12835 msgstr ""
12836
12837 #. type: Plain text
12838 #: build/C/man7/raw.7:187
12839 msgid ""
12840 "Linux 2.0 enabled some bug-to-bug compatibility with BSD in the raw socket "
12841 "code when the B<SO_BSDCOMPAT> socket option was set \\(em since Linux 2.2, "
12842 "this option no longer has that effect."
12843 msgstr ""
12844
12845 #. type: Plain text
12846 #: build/C/man7/raw.7:205
12847 msgid ""
12848 "By default, raw sockets do path MTU (Maximum Transmission Unit) discovery.  "
12849 "This means the kernel will keep track of the MTU to a specific target IP "
12850 "address and return B<EMSGSIZE> when a raw packet write exceeds it.  When "
12851 "this happens, the application should decrease the packet size.  Path MTU "
12852 "discovery can be also turned off using the B<IP_MTU_DISCOVER> socket option "
12853 "or the I</proc/sys/net/ipv4/ip_no_pmtu_disc> file, see B<ip>(7)  for "
12854 "details.  When turned off, raw sockets will fragment outgoing packets that "
12855 "exceed the interface MTU.  However, disabling it is not recommended for "
12856 "performance and reliability reasons."
12857 msgstr ""
12858
12859 #. type: Plain text
12860 #: build/C/man7/raw.7:214
12861 msgid ""
12862 "A raw socket can be bound to a specific local address using the B<bind>(2)  "
12863 "call.  If it isn't bound, all packets with the specified IP protocol are "
12864 "received.  In addition, a RAW socket can be bound to a specific network "
12865 "device using B<SO_BINDTODEVICE>; see B<socket>(7)."
12866 msgstr ""
12867
12868 #. type: Plain text
12869 #: build/C/man7/raw.7:225
12870 msgid ""
12871 "An B<IPPROTO_RAW> socket is send only.  If you really want to receive all IP "
12872 "packets, use a B<packet>(7)  socket with the B<ETH_P_IP> protocol.  Note "
12873 "that packet sockets don't reassemble IP fragments, unlike raw sockets."
12874 msgstr ""
12875
12876 #. type: Plain text
12877 #: build/C/man7/raw.7:231
12878 msgid ""
12879 "If you want to receive all ICMP packets for a datagram socket, it is often "
12880 "better to use B<IP_RECVERR> on that particular socket; see B<ip>(7)."
12881 msgstr ""
12882
12883 #. type: Plain text
12884 #: build/C/man7/raw.7:238
12885 msgid ""
12886 "Raw sockets may tap all IP protocols in Linux, even protocols like ICMP or "
12887 "TCP which have a protocol module in the kernel.  In this case, the packets "
12888 "are passed to both the kernel module and the raw socket(s).  This should not "
12889 "be relied upon in portable programs, many other BSD socket implementation "
12890 "have limitations here."
12891 msgstr ""
12892
12893 #. type: Plain text
12894 #: build/C/man7/raw.7:243
12895 msgid ""
12896 "Linux never changes headers passed from the user (except for filling in some "
12897 "zeroed fields as described for B<IP_HDRINCL>).  This differs from many other "
12898 "implementations of raw sockets."
12899 msgstr ""
12900
12901 #. type: Plain text
12902 #: build/C/man7/raw.7:246
12903 msgid ""
12904 "RAW sockets are generally rather unportable and should be avoided in "
12905 "programs intended to be portable."
12906 msgstr ""
12907
12908 #. type: Plain text
12909 #: build/C/man7/raw.7:252
12910 msgid ""
12911 "Sending on raw sockets should take the IP protocol from I<sin_port>; this "
12912 "ability was lost in Linux 2.2.  The workaround is to use B<IP_HDRINCL>."
12913 msgstr ""
12914
12915 #. type: Plain text
12916 #: build/C/man7/raw.7:254
12917 msgid "Transparent proxy extensions are not described."
12918 msgstr ""
12919
12920 #. type: Plain text
12921 #: build/C/man7/raw.7:259
12922 msgid ""
12923 "When the B<IP_HDRINCL> option is set, datagrams will not be fragmented and "
12924 "are limited to the interface MTU."
12925 msgstr ""
12926
12927 #.  .SH AUTHORS
12928 #.  This man page was written by Andi Kleen.
12929 #. type: Plain text
12930 #: build/C/man7/raw.7:269
12931 msgid ""
12932 "Setting the IP protocol for sending in I<sin_port> got lost in Linux 2.2.  "
12933 "The protocol that the socket was bound to or that was specified in the "
12934 "initial B<socket>(2)  call is always used."
12935 msgstr ""
12936
12937 #. type: Plain text
12938 #: build/C/man7/raw.7:275
12939 msgid "B<recvmsg>(2), B<sendmsg>(2), B<capabilities>(7), B<ip>(7), B<socket>(7)"
12940 msgstr ""
12941
12942 #. type: Plain text
12943 #: build/C/man7/raw.7:282
12944 msgid ""
12945 "B<RFC\\ 1191> for path MTU discovery.  B<RFC\\ 791> and the "
12946 "I<E<lt>linux/ip.hE<gt>> header file for the IP protocol."
12947 msgstr ""
12948
12949 #. type: TH
12950 #: build/C/man3/rcmd.3:43
12951 #, no-wrap
12952 msgid "RCMD"
12953 msgstr ""
12954
12955 #. type: TH
12956 #: build/C/man3/rcmd.3:43
12957 #, no-wrap
12958 msgid "2012-04-23"
12959 msgstr ""
12960
12961 #. type: Plain text
12962 #: build/C/man3/rcmd.3:48
12963 msgid ""
12964 "rcmd, rresvport, iruserok, ruserok, rcmd_af, rresvport_af, iruserok_af, "
12965 "ruserok_af - routines for returning a stream to a remote command"
12966 msgstr ""
12967
12968 #. type: Plain text
12969 #: build/C/man3/rcmd.3:51
12970 #, no-wrap
12971 msgid ""
12972 "B<#include E<lt>netdb.hE<gt> \\ \\ >/* Or E<lt>unistd.hE<gt> on some systems "
12973 "*/\n"
12974 msgstr ""
12975
12976 #. type: Plain text
12977 #: build/C/man3/rcmd.3:54
12978 #, no-wrap
12979 msgid ""
12980 "B<int rcmd(char **>I<ahost>B<, int >I<inport>B<, const char *>I<locuser>B<, "
12981 ">\n"
12982 "B<         const char *>I<remuser>B<, const char *>I<cmd>B<, int "
12983 "*>I<fd2p>B<);>\n"
12984 msgstr ""
12985
12986 #. type: Plain text
12987 #: build/C/man3/rcmd.3:56
12988 #, no-wrap
12989 msgid "B<int rresvport(int *>I<port>B<);>\n"
12990 msgstr ""
12991
12992 #. type: Plain text
12993 #: build/C/man3/rcmd.3:59
12994 #, no-wrap
12995 msgid ""
12996 "B<int iruserok(uint32_t >I<raddr>B<, int >I<superuser>B<, >\n"
12997 "B<             const char *>I<ruser>B<, const char *>I<luser>B<);>\n"
12998 msgstr ""
12999
13000 #. type: Plain text
13001 #: build/C/man3/rcmd.3:62
13002 #, no-wrap
13003 msgid ""
13004 "B<int ruserok(const char *>I<rhost>B<, int >I<superuser>B<, >\n"
13005 "B<            const char *>I<ruser>B<, const char *>I<luser>B<);>\n"
13006 msgstr ""
13007
13008 #. type: Plain text
13009 #: build/C/man3/rcmd.3:66
13010 #, no-wrap
13011 msgid ""
13012 "B<int rcmd_af(char **>I<ahost>B<, int >I<inport>B<, const char "
13013 "*>I<locuser>B<, >\n"
13014 "B<            const char *>I<remuser>B<, const char *>I<cmd>B<, int "
13015 "*>I<fd2p>B<,>\n"
13016 "B<            sa_family_t >I<af>B<);>\n"
13017 msgstr ""
13018
13019 #. type: Plain text
13020 #: build/C/man3/rcmd.3:68
13021 #, no-wrap
13022 msgid "B<int rresvport_af(int *>I<port>B<, sa_family_t >I<af>B<);>\n"
13023 msgstr ""
13024
13025 #. type: Plain text
13026 #: build/C/man3/rcmd.3:72
13027 #, no-wrap
13028 msgid ""
13029 "B<int iruserok_af(uint32_t >I<raddr>B<, int >I<superuser>B<, >\n"
13030 "B<                const char *>I<ruser>B<, const char *>I<luser>B<, "
13031 "sa_family_t >I<af>B<);>\n"
13032 msgstr ""
13033
13034 #. type: Plain text
13035 #: build/C/man3/rcmd.3:76
13036 #, no-wrap
13037 msgid ""
13038 "B<int ruserok_af(const char *>I<rhost>B<, int >I<superuser>B<, >\n"
13039 "B<               const char *>I<ruser>B<, const char *>I<luser>B<, "
13040 "sa_family_t >I<af>B<);>\n"
13041 msgstr ""
13042
13043 #. type: Plain text
13044 #: build/C/man3/rcmd.3:92
13045 msgid ""
13046 "B<rcmd>(), B<rcmd_af>(), B<rresvport>(), B<rresvport_af>(), B<iruserok>(), "
13047 "B<iruserok_af>(), B<ruserok>(), B<ruserok_af>(): _BSD_SOURCE"
13048 msgstr ""
13049
13050 #. type: Plain text
13051 #: build/C/man3/rcmd.3:113
13052 msgid ""
13053 "The B<rcmd>()  function is used by the superuser to execute a command on a "
13054 "remote machine using an authentication scheme based on privileged port "
13055 "numbers.  The B<rresvport>()  function returns a descriptor to a socket with "
13056 "an address in the privileged port space.  The B<iruserok>()  and "
13057 "B<ruserok>()  functions are used by servers to authenticate clients "
13058 "requesting service with B<rcmd>().  All four functions are used by the "
13059 "B<rshd>(8)  server (among others)."
13060 msgstr ""
13061
13062 #. type: SS
13063 #: build/C/man3/rcmd.3:113
13064 #, no-wrap
13065 msgid "rcmd()"
13066 msgstr ""
13067
13068 #. type: Plain text
13069 #: build/C/man3/rcmd.3:129
13070 msgid ""
13071 "The B<rcmd>()  function looks up the host I<*ahost> using "
13072 "B<gethostbyname>(3), returning -1 if the host does not exist.  Otherwise "
13073 "I<*ahost> is set to the standard name of the host and a connection is "
13074 "established to a server residing at the well-known Internet port I<inport>."
13075 msgstr ""
13076
13077 #. type: Plain text
13078 #: build/C/man3/rcmd.3:158
13079 msgid ""
13080 "If the connection succeeds, a socket in the Internet domain of type "
13081 "B<SOCK_STREAM> is returned to the caller, and given to the remote command as "
13082 "I<stdin> and I<stdout>.  If I<fd2p> is nonzero, then an auxiliary channel to "
13083 "a control process will be set up, and a descriptor for it will be placed in "
13084 "I<*fd2p>.  The control process will return diagnostic output from the "
13085 "command (unit 2) on this channel, and will also accept bytes on this channel "
13086 "as being UNIX signal numbers, to be forwarded to the process group of the "
13087 "command.  If I<fd2p> is 0, then the I<stderr> (unit 2 of the remote command) "
13088 "will be made the same as the I<stdout> and no provision is made for sending "
13089 "arbitrary signals to the remote process, although you may be able to get its "
13090 "attention by using out-of-band data."
13091 msgstr ""
13092
13093 #. type: Plain text
13094 #: build/C/man3/rcmd.3:161
13095 msgid "The protocol is described in detail in B<rshd>(8)."
13096 msgstr ""
13097
13098 #. type: SS
13099 #: build/C/man3/rcmd.3:161
13100 #, no-wrap
13101 msgid "rresvport()"
13102 msgstr ""
13103
13104 #. type: Plain text
13105 #: build/C/man3/rcmd.3:183
13106 msgid ""
13107 "The B<rresvport>()  function is used to obtain a socket with a privileged "
13108 "port bound to it.  This socket is suitable for use by B<rcmd>()  and several "
13109 "other functions.  Privileged ports are those in the range 0 to 1023.  Only a "
13110 "privileged process (B<CAP_NET_BIND_SERVICE>)  is allowed to bind to a "
13111 "privileged port.  In the glibc implementation, this function restricts its "
13112 "search to the ports from 512 to 1023.  The I<port> argument is value-result: "
13113 "the value it supplies to the call is used as the starting point for a "
13114 "circular search of the port range; on (successful) return, it contains the "
13115 "port number that was bound to."
13116 msgstr ""
13117
13118 #. type: SS
13119 #: build/C/man3/rcmd.3:183
13120 #, no-wrap
13121 msgid "iruserok() and ruserok()"
13122 msgstr ""
13123
13124 #. type: Plain text
13125 #: build/C/man3/rcmd.3:201
13126 msgid ""
13127 "The B<iruserok>()  and B<ruserok>()  functions take a remote host's IP "
13128 "address or name, respectively, two usernames and a flag indicating whether "
13129 "the local user's name is that of the superuser.  Then, if the user is I<not> "
13130 "the superuser, it checks the I</etc/hosts.equiv> file.  If that lookup is "
13131 "not done, or is unsuccessful, the I<.rhosts> in the local user's home "
13132 "directory is checked to see if the request for service is allowed."
13133 msgstr ""
13134
13135 #. type: Plain text
13136 #: build/C/man3/rcmd.3:217
13137 msgid ""
13138 "If this file does not exist, is not a regular file, is owned by anyone other "
13139 "than the user or the superuser, or is writable by anyone other than the "
13140 "owner, the check automatically fails.  Zero is returned if the machine name "
13141 "is listed in the I<hosts.equiv> file, or the host and remote username are "
13142 "found in the I<.rhosts> file; otherwise B<iruserok>()  and B<ruserok>()  "
13143 "return -1.  If the local domain (as obtained from B<gethostname>(2))  is the "
13144 "same as the remote domain, only the machine name need be specified."
13145 msgstr ""
13146
13147 #. type: Plain text
13148 #: build/C/man3/rcmd.3:223
13149 msgid ""
13150 "If the IP address of the remote host is known, B<iruserok>()  should be used "
13151 "in preference to B<ruserok>(), as it does not require trusting the DNS "
13152 "server for the remote host's domain."
13153 msgstr ""
13154
13155 #. type: SS
13156 #: build/C/man3/rcmd.3:223
13157 #, no-wrap
13158 msgid "*_af() variants"
13159 msgstr ""
13160
13161 #. type: Plain text
13162 #: build/C/man3/rcmd.3:239
13163 msgid ""
13164 "All of the functions described above work with IPv4 (B<AF_INET>)  sockets.  "
13165 "The \"_af\" variants take an extra argument that allows the socket address "
13166 "family to be specified.  For these functions, the I<af> argument can be "
13167 "specified as B<AF_INET> or B<AF_INET6>.  In addition, B<rcmd_af>()  supports "
13168 "the use of B<AF_UNSPEC>."
13169 msgstr ""
13170
13171 #. type: Plain text
13172 #: build/C/man3/rcmd.3:245
13173 msgid ""
13174 "The B<rcmd>()  function returns a valid socket descriptor on success.  It "
13175 "returns -1 on error and prints a diagnostic message on the standard error."
13176 msgstr ""
13177
13178 #. type: Plain text
13179 #: build/C/man3/rcmd.3:256
13180 msgid ""
13181 "The B<rresvport>()  function returns a valid, bound socket descriptor on "
13182 "success.  It returns -1 on error with the global value I<errno> set "
13183 "according to the reason for failure.  The error code B<EAGAIN> is overloaded "
13184 "to mean \"All network ports in use.\""
13185 msgstr ""
13186
13187 #. type: Plain text
13188 #: build/C/man3/rcmd.3:262
13189 msgid ""
13190 "For information on the return from B<ruserok>()  and B<iruserok>(), see "
13191 "above."
13192 msgstr ""
13193
13194 #. type: Plain text
13195 #: build/C/man3/rcmd.3:270
13196 msgid ""
13197 "The functions B<iruserok_af>(), B<rcmd_af>(), B<rresvport_af>(), and "
13198 "B<ruserok_af>()  functions are provide in glibc since version 2.2."
13199 msgstr ""
13200
13201 #. type: Plain text
13202 #: build/C/man3/rcmd.3:278
13203 msgid ""
13204 "Not in POSIX.1-2001.  Present on the BSDs, Solaris, and many other systems.  "
13205 "These functions appeared in 4.2BSD.  The \"_af\" variants are more recent "
13206 "additions, and are not present on as wide a range of systems."
13207 msgstr ""
13208
13209 #.  Bug filed 25 Nov 2007:
13210 #.  http://sources.redhat.com/bugzilla/show_bug.cgi?id=5399
13211 #. type: Plain text
13212 #: build/C/man3/rcmd.3:285
13213 msgid ""
13214 "B<iruserok>()  and B<iruserok_af>()  are declared in glibc headers only "
13215 "since version 2.12."
13216 msgstr ""
13217
13218 #. type: Plain text
13219 #: build/C/man3/rcmd.3:293
13220 msgid ""
13221 "B<rlogin>(1), B<rsh>(1), B<intro>(2), B<rexec>(3), B<rexecd>(8), "
13222 "B<rlogind>(8), B<rshd>(8)"
13223 msgstr ""
13224
13225 #. type: TH
13226 #: build/C/man5/resolv.conf.5:23
13227 #, no-wrap
13228 msgid "RESOLV.CONF"
13229 msgstr ""
13230
13231 #. type: TH
13232 #: build/C/man5/resolv.conf.5:23 build/C/man7/udp.7:12
13233 #, no-wrap
13234 msgid "2013-07-31"
13235 msgstr ""
13236
13237 #. type: Plain text
13238 #: build/C/man5/resolv.conf.5:27
13239 msgid "resolv.conf - resolver configuration file"
13240 msgstr ""
13241
13242 #. type: Plain text
13243 #: build/C/man5/resolv.conf.5:29
13244 msgid "B</etc/resolv.conf>"
13245 msgstr ""
13246
13247 #. type: Plain text
13248 #: build/C/man5/resolv.conf.5:38
13249 msgid ""
13250 "The I<resolver> is a set of routines in the C library that provide access to "
13251 "the Internet Domain Name System (DNS).  The resolver configuration file "
13252 "contains information that is read by the resolver routines the first time "
13253 "they are invoked by a process.  The file is designed to be human readable "
13254 "and contains a list of keywords with values that provide various types of "
13255 "resolver information."
13256 msgstr ""
13257
13258 #. type: Plain text
13259 #: build/C/man5/resolv.conf.5:43
13260 msgid ""
13261 "If this file does not exist, only the name server on the local machine will "
13262 "be queried; the domain name is determined from the hostname and the domain "
13263 "search path is constructed from the domain name."
13264 msgstr ""
13265
13266 #. type: Plain text
13267 #: build/C/man5/resolv.conf.5:45
13268 msgid "The different configuration options are:"
13269 msgstr ""
13270
13271 #. type: TP
13272 #: build/C/man5/resolv.conf.5:45
13273 #, no-wrap
13274 msgid "B<nameserver> Name server IP address"
13275 msgstr ""
13276
13277 #. type: Plain text
13278 #: build/C/man5/resolv.conf.5:62
13279 msgid ""
13280 "Internet address of a name server that the resolver should query, either an "
13281 "IPv4 address (in dot notation), or an IPv6 address in colon (and possibly "
13282 "dot) notation as per RFC 2373.  Up to B<MAXNS> (currently 3, see "
13283 "I<E<lt>resolv.hE<gt>>) name servers may be listed, one per keyword.  If "
13284 "there are multiple servers, the resolver library queries them in the order "
13285 "listed.  If no B<nameserver> entries are present, the default is to use the "
13286 "name server on the local machine.  (The algorithm used is to try a name "
13287 "server, and if the query times out, try the next, until out of name servers, "
13288 "then repeat trying all the name servers until a maximum number of retries "
13289 "are made.)"
13290 msgstr ""
13291
13292 #. type: TP
13293 #: build/C/man5/resolv.conf.5:62
13294 #, no-wrap
13295 msgid "B<domain> Local domain name."
13296 msgstr ""
13297
13298 #. type: Plain text
13299 #: build/C/man5/resolv.conf.5:73
13300 msgid ""
13301 "Most queries for names within this domain can use short names relative to "
13302 "the local domain.  If set to \\(aq.\\(aq, the root domain is considered.  If "
13303 "no B<domain> entry is present, the domain is determined from the local "
13304 "hostname returned by B<gethostname>(2); the domain part is taken to be "
13305 "everything after the first \\(aq.\\(aq.  Finally, if the hostname does not "
13306 "contain a domain part, the root domain is assumed."
13307 msgstr ""
13308
13309 #. type: TP
13310 #: build/C/man5/resolv.conf.5:73
13311 #, no-wrap
13312 msgid "B<search> Search list for host-name lookup."
13313 msgstr ""
13314
13315 #.  When having a resolv.conv with a line
13316 #.   search subdomain.domain.tld domain.tld
13317 #.  and doing a hostlookup, for example by
13318 #.   ping host.anothersubdomain
13319 #.  it sends dns-requests for
13320 #.   host.anothersubdomain.
13321 #.   host.anothersubdomain.subdomain.domain.tld.
13322 #.   host.anothersubdomain.domain.tld.
13323 #.  thus not only causing unnecessary traffic for the root-dns-servers
13324 #.  but broadcasting information to the outside and making man-in-the-middle
13325 #.  attacks possible.
13326 #. type: Plain text
13327 #: build/C/man5/resolv.conf.5:103
13328 msgid ""
13329 "The search list is normally determined from the local domain name; by "
13330 "default, it contains only the local domain name.  This may be changed by "
13331 "listing the desired domain search path following the I<search> keyword with "
13332 "spaces or tabs separating the names.  Resolver queries having fewer than "
13333 "I<ndots> dots (default is 1) in them will be attempted using each component "
13334 "of the search path in turn until a match is found.  For environments with "
13335 "multiple subdomains please read B<options ndots:>I<n> below to avoid "
13336 "man-in-the-middle attacks and unnecessary traffic for the root-dns-servers.  "
13337 "Note that this process may be slow and will generate a lot of network "
13338 "traffic if the servers for the listed domains are not local, and that "
13339 "queries will time out if no server is available for one of the domains."
13340 msgstr ""
13341
13342 #. type: Plain text
13343 #: build/C/man5/resolv.conf.5:106
13344 msgid ""
13345 "The search list is currently limited to six domains with a total of 256 "
13346 "characters."
13347 msgstr ""
13348
13349 #. type: TP
13350 #: build/C/man5/resolv.conf.5:106
13351 #, no-wrap
13352 msgid "B<sortlist>"
13353 msgstr ""
13354
13355 #. type: Plain text
13356 #: build/C/man5/resolv.conf.5:119
13357 msgid ""
13358 "This option allows addresses returned by B<gethostbyname>(3)  to be sorted.  "
13359 "A sortlist is specified by IP-address-netmask pairs.  The netmask is "
13360 "optional and defaults to the natural netmask of the net.  The IP address and "
13361 "optional network pairs are separated by slashes.  Up to 10 pairs may be "
13362 "specified.  Here is an example:"
13363 msgstr ""
13364
13365 #. type: Plain text
13366 #: build/C/man5/resolv.conf.5:122
13367 msgid "sortlist 130.155.160.0/255.255.240.0 130.155.0.0"
13368 msgstr ""
13369
13370 #. type: TP
13371 #: build/C/man5/resolv.conf.5:124
13372 #, no-wrap
13373 msgid "B<options>"
13374 msgstr ""
13375
13376 #. type: Plain text
13377 #: build/C/man5/resolv.conf.5:128
13378 msgid ""
13379 "Options allows certain internal resolver variables to be modified.  The "
13380 "syntax is"
13381 msgstr ""
13382
13383 #. type: Plain text
13384 #: build/C/man5/resolv.conf.5:131
13385 msgid "B<options> I<option> I<...>"
13386 msgstr ""
13387
13388 #. type: Plain text
13389 #: build/C/man5/resolv.conf.5:133
13390 msgid "where I<option> is one of the following:"
13391 msgstr ""
13392
13393 #. type: TP
13394 #: build/C/man5/resolv.conf.5:133
13395 #, no-wrap
13396 msgid "B<debug>"
13397 msgstr ""
13398
13399 #.  Since glibc 2.2?
13400 #. type: Plain text
13401 #: build/C/man5/resolv.conf.5:142
13402 msgid ""
13403 "sets B<RES_DEBUG> in I<_res.options> (effective only if glibc was built with "
13404 "debug support; see B<resolver>(3))."
13405 msgstr ""
13406
13407 #. type: TP
13408 #: build/C/man5/resolv.conf.5:142
13409 #, no-wrap
13410 msgid "B<ndots:>I<n>"
13411 msgstr ""
13412
13413 #.  Since glibc 2.2
13414 #. type: Plain text
13415 #: build/C/man5/resolv.conf.5:156
13416 msgid ""
13417 "sets a threshold for the number of dots which must appear in a name given to "
13418 "B<res_query>(3)  (see B<resolver>(3))  before an I<initial absolute query> "
13419 "will be made.  The default for I<n> is 1, meaning that if there are any dots "
13420 "in a name, the name will be tried first as an absolute name before any "
13421 "I<search list> elements are appended to it.  The value for this option is "
13422 "silently capped to 15."
13423 msgstr ""
13424
13425 #. type: TP
13426 #: build/C/man5/resolv.conf.5:156
13427 #, no-wrap
13428 msgid "B<timeout:>I<n>"
13429 msgstr ""
13430
13431 #.  Since glibc 2.2
13432 #. type: Plain text
13433 #: build/C/man5/resolv.conf.5:167
13434 msgid ""
13435 "sets the amount of time the resolver will wait for a response from a remote "
13436 "name server before retrying the query via a different name server.  Measured "
13437 "in seconds, the default is B<RES_TIMEOUT> (currently 5, see "
13438 "I<E<lt>resolv.hE<gt>>).  The value for this option is silently capped to 30."
13439 msgstr ""
13440
13441 #. type: TP
13442 #: build/C/man5/resolv.conf.5:167
13443 #, no-wrap
13444 msgid "B<attempts:>I<n>"
13445 msgstr ""
13446
13447 #. type: Plain text
13448 #: build/C/man5/resolv.conf.5:176
13449 msgid ""
13450 "sets the number of times the resolver will send a query to its name servers "
13451 "before giving up and returning an error to the calling application.  The "
13452 "default is B<RES_DFLRETRY> (currently 2, see I<E<lt>resolv.hE<gt>>).  The "
13453 "value for this option is silently capped to 5."
13454 msgstr ""
13455
13456 #. type: TP
13457 #: build/C/man5/resolv.conf.5:176
13458 #, no-wrap
13459 msgid "B<rotate>"
13460 msgstr ""
13461
13462 #.  Since glibc 2.2
13463 #. type: Plain text
13464 #: build/C/man5/resolv.conf.5:186
13465 msgid ""
13466 "sets B<RES_ROTATE> in I<_res.options>, which causes round-robin selection of "
13467 "nameservers from among those listed.  This has the effect of spreading the "
13468 "query load among all listed servers, rather than having all clients try the "
13469 "first listed server first every time."
13470 msgstr ""
13471
13472 #. type: TP
13473 #: build/C/man5/resolv.conf.5:186
13474 #, no-wrap
13475 msgid "B<no-check-names>"
13476 msgstr ""
13477
13478 #.  since glibc 2.2
13479 #. type: Plain text
13480 #: build/C/man5/resolv.conf.5:196
13481 msgid ""
13482 "sets B<RES_NOCHECKNAME> in I<_res.options>, which disables the modern BIND "
13483 "checking of incoming hostnames and mail names for invalid characters such as "
13484 "underscore (_), non-ASCII, or control characters."
13485 msgstr ""
13486
13487 #. type: TP
13488 #: build/C/man5/resolv.conf.5:196
13489 #, no-wrap
13490 msgid "B<inet6>"
13491 msgstr ""
13492
13493 #.  Since glibc 2.2
13494 #. type: Plain text
13495 #: build/C/man5/resolv.conf.5:207
13496 msgid ""
13497 "sets B<RES_USE_INET6> in I<_res.options>.  This has the effect of trying a "
13498 "AAAA query before an A query inside the B<gethostbyname>(3)  function, and "
13499 "of mapping IPv4 responses in IPv6 \"tunneled form\" if no AAAA records are "
13500 "found but an A record set exists."
13501 msgstr ""
13502
13503 #. type: TP
13504 #: build/C/man5/resolv.conf.5:207
13505 #, no-wrap
13506 msgid "B<ip6-bytestring> (since glibc 2.3.4)"
13507 msgstr ""
13508
13509 #. type: Plain text
13510 #: build/C/man5/resolv.conf.5:216
13511 msgid ""
13512 "sets B<RES_USE_BSTRING> in I<_res.options>.  This causes reverse IPv6 "
13513 "lookups to be made using the bit-label format described in RFC\\ 2673; if "
13514 "this option is not set, then nibble format is used."
13515 msgstr ""
13516
13517 #. type: TP
13518 #: build/C/man5/resolv.conf.5:216
13519 #, no-wrap
13520 msgid "B<ip6-dotint>/B<no-ip6-dotint> (since glibc 2.3.4)"
13521 msgstr ""
13522
13523 #. type: Plain text
13524 #: build/C/man5/resolv.conf.5:233
13525 msgid ""
13526 "Clear/set B<RES_NOIP6DOTINT> in I<_res.options>.  When this option is clear "
13527 "(B<ip6-dotint>), reverse IPv6 lookups are made in the (deprecated)  "
13528 "I<ip6.int> zone; when this option is set (B<no-ip6-dotint>), reverse IPv6 "
13529 "lookups are made in the I<ip6.arpa> zone by default.  This option is set by "
13530 "default."
13531 msgstr ""
13532
13533 #. type: TP
13534 #: build/C/man5/resolv.conf.5:233
13535 #, no-wrap
13536 msgid "B<edns0> (since glibc 2.6)"
13537 msgstr ""
13538
13539 #. type: Plain text
13540 #: build/C/man5/resolv.conf.5:240
13541 msgid ""
13542 "sets B<RES_USE_EDNSO> in I<_res.options>.  This enables support for the DNS "
13543 "extensions described in RFC\\ 2671."
13544 msgstr ""
13545
13546 #. type: TP
13547 #: build/C/man5/resolv.conf.5:240
13548 #, no-wrap
13549 msgid "B<single-request> (since glibc 2.10)"
13550 msgstr ""
13551
13552 #. type: Plain text
13553 #: build/C/man5/resolv.conf.5:253
13554 msgid ""
13555 "sets B<RES_SNGLKUP> in I<_res.options>.  By default, glibc performs IPv4 and "
13556 "IPv6 lookups in parallel since version 2.9.  Some appliance DNS servers "
13557 "cannot handle these queries properly and make the requests time out.  This "
13558 "option disables the behavior and makes glibc perform the IPv6 and IPv4 "
13559 "requests sequentially (at the cost of some slowdown of the resolving "
13560 "process)."
13561 msgstr ""
13562
13563 #. type: TP
13564 #: build/C/man5/resolv.conf.5:253
13565 #, no-wrap
13566 msgid "B<single-request-reopen> (since glibc 2.9)"
13567 msgstr ""
13568
13569 #. type: Plain text
13570 #: build/C/man5/resolv.conf.5:261
13571 msgid ""
13572 "The resolver uses the same socket for the A and AAAA requests.  Some "
13573 "hardware mistakenly sends back only one reply.  When that happens the client "
13574 "system will sit and wait for the second reply.  Turning this option on "
13575 "changes this behavior so that if two requests from the same port are not "
13576 "handled correctly it will close the socket and open a new one before sending "
13577 "the second request."
13578 msgstr ""
13579
13580 #. type: Plain text
13581 #: build/C/man5/resolv.conf.5:266
13582 msgid ""
13583 "The I<domain> and I<search> keywords are mutually exclusive.  If more than "
13584 "one instance of these keywords is present, the last instance wins."
13585 msgstr ""
13586
13587 #. type: Plain text
13588 #: build/C/man5/resolv.conf.5:271
13589 msgid ""
13590 "The I<search> keyword of a system's I<resolv.conf> file can be overridden on "
13591 "a per-process basis by setting the environment variable B<LOCALDOMAIN> to a "
13592 "space-separated list of search domains."
13593 msgstr ""
13594
13595 #. type: Plain text
13596 #: build/C/man5/resolv.conf.5:277
13597 msgid ""
13598 "The I<options> keyword of a system's I<resolv.conf> file can be amended on a "
13599 "per-process basis by setting the environment variable B<RES_OPTIONS> to a "
13600 "space-separated list of resolver options as explained above under "
13601 "B<options>."
13602 msgstr ""
13603
13604 #. type: Plain text
13605 #: build/C/man5/resolv.conf.5:281
13606 msgid ""
13607 "The keyword and value must appear on a single line, and the keyword (e.g., "
13608 "B<nameserver>) must start the line.  The value follows the keyword, "
13609 "separated by white space."
13610 msgstr ""
13611
13612 #. type: Plain text
13613 #: build/C/man5/resolv.conf.5:284
13614 msgid ""
13615 "Lines that contain a semicolon (;) or hash character (#)  in the first "
13616 "column are treated as comments."
13617 msgstr ""
13618
13619 #. type: Plain text
13620 #: build/C/man5/resolv.conf.5:287
13621 msgid "I</etc/resolv.conf>, I<E<lt>resolv.hE<gt>>"
13622 msgstr ""
13623
13624 #. type: Plain text
13625 #: build/C/man5/resolv.conf.5:292
13626 msgid "B<gethostbyname>(3), B<resolver>(3), B<hostname>(7), B<named>(8)"
13627 msgstr ""
13628
13629 #. type: Plain text
13630 #: build/C/man5/resolv.conf.5:294
13631 msgid "Name Server Operations Guide for BIND"
13632 msgstr ""
13633
13634 #. type: TH
13635 #: build/C/man3/resolver.3:32
13636 #, no-wrap
13637 msgid "RESOLVER"
13638 msgstr ""
13639
13640 #. type: TH
13641 #: build/C/man3/resolver.3:32
13642 #, no-wrap
13643 msgid "2013-03-05"
13644 msgstr ""
13645
13646 #. type: Plain text
13647 #: build/C/man3/resolver.3:36
13648 msgid ""
13649 "res_init, res_query, res_search, res_querydomain, res_mkquery, res_send, "
13650 "dn_comp, dn_expand - resolver routines"
13651 msgstr ""
13652
13653 #. type: Plain text
13654 #: build/C/man3/resolver.3:42
13655 #, no-wrap
13656 msgid ""
13657 "B<#include E<lt>netinet/in.hE<gt>>\n"
13658 "B<#include E<lt>arpa/nameser.hE<gt>>\n"
13659 "B<#include E<lt>resolv.hE<gt>>\n"
13660 "B<extern struct state _res;>\n"
13661 msgstr ""
13662
13663 #. type: Plain text
13664 #: build/C/man3/resolver.3:44
13665 #, no-wrap
13666 msgid "B<int res_init(void);>\n"
13667 msgstr ""
13668
13669 #. type: Plain text
13670 #: build/C/man3/resolver.3:46
13671 #, no-wrap
13672 msgid "B<int res_query(const char *>I<dname>B<, int >I<class>B<, int >I<type>B<,>\n"
13673 msgstr ""
13674
13675 #. type: Plain text
13676 #: build/C/man3/resolver.3:48 build/C/man3/resolver.3:53
13677 #, no-wrap
13678 msgid "B<unsigned char *>I<answer>B<, int >I<anslen>B<);>\n"
13679 msgstr ""
13680
13681 #. type: Plain text
13682 #: build/C/man3/resolver.3:51
13683 #, no-wrap
13684 msgid ""
13685 "B<int res_search(const char *>I<dname>B<, int >I<class>B<, int "
13686 ">I<type>B<,>\n"
13687 msgstr ""
13688
13689 #. type: Plain text
13690 #: build/C/man3/resolver.3:56
13691 #, no-wrap
13692 msgid "B<int res_querydomain(const char *>I<name>B<, const char *>I<domain>B<,>\n"
13693 msgstr ""
13694
13695 #. type: Plain text
13696 #: build/C/man3/resolver.3:59
13697 #, no-wrap
13698 msgid ""
13699 "B<int >I<class>B<, int >I<type>B<, unsigned char *>I<answer>B<,>\n"
13700 "B<int >I<anslen>B<);>\n"
13701 msgstr ""
13702
13703 #. type: Plain text
13704 #: build/C/man3/resolver.3:62
13705 #, no-wrap
13706 msgid "B<int res_mkquery(int >I<op>B<, const char *>I<dname>B<, int >I<class>B<,>\n"
13707 msgstr ""
13708
13709 #. type: Plain text
13710 #: build/C/man3/resolver.3:65
13711 #, no-wrap
13712 msgid ""
13713 "B<int >I<type>B<, char *>I<data>B<, int >I<datalen>B<, struct rrec "
13714 "*>I<newrr>B<,>\n"
13715 "B<char *>I<buf>B<, int >I<buflen>B<);>\n"
13716 msgstr ""
13717
13718 #. type: Plain text
13719 #: build/C/man3/resolver.3:68
13720 #, no-wrap
13721 msgid ""
13722 "B<int res_send(const char *>I<msg>B<, int >I<msglen>B<, char "
13723 "*>I<answer>B<,>\n"
13724 msgstr ""
13725
13726 #. type: Plain text
13727 #: build/C/man3/resolver.3:70
13728 #, no-wrap
13729 msgid "B<int >I<anslen>B<);>\n"
13730 msgstr ""
13731
13732 #. type: Plain text
13733 #: build/C/man3/resolver.3:73
13734 #, no-wrap
13735 msgid "B<int dn_comp(unsigned char *>I<exp_dn>B<, unsigned char *>I<comp_dn>B<,>\n"
13736 msgstr ""
13737
13738 #. type: Plain text
13739 #: build/C/man3/resolver.3:75
13740 #, no-wrap
13741 msgid ""
13742 "B<int >I<length>B<, unsigned char **>I<dnptrs>B<, unsigned char "
13743 "**>I<lastdnptr>B<);>\n"
13744 msgstr ""
13745
13746 #. type: Plain text
13747 #: build/C/man3/resolver.3:78
13748 #, no-wrap
13749 msgid "B<int dn_expand(unsigned char *>I<msg>B<, unsigned char *>I<eomorig>B<,>\n"
13750 msgstr ""
13751
13752 #. type: Plain text
13753 #: build/C/man3/resolver.3:81
13754 #, no-wrap
13755 msgid ""
13756 "B<unsigned char *>I<comp_dn>B<, char *>I<exp_dn>B<,>\n"
13757 "B<int >I<length>B<);>\n"
13758 msgstr ""
13759
13760 #. type: Plain text
13761 #: build/C/man3/resolver.3:85
13762 msgid "Link with I<-lresolv>."
13763 msgstr ""
13764
13765 #. type: Plain text
13766 #: build/C/man3/resolver.3:88
13767 msgid ""
13768 "These functions make queries to and interpret the responses from Internet "
13769 "domain name servers."
13770 msgstr ""
13771
13772 #. type: Plain text
13773 #: build/C/man3/resolver.3:102
13774 msgid ""
13775 "The B<res_init>()  function reads the configuration files (see "
13776 "B<resolv.conf>(5))  to get the default domain name, search order and name "
13777 "server address(es).  If no server is given, the local host is tried.  If no "
13778 "domain is given, that associated with the local host is used.  It can be "
13779 "overridden with the environment variable B<LOCALDOMAIN>.  B<res_init>()  is "
13780 "normally executed by the first call to one of the other functions."
13781 msgstr ""
13782
13783 #. type: Plain text
13784 #: build/C/man3/resolver.3:110
13785 msgid ""
13786 "The B<res_query>()  function queries the name server for the fully qualified "
13787 "domain name I<name> of specified I<type> and I<class>.  The reply is left in "
13788 "the buffer I<answer> of length I<anslen> supplied by the caller."
13789 msgstr ""
13790
13791 #. type: Plain text
13792 #: build/C/man3/resolver.3:123
13793 msgid ""
13794 "The B<res_search>()  function makes a query and waits for the response like "
13795 "B<res_query>(), but in addition implements the default and search rules "
13796 "controlled by B<RES_DEFNAMES> and B<RES_DNSRCH> (see description of I<_res> "
13797 "options below)."
13798 msgstr ""
13799
13800 #. type: Plain text
13801 #: build/C/man3/resolver.3:129
13802 msgid ""
13803 "The B<res_querydomain>()  function makes a query using B<res_query>()  on "
13804 "the concatenation of I<name> and I<domain>."
13805 msgstr ""
13806
13807 #. type: Plain text
13808 #: build/C/man3/resolver.3:132
13809 msgid "The following functions are lower-level routines used by B<res_query>()."
13810 msgstr ""
13811
13812 #. type: Plain text
13813 #: build/C/man3/resolver.3:143
13814 msgid ""
13815 "The B<res_mkquery>()  function constructs a query message in I<buf> of "
13816 "length I<buflen> for the domain name I<dname>.  The query type I<op> is "
13817 "usually B<QUERY>, but can be any of the types defined in "
13818 "I<E<lt>arpa/nameser.hE<gt>>.  I<newrr> is currently unused."
13819 msgstr ""
13820
13821 #. type: Plain text
13822 #: build/C/man3/resolver.3:153
13823 msgid ""
13824 "The B<res_send>()  function sends a preformatted query given in I<msg> of "
13825 "length I<msglen> and returns the answer in I<answer> which is of length "
13826 "I<anslen>.  It will call B<res_init>(), if it has not already been called."
13827 msgstr ""
13828
13829 #. type: Plain text
13830 #: build/C/man3/resolver.3:166
13831 msgid ""
13832 "The B<dn_comp>()  function compresses the domain name I<exp_dn> and stores "
13833 "it in the buffer I<comp_dn> of length I<length>.  The compression uses an "
13834 "array of pointers I<dnptrs> to previously compressed names in the current "
13835 "message.  The first pointer points to the beginning of the message and the "
13836 "list ends with NULL.  The limit of the array is specified by I<lastdnptr>.  "
13837 "If I<dnptr> is NULL, domain names are not compressed.  If I<lastdnptr> is "
13838 "NULL, the list of labels is not updated."
13839 msgstr ""
13840
13841 #. type: Plain text
13842 #: build/C/man3/resolver.3:175
13843 msgid ""
13844 "The B<dn_expand>()  function expands the compressed domain name I<comp_dn> "
13845 "to a full domain name, which is placed in the buffer I<exp_dn> of size "
13846 "I<length>.  The compressed name is contained in a query or reply message, "
13847 "and I<msg> points to the beginning of the message."
13848 msgstr ""
13849
13850 #. type: Plain text
13851 #: build/C/man3/resolver.3:183
13852 msgid ""
13853 "The resolver routines use global configuration and state information "
13854 "contained in the structure I<_res>, which is defined in "
13855 "I<E<lt>resolv.hE<gt>>.  The only field that is normally manipulated by the "
13856 "user is I<_res.options>.  This field can contain the bitwise \"OR\" of the "
13857 "following options:"
13858 msgstr ""
13859
13860 #. type: TP
13861 #: build/C/man3/resolver.3:183
13862 #, no-wrap
13863 msgid "B<RES_INIT>"
13864 msgstr ""
13865
13866 #. type: Plain text
13867 #: build/C/man3/resolver.3:188
13868 msgid "True if B<res_init>()  has been called."
13869 msgstr ""
13870
13871 #. type: TP
13872 #: build/C/man3/resolver.3:188
13873 #, no-wrap
13874 msgid "B<RES_DEBUG>"
13875 msgstr ""
13876
13877 #.  See resolv/README.
13878 #.  Support for RES_DEBUG was made conditional in glibc 2.2.
13879 #. type: Plain text
13880 #: build/C/man3/resolver.3:195
13881 msgid ""
13882 "Print debugging messages.  This option is available only if glibc was built "
13883 "with debugging enabled, which is not the default."
13884 msgstr ""
13885
13886 #. type: TP
13887 #: build/C/man3/resolver.3:195
13888 #, no-wrap
13889 msgid "B<RES_AAONLY>"
13890 msgstr ""
13891
13892 #. type: Plain text
13893 #: build/C/man3/resolver.3:202
13894 msgid ""
13895 "Accept authoritative answers only.  B<res_send>()  continues until it finds "
13896 "an authoritative answer or returns an error.  [Not currently implemented]."
13897 msgstr ""
13898
13899 #. type: TP
13900 #: build/C/man3/resolver.3:202
13901 #, no-wrap
13902 msgid "B<RES_USEVC>"
13903 msgstr ""
13904
13905 #. type: Plain text
13906 #: build/C/man3/resolver.3:205
13907 msgid "Use TCP connections for queries rather than UDP datagrams."
13908 msgstr ""
13909
13910 #. type: TP
13911 #: build/C/man3/resolver.3:205
13912 #, no-wrap
13913 msgid "B<RES_PRIMARY>"
13914 msgstr ""
13915
13916 #. type: Plain text
13917 #: build/C/man3/resolver.3:208
13918 msgid "Query primary domain name server only."
13919 msgstr ""
13920
13921 #. type: TP
13922 #: build/C/man3/resolver.3:208
13923 #, no-wrap
13924 msgid "B<RES_IGNTC>"
13925 msgstr ""
13926
13927 #. type: Plain text
13928 #: build/C/man3/resolver.3:213
13929 msgid ""
13930 "Ignore truncation errors.  Don't retry with TCP.  [Not currently "
13931 "implemented]."
13932 msgstr ""
13933
13934 #. type: TP
13935 #: build/C/man3/resolver.3:213
13936 #, no-wrap
13937 msgid "B<RES_RECURSE>"
13938 msgstr ""
13939
13940 #. type: Plain text
13941 #: build/C/man3/resolver.3:220
13942 msgid ""
13943 "Set the recursion desired bit in queries.  Recursion is carried out by the "
13944 "domain name server, not by B<res_send>().  [Enabled by default]."
13945 msgstr ""
13946
13947 #. type: TP
13948 #: build/C/man3/resolver.3:220
13949 #, no-wrap
13950 msgid "B<RES_DEFNAMES>"
13951 msgstr ""
13952
13953 #. type: Plain text
13954 #: build/C/man3/resolver.3:227
13955 msgid ""
13956 "If set, B<res_search>()  will append the default domain name to single "
13957 "component names, i.e., those that do not contain a dot.  [Enabled by "
13958 "default]."
13959 msgstr ""
13960
13961 #. type: TP
13962 #: build/C/man3/resolver.3:227
13963 #, no-wrap
13964 msgid "B<RES_STAYOPEN>"
13965 msgstr ""
13966
13967 #. type: Plain text
13968 #: build/C/man3/resolver.3:232
13969 msgid "Used with B<RES_USEVC> to keep the TCP connection open between queries."
13970 msgstr ""
13971
13972 #. type: TP
13973 #: build/C/man3/resolver.3:232
13974 #, no-wrap
13975 msgid "B<RES_DNSRCH>"
13976 msgstr ""
13977
13978 #. type: Plain text
13979 #: build/C/man3/resolver.3:241
13980 msgid ""
13981 "If set, B<res_search>()  will search for hostnames in the current domain and "
13982 "in parent domains.  This option is used by B<gethostbyname>(3).  [Enabled by "
13983 "default]."
13984 msgstr ""
13985
13986 #. type: Plain text
13987 #: build/C/man3/resolver.3:245
13988 msgid ""
13989 "This list is not complete.  You can find some other flags described in "
13990 "B<resolv.conf>(5)."
13991 msgstr ""
13992
13993 #. type: Plain text
13994 #: build/C/man3/resolver.3:250
13995 msgid "The B<res_init>()  function returns 0 on success, or -1 if an error occurs."
13996 msgstr ""
13997
13998 #. type: Plain text
13999 #: build/C/man3/resolver.3:260
14000 msgid ""
14001 "The B<res_query>(), B<res_search>(), B<res_querydomain>(), B<res_mkquery>()  "
14002 "and B<res_send>()  functions return the length of the response, or -1 if an "
14003 "error occurs."
14004 msgstr ""
14005
14006 #. type: Plain text
14007 #: build/C/man3/resolver.3:267
14008 msgid ""
14009 "The B<dn_comp>()  and B<dn_expand>()  functions return the length of the "
14010 "compressed name, or -1 if an error occurs."
14011 msgstr ""
14012
14013 #. type: Plain text
14014 #: build/C/man3/resolver.3:271
14015 #, no-wrap
14016 msgid ""
14017 "/etc/resolv.conf          resolver configuration file\n"
14018 "/etc/host.conf            resolver configuration file\n"
14019 msgstr ""
14020
14021 #. type: Plain text
14022 #: build/C/man3/resolver.3:274
14023 msgid "4.3BSD."
14024 msgstr ""
14025
14026 #. type: Plain text
14027 #: build/C/man3/resolver.3:280
14028 msgid ""
14029 "B<gethostbyname>(3), B<resolv.conf>(5), B<resolver>(5), B<hostname>(7), "
14030 "B<named>(8)"
14031 msgstr ""
14032
14033 #. type: TH
14034 #: build/C/man3/rexec.3:41
14035 #, no-wrap
14036 msgid "REXEC"
14037 msgstr ""
14038
14039 #. type: Plain text
14040 #: build/C/man3/rexec.3:44
14041 msgid "rexec, rexec_af - return stream to a remote command"
14042 msgstr ""
14043
14044 #. type: Plain text
14045 #: build/C/man3/rexec.3:48
14046 #, no-wrap
14047 msgid ""
14048 "B<#define _BSD_SOURCE>             /* See feature_test_macros(7) */\n"
14049 "B<#include E<lt>netdb.hE<gt>>\n"
14050 msgstr ""
14051
14052 #. type: Plain text
14053 #: build/C/man3/rexec.3:51
14054 #, no-wrap
14055 msgid ""
14056 "B<int rexec(char **>I<ahost>B<, int >I<inport>B<, char *>I<user>B<, >\n"
14057 "B<          char *>I<passwd>B<, char *>I<cmd>B<, int *>I<fd2p>B<);>\n"
14058 msgstr ""
14059
14060 #. type: Plain text
14061 #: build/C/man3/rexec.3:55
14062 #, no-wrap
14063 msgid ""
14064 "B<int rexec_af(char **>I<ahost>B<, int >I<inport>B<, char *>I<user>B<, >\n"
14065 "B<             char *>I<passwd>B<, char *>I<cmd>B<, int *>I<fd2p>B<,>\n"
14066 "B<             sa_family_t >I<af>B<);>\n"
14067 msgstr ""
14068
14069 #. type: Plain text
14070 #: build/C/man3/rexec.3:59
14071 msgid "This interface is obsoleted by B<rcmd>(3)."
14072 msgstr ""
14073
14074 #. type: Plain text
14075 #: build/C/man3/rexec.3:78
14076 msgid ""
14077 "The B<rexec>()  function looks up the host I<*ahost> using "
14078 "B<gethostbyname>(3), returning -1 if the host does not exist.  Otherwise "
14079 "I<*ahost> is set to the standard name of the host.  If a username and "
14080 "password are both specified, then these are used to authenticate to the "
14081 "foreign host; otherwise the environment and then the user's I<.netrc> file "
14082 "in his home directory are searched for appropriate information.  If all this "
14083 "fails, the user is prompted for the information."
14084 msgstr ""
14085
14086 #. type: Plain text
14087 #: build/C/man3/rexec.3:89
14088 msgid ""
14089 "The port I<inport> specifies which well-known DARPA Internet port to use for "
14090 "the connection; the call I<getservbyname(\"exec\", \"tcp\")> (see "
14091 "B<getservent>(3))  will return a pointer to a structure that contains the "
14092 "necessary port.  The protocol for connection is described in detail in "
14093 "B<rexecd>(8)."
14094 msgstr ""
14095
14096 #. type: Plain text
14097 #: build/C/man3/rexec.3:122
14098 msgid ""
14099 "If the connection succeeds, a socket in the Internet domain of type "
14100 "B<SOCK_STREAM> is returned to the caller, and given to the remote command as "
14101 "I<stdin> and I<stdout>.  If I<fd2p> is nonzero, then an auxiliary channel to "
14102 "a control process will be setup, and a descriptor for it will be placed in "
14103 "I<*fd2p>.  The control process will return diagnostic output from the "
14104 "command (unit 2) on this channel, and will also accept bytes on this channel "
14105 "as being UNIX signal numbers, to be forwarded to the process group of the "
14106 "command.  The diagnostic information returned does not include remote "
14107 "authorization failure, as the secondary connection is set up after "
14108 "authorization has been verified.  If I<fd2p> is 0, then the I<stderr> (unit "
14109 "2 of the remote command) will be made the same as the I<stdout> and no "
14110 "provision is made for sending arbitrary signals to the remote process, "
14111 "although you may be able to get its attention by using out-of-band data."
14112 msgstr ""
14113
14114 #. type: SS
14115 #: build/C/man3/rexec.3:122
14116 #, no-wrap
14117 msgid "rexec_af()"
14118 msgstr ""
14119
14120 #. type: Plain text
14121 #: build/C/man3/rexec.3:138
14122 msgid ""
14123 "The B<rexec>()  function works over IPv4 (B<AF_INET>).  By contrast, the "
14124 "B<rexec_af>()  function provides an extra argument, I<af>, that allows the "
14125 "caller to select the protocol.  This argument can be specified as "
14126 "B<AF_INET>, B<AF_INET6>, or B<AF_UNSPEC> (to allow the implementation to "
14127 "select the protocol)."
14128 msgstr ""
14129
14130 #. type: Plain text
14131 #: build/C/man3/rexec.3:142
14132 msgid "The B<rexec_af>()  function was added to glibc in version 2.2."
14133 msgstr ""
14134
14135 #. type: Plain text
14136 #: build/C/man3/rexec.3:149
14137 msgid "The B<rexec>()  and B<rexec_af>()  functions are not thread-safe."
14138 msgstr ""
14139
14140 #. type: Plain text
14141 #: build/C/man3/rexec.3:158
14142 msgid ""
14143 "These functions are not in POSIX.1-2001.  The B<rexec>()  function first "
14144 "appeared in 4.2BSD, and is present on the BSDs, Solaris, and many other "
14145 "systems.  The B<rexec_af>()  function is more recent, and less widespread."
14146 msgstr ""
14147
14148 #. type: Plain text
14149 #: build/C/man3/rexec.3:162
14150 msgid "The B<rexec>()  function sends the unencrypted password across the network."
14151 msgstr ""
14152
14153 #. type: Plain text
14154 #: build/C/man3/rexec.3:167
14155 msgid ""
14156 "The underlying service is considered a big security hole and therefore not "
14157 "enabled on many sites; see B<rexecd>(8)  for explanations."
14158 msgstr ""
14159
14160 #. type: Plain text
14161 #: build/C/man3/rexec.3:170
14162 msgid "B<rcmd>(3), B<rexecd>(8)"
14163 msgstr ""
14164
14165 #. type: TH
14166 #: build/C/man5/services.5:34
14167 #, no-wrap
14168 msgid "SERVICES"
14169 msgstr ""
14170
14171 #. type: TH
14172 #: build/C/man5/services.5:34
14173 #, no-wrap
14174 msgid "2010-05-22"
14175 msgstr ""
14176
14177 #. type: Plain text
14178 #: build/C/man5/services.5:37
14179 msgid "services - Internet network services list"
14180 msgstr ""
14181
14182 #. type: Plain text
14183 #: build/C/man5/services.5:52
14184 msgid ""
14185 "B<services> is a plain ASCII file providing a mapping between human-friendly "
14186 "textual names for internet services, and their underlying assigned port "
14187 "numbers and protocol types.  Every networking program should look into this "
14188 "file to get the port number (and protocol) for its service.  The C library "
14189 "routines B<getservent>(3), B<getservbyname>(3), B<getservbyport>(3), "
14190 "B<setservent>(3), and B<endservent>(3)  support querying this file from "
14191 "programs."
14192 msgstr ""
14193
14194 #. type: Plain text
14195 #: build/C/man5/services.5:58
14196 msgid ""
14197 "Port numbers are assigned by the IANA (Internet Assigned Numbers Authority), "
14198 "and their current policy is to assign both TCP and UDP protocols when "
14199 "assigning a port number.  Therefore, most entries will have two entries, "
14200 "even for TCP-only services."
14201 msgstr ""
14202
14203 #. type: Plain text
14204 #: build/C/man5/services.5:70
14205 msgid ""
14206 "Port numbers below 1024 (so-called \"low numbered\" ports) can be bound to "
14207 "only by root (see B<bind>(2), B<tcp>(7), and B<udp>(7)).  This is so clients "
14208 "connecting to low numbered ports can trust that the service running on the "
14209 "port is the standard implementation, and not a rogue service run by a user "
14210 "of the machine.  Well-known port numbers specified by the IANA are normally "
14211 "located in this root-only space."
14212 msgstr ""
14213
14214 #. type: Plain text
14215 #: build/C/man5/services.5:85
14216 msgid ""
14217 "The presence of an entry for a service in the B<services> file does not "
14218 "necessarily mean that the service is currently running on the machine.  See "
14219 "B<inetd.conf>(5)  for the configuration of Internet services offered.  Note "
14220 "that not all networking services are started by B<inetd>(8), and so won't "
14221 "appear in B<inetd.conf>(5).  In particular, news (NNTP) and mail (SMTP) "
14222 "servers are often initialized from the system boot scripts."
14223 msgstr ""
14224
14225 #. type: Plain text
14226 #: build/C/man5/services.5:94
14227 msgid ""
14228 "The location of the B<services> file is defined by B<_PATH_SERVICES> in "
14229 "I<E<lt>netdb.hE<gt>>.  This is usually set to I</etc/services>."
14230 msgstr ""
14231
14232 #. type: Plain text
14233 #: build/C/man5/services.5:96
14234 msgid "Each line describes one service, and is of the form:"
14235 msgstr ""
14236
14237 #. type: Plain text
14238 #: build/C/man5/services.5:98
14239 msgid "I<service-name\\ \\ \\ port>B</>I<protocol\\ \\ \\ >[I<aliases ...>]"
14240 msgstr ""
14241
14242 #. type: TP
14243 #: build/C/man5/services.5:98
14244 #, no-wrap
14245 msgid "where:"
14246 msgstr ""
14247
14248 #. type: TP
14249 #: build/C/man5/services.5:100
14250 #, no-wrap
14251 msgid "I<service-name>"
14252 msgstr ""
14253
14254 #. type: Plain text
14255 #: build/C/man5/services.5:106
14256 msgid ""
14257 "is the friendly name the service is known by and looked up under.  It is "
14258 "case sensitive.  Often, the client program is named after the "
14259 "I<service-name>."
14260 msgstr ""
14261
14262 #. type: TP
14263 #: build/C/man5/services.5:106
14264 #, no-wrap
14265 msgid "I<port>"
14266 msgstr ""
14267
14268 #. type: Plain text
14269 #: build/C/man5/services.5:109
14270 msgid "is the port number (in decimal) to use for this service."
14271 msgstr ""
14272
14273 #. type: Plain text
14274 #: build/C/man5/services.5:120
14275 msgid ""
14276 "is the type of protocol to be used.  This field should match an entry in the "
14277 "B<protocols>(5)  file.  Typical values include B<tcp> and B<udp>."
14278 msgstr ""
14279
14280 #. type: Plain text
14281 #: build/C/man5/services.5:126
14282 msgid ""
14283 "is an optional space or tab separated list of other names for this service.  "
14284 "Again, the names are case sensitive."
14285 msgstr ""
14286
14287 #. type: Plain text
14288 #: build/C/man5/services.5:128
14289 msgid "Either spaces or tabs may be used to separate the fields."
14290 msgstr ""
14291
14292 #. type: Plain text
14293 #: build/C/man5/services.5:132
14294 msgid ""
14295 "Comments are started by the hash sign (#) and continue until the end of the "
14296 "line.  Blank lines are skipped."
14297 msgstr ""
14298
14299 #. type: Plain text
14300 #: build/C/man5/services.5:143
14301 msgid ""
14302 "The I<service-name> should begin in the first column of the file, since "
14303 "leading spaces are not stripped.  I<service-names> can be any printable "
14304 "characters excluding space and tab.  However, a conservative choice of "
14305 "characters should be used to minimize compatibility problems.  E.g., a-z, "
14306 "0-9, and hyphen (-) would seem a sensible choice."
14307 msgstr ""
14308
14309 #. type: Plain text
14310 #: build/C/man5/services.5:152
14311 msgid ""
14312 "Lines not matching this format should not be present in the file.  "
14313 "(Currently, they are silently skipped by B<getservent>(3), "
14314 "B<getservbyname>(3), and B<getservbyport>(3).  However, this behavior should "
14315 "not be relied on.)"
14316 msgstr ""
14317
14318 #. type: Plain text
14319 #: build/C/man5/services.5:169
14320 msgid "A sample B<services> file might look like this:"
14321 msgstr ""
14322
14323 #. type: Plain text
14324 #: build/C/man5/services.5:182
14325 #, no-wrap
14326 msgid ""
14327 "CW<netstat         15/tcp\n"
14328 "qotd            17/tcp          quote\n"
14329 "msp             18/tcp          # message send protocol\n"
14330 "msp             18/udp          # message send protocol\n"
14331 "chargen         19/tcp          ttytst source\n"
14332 "chargen         19/udp          ttytst source\n"
14333 "ftp             21/tcp\n"
14334 "# 22 - unassigned\n"
14335 "telnet          23/tcp>\n"
14336 msgstr ""
14337
14338 #. type: Plain text
14339 #: build/C/man5/services.5:189
14340 msgid "The Internet network services list"
14341 msgstr ""
14342
14343 #. type: TP
14344 #: build/C/man5/services.5:189
14345 #, no-wrap
14346 msgid "I<E<lt>netdb.hE<gt>>"
14347 msgstr ""
14348
14349 #.  .SH BUGS
14350 #.  It's not clear when/if the following was ever true;
14351 #.  it isn't true for glibc 2.8:
14352 #.     There is a maximum of 35 aliases, due to the way the
14353 #.     .BR getservent (3)
14354 #.     code is written.
14355 #
14356 #.  It's not clear when/if the following was ever true;
14357 #.  it isn't true for glibc 2.8:
14358 #.     Lines longer than
14359 #.     .B BUFSIZ
14360 #.     (currently 1024) characters will be ignored by
14361 #.     .BR getservent (3),
14362 #.     .BR getservbyname (3),
14363 #.     and
14364 #.     .BR getservbyport (3).
14365 #.     However, this will also cause the next line to be mis-parsed.
14366 #. type: Plain text
14367 #: build/C/man5/services.5:210
14368 msgid "Definition of B<_PATH_SERVICES>"
14369 msgstr ""
14370
14371 #. type: Plain text
14372 #: build/C/man5/services.5:220
14373 msgid ""
14374 "B<listen>(2), B<endservent>(3), B<getservbyname>(3), B<getservbyport>(3), "
14375 "B<getservent>(3), B<setservent>(3), B<inetd.conf>(5), B<protocols>(5), "
14376 "B<inetd>(8)"
14377 msgstr ""
14378
14379 #. type: Plain text
14380 #: build/C/man5/services.5:222
14381 msgid "Assigned Numbers RFC, most recently RFC\\ 1700, (AKA STD0002)."
14382 msgstr ""
14383
14384 #. type: TH
14385 #: build/C/man3/setnetgrent.3:10
14386 #, no-wrap
14387 msgid "SETNETGRENT"
14388 msgstr ""
14389
14390 #. type: TH
14391 #: build/C/man3/setnetgrent.3:10
14392 #, no-wrap
14393 msgid "2007-07-26"
14394 msgstr ""
14395
14396 #. type: Plain text
14397 #: build/C/man3/setnetgrent.3:14
14398 msgid ""
14399 "setnetgrent, endnetgrent, getnetgrent, getnetgrent_r, innetgr - handle "
14400 "network group entries"
14401 msgstr ""
14402
14403 #. type: Plain text
14404 #: build/C/man3/setnetgrent.3:19
14405 #, no-wrap
14406 msgid "B<int setnetgrent(const char *>I<netgroup>B<);>\n"
14407 msgstr ""
14408
14409 #. type: Plain text
14410 #: build/C/man3/setnetgrent.3:21
14411 #, no-wrap
14412 msgid "B<void endnetgrent(void);>\n"
14413 msgstr ""
14414
14415 #. type: Plain text
14416 #: build/C/man3/setnetgrent.3:23
14417 #, no-wrap
14418 msgid ""
14419 "B<int getnetgrent(char **>I<host>B<, char **>I<user>B<, char "
14420 "**>I<domain>B<);>\n"
14421 msgstr ""
14422
14423 #. type: Plain text
14424 #: build/C/man3/setnetgrent.3:26
14425 #, no-wrap
14426 msgid ""
14427 "B<int getnetgrent_r(char **>I<host>B<, char **>I<user>B<,>\n"
14428 "B<                  char **>I<domain>B<, char *>I<buf>B<, int "
14429 ">I<buflen>B<);>\n"
14430 msgstr ""
14431
14432 #. type: Plain text
14433 #: build/C/man3/setnetgrent.3:29
14434 #, no-wrap
14435 msgid ""
14436 "B<int innetgr(const char *>I<netgroup>B<, const char *>I<host>B<,>\n"
14437 "B<            const char *>I<user>B<, const char *>I<domain>B<);>\n"
14438 msgstr ""
14439
14440 #. type: Plain text
14441 #: build/C/man3/setnetgrent.3:43
14442 msgid ""
14443 "B<setnetgrent>(), B<endnetgrent>(), B<getnetgrent>(), B<getnetgrent_r>(), "
14444 "B<innetgr>(): _BSD_SOURCE || _SVID_SOURCE"
14445 msgstr ""
14446
14447 #. type: Plain text
14448 #: build/C/man3/setnetgrent.3:57
14449 msgid ""
14450 "The I<netgroup> is a SunOS invention.  A netgroup database is a list of "
14451 "string triples (I<hostname>, I<username>, I<domainname>)  or other netgroup "
14452 "names.  Any of the elements in a triple can be empty, which means that "
14453 "anything matches.  The functions described here allow access to the netgroup "
14454 "databases.  The file I</etc/nsswitch.conf> defines what database is "
14455 "searched."
14456 msgstr ""
14457
14458 #. type: Plain text
14459 #: build/C/man3/setnetgrent.3:77
14460 msgid ""
14461 "The B<setnetgrent>()  call defines the netgroup that will be searched by "
14462 "subsequent B<getnetgrent>()  calls.  The B<getnetgrent>()  function "
14463 "retrieves the next netgroup entry, and returns pointers in I<host>, I<user>, "
14464 "I<domain>.  A NULL pointer means that the corresponding entry matches any "
14465 "string.  The pointers are valid only as long as there is no call to other "
14466 "netgroup-related functions.  To avoid this problem you can use the GNU "
14467 "function B<getnetgrent_r>()  that stores the strings in the supplied "
14468 "buffer.  To free all allocated buffers use B<endnetgrent>()."
14469 msgstr ""
14470
14471 #. type: Plain text
14472 #: build/C/man3/setnetgrent.3:86
14473 msgid ""
14474 "In most cases you want to check only if the triplet (I<hostname>, "
14475 "I<username>, I<domainname>)  is a member of a netgroup.  The function "
14476 "B<innetgr>()  can be used for this without calling the above three "
14477 "functions.  Again, a NULL pointer is a wildcard and matches any string.  The "
14478 "function is thread-safe."
14479 msgstr ""
14480
14481 #. type: Plain text
14482 #: build/C/man3/setnetgrent.3:88
14483 msgid "These functions return 1 on success and 0 for failure."
14484 msgstr ""
14485
14486 #. type: Plain text
14487 #: build/C/man3/setnetgrent.3:90
14488 msgid "I</etc/netgroup>"
14489 msgstr ""
14490
14491 #.  getnetgrent_r() is on Solaris 8 and AIX 5.1, but not the BSDs.
14492 #. type: Plain text
14493 #: build/C/man3/setnetgrent.3:103
14494 msgid ""
14495 "These functions are not in POSIX.1-2001, but B<setnetgrent>(), "
14496 "B<endnetgrent>(), B<getnetgrent>(), and B<innetgr>()  are available on most "
14497 "UNIX systems.  B<getnetgrent_r>()  is not widely available on other systems."
14498 msgstr ""
14499
14500 #. type: Plain text
14501 #: build/C/man3/setnetgrent.3:107
14502 msgid "In the BSD implementation, B<setnetgrent>()  returns void."
14503 msgstr ""
14504
14505 #. type: Plain text
14506 #: build/C/man3/setnetgrent.3:111
14507 msgid "B<sethostent>(3), B<setprotoent>(3), B<setservent>(3)"
14508 msgstr ""
14509
14510 #. type: TH
14511 #: build/C/man2/shutdown.2:40
14512 #, no-wrap
14513 msgid "SHUTDOWN"
14514 msgstr ""
14515
14516 #. type: TH
14517 #: build/C/man2/shutdown.2:40
14518 #, no-wrap
14519 msgid "2012-09-06"
14520 msgstr ""
14521
14522 #. type: Plain text
14523 #: build/C/man2/shutdown.2:43
14524 msgid "shutdown - shut down part of a full-duplex connection"
14525 msgstr ""
14526
14527 #. type: Plain text
14528 #: build/C/man2/shutdown.2:47
14529 msgid "B<int shutdown(int >I<sockfd>B<, int >I<how>B<);>"
14530 msgstr ""
14531
14532 #. type: Plain text
14533 #: build/C/man2/shutdown.2:69
14534 msgid ""
14535 "The B<shutdown>()  call causes all or part of a full-duplex connection on "
14536 "the socket associated with I<sockfd> to be shut down.  If I<how> is "
14537 "B<SHUT_RD>, further receptions will be disallowed.  If I<how> is B<SHUT_WR>, "
14538 "further transmissions will be disallowed.  If I<how> is B<SHUT_RDWR>, "
14539 "further receptions and transmissions will be disallowed."
14540 msgstr ""
14541
14542 #. type: Plain text
14543 #: build/C/man2/shutdown.2:79
14544 msgid "I<sockfd> is not a valid descriptor."
14545 msgstr ""
14546
14547 #. type: Plain text
14548 #: build/C/man2/shutdown.2:84
14549 msgid "An invalid value was specified in I<how> (but see BUGS)."
14550 msgstr ""
14551
14552 #. type: Plain text
14553 #: build/C/man2/shutdown.2:87
14554 msgid "The specified socket is not connected."
14555 msgstr ""
14556
14557 #. type: Plain text
14558 #: build/C/man2/shutdown.2:91
14559 msgid "I<sockfd> is a file, not a socket."
14560 msgstr ""
14561
14562 #. type: Plain text
14563 #: build/C/man2/shutdown.2:95
14564 msgid ""
14565 "POSIX.1-2001, 4.4BSD (the B<shutdown>()  function call first appeared in "
14566 "4.2BSD)."
14567 msgstr ""
14568
14569 #. type: Plain text
14570 #: build/C/man2/shutdown.2:104
14571 msgid ""
14572 "The constants B<SHUT_RD>, B<SHUT_WR>, B<SHUT_RDWR> have the value 0, 1, 2, "
14573 "respectively, and are defined in I<E<lt>sys/socket.hE<gt>> since "
14574 "glibc-2.1.91."
14575 msgstr ""
14576
14577 #.  FIXME
14578 #.  https://bugzilla.kernel.org/show_bug.cgi?id=47111
14579 #. type: Plain text
14580 #: build/C/man2/shutdown.2:113
14581 msgid ""
14582 "As currently implemented, checks for the validity of I<how> are done in "
14583 "domain-specific code, and not all domains perform these checks.  Most "
14584 "notably, UNIX domain sockets simply ignore invalid values; this may change "
14585 "in the future."
14586 msgstr ""
14587
14588 #. type: Plain text
14589 #: build/C/man2/shutdown.2:117
14590 msgid "B<connect>(2), B<socket>(2), B<socket>(7)"
14591 msgstr ""
14592
14593 #. type: TH
14594 #: build/C/man7/tcp.7:65
14595 #, no-wrap
14596 msgid "TCP"
14597 msgstr ""
14598
14599 #. type: TH
14600 #: build/C/man7/tcp.7:65
14601 #, no-wrap
14602 msgid "2013-06-21"
14603 msgstr ""
14604
14605 #. type: Plain text
14606 #: build/C/man7/tcp.7:68
14607 msgid "tcp - TCP protocol"
14608 msgstr ""
14609
14610 #. type: Plain text
14611 #: build/C/man7/tcp.7:74
14612 msgid "B<#include E<lt>netinet/tcp.hE<gt>>"
14613 msgstr ""
14614
14615 #. type: Plain text
14616 #: build/C/man7/tcp.7:76
14617 msgid "B<tcp_socket = socket(AF_INET, SOCK_STREAM, 0);>"
14618 msgstr ""
14619
14620 #. type: Plain text
14621 #: build/C/man7/tcp.7:89
14622 msgid ""
14623 "This is an implementation of the TCP protocol defined in RFC\\ 793, RFC\\ "
14624 "1122 and RFC\\ 2001 with the NewReno and SACK extensions.  It provides a "
14625 "reliable, stream-oriented, full-duplex connection between two sockets on top "
14626 "of B<ip>(7), for both v4 and v6 versions.  TCP guarantees that the data "
14627 "arrives in order and retransmits lost packets.  It generates and checks a "
14628 "per-packet checksum to catch transmission errors.  TCP does not preserve "
14629 "record boundaries."
14630 msgstr ""
14631
14632 #. type: Plain text
14633 #: build/C/man7/tcp.7:108
14634 msgid ""
14635 "A newly created TCP socket has no remote or local address and is not fully "
14636 "specified.  To create an outgoing TCP connection use B<connect>(2)  to "
14637 "establish a connection to another TCP socket.  To receive new incoming "
14638 "connections, first B<bind>(2)  the socket to a local address and port and "
14639 "then call B<listen>(2)  to put the socket into the listening state.  After "
14640 "that a new socket for each incoming connection can be accepted using "
14641 "B<accept>(2).  A socket which has had B<accept>(2)  or B<connect>(2)  "
14642 "successfully called on it is fully specified and may transmit data.  Data "
14643 "cannot be transmitted on listening or not yet connected sockets."
14644 msgstr ""
14645
14646 #. type: Plain text
14647 #: build/C/man7/tcp.7:128
14648 msgid ""
14649 "Linux supports RFC\\ 1323 TCP high performance extensions.  These include "
14650 "Protection Against Wrapped Sequence Numbers (PAWS), Window Scaling and "
14651 "Timestamps.  Window scaling allows the use of large (E<gt> 64K) TCP windows "
14652 "in order to support links with high latency or bandwidth.  To make use of "
14653 "them, the send and receive buffer sizes must be increased.  They can be set "
14654 "globally with the I</proc/sys/net/ipv4/tcp_wmem> and "
14655 "I</proc/sys/net/ipv4/tcp_rmem> files, or on individual sockets by using the "
14656 "B<SO_SNDBUF> and B<SO_RCVBUF> socket options with the B<setsockopt>(2)  "
14657 "call."
14658 msgstr ""
14659
14660 #. type: Plain text
14661 #: build/C/man7/tcp.7:159
14662 msgid ""
14663 "The maximum sizes for socket buffers declared via the B<SO_SNDBUF> and "
14664 "B<SO_RCVBUF> mechanisms are limited by the values in the "
14665 "I</proc/sys/net/core/rmem_max> and I</proc/sys/net/core/wmem_max> files.  "
14666 "Note that TCP actually allocates twice the size of the buffer requested in "
14667 "the B<setsockopt>(2)  call, and so a succeeding B<getsockopt>(2)  call will "
14668 "not return the same size of buffer as requested in the B<setsockopt>(2)  "
14669 "call.  TCP uses the extra space for administrative purposes and internal "
14670 "kernel structures, and the I</proc> file values reflect the larger sizes "
14671 "compared to the actual TCP windows.  On individual connections, the socket "
14672 "buffer size must be set prior to the B<listen>(2)  or B<connect>(2)  calls "
14673 "in order to have it take effect.  See B<socket>(7)  for more information."
14674 msgstr ""
14675
14676 #. type: Plain text
14677 #: build/C/man7/tcp.7:191
14678 msgid ""
14679 "TCP supports urgent data.  Urgent data is used to signal the receiver that "
14680 "some important message is part of the data stream and that it should be "
14681 "processed as soon as possible.  To send urgent data specify the B<MSG_OOB> "
14682 "option to B<send>(2).  When urgent data is received, the kernel sends a "
14683 "B<SIGURG> signal to the process or process group that has been set as the "
14684 "socket \"owner\" using the B<SIOCSPGRP> or B<FIOSETOWN> ioctls (or the "
14685 "POSIX.1-2001-specified B<fcntl>(2)  B<F_SETOWN> operation).  When the "
14686 "B<SO_OOBINLINE> socket option is enabled, urgent data is put into the normal "
14687 "data stream (a program can test for its location using the B<SIOCATMARK> "
14688 "ioctl described below), otherwise it can be received only when the "
14689 "B<MSG_OOB> flag is set for B<recv>(2)  or B<recvmsg>(2)."
14690 msgstr ""
14691
14692 #. type: Plain text
14693 #: build/C/man7/tcp.7:199
14694 msgid ""
14695 "Linux 2.4 introduced a number of changes for improved throughput and "
14696 "scaling, as well as enhanced functionality.  Some of these features include "
14697 "support for zero-copy B<sendfile>(2), Explicit Congestion Notification, new "
14698 "management of TIME_WAIT sockets, keep-alive socket options and support for "
14699 "Duplicate SACK extensions."
14700 msgstr ""
14701
14702 #. type: SS
14703 #: build/C/man7/tcp.7:199
14704 #, no-wrap
14705 msgid "Address formats"
14706 msgstr ""
14707
14708 #. type: Plain text
14709 #: build/C/man7/tcp.7:208
14710 msgid ""
14711 "TCP is built on top of IP (see B<ip>(7)).  The address formats defined by "
14712 "B<ip>(7)  apply to TCP.  TCP supports point-to-point communication only; "
14713 "broadcasting and multicasting are not supported."
14714 msgstr ""
14715
14716 #. type: Plain text
14717 #: build/C/man7/tcp.7:220
14718 msgid ""
14719 "System-wide TCP parameter settings can be accessed by files in the directory "
14720 "I</proc/sys/net/ipv4/>.  In addition, most IP I</proc> interfaces also apply "
14721 "to TCP; see B<ip>(7).  Variables described as I<Boolean> take an integer "
14722 "value, with a nonzero value (\"true\") meaning that the corresponding option "
14723 "is enabled, and a zero value (\"false\")  meaning that the option is "
14724 "disabled."
14725 msgstr ""
14726
14727 #. type: TP
14728 #: build/C/man7/tcp.7:220
14729 #, no-wrap
14730 msgid "I<tcp_abc> (Integer; default: 0; since Linux 2.6.15)"
14731 msgstr ""
14732
14733 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
14734 #. type: Plain text
14735 #: build/C/man7/tcp.7:228
14736 msgid ""
14737 "Control the Appropriate Byte Count (ABC), defined in RFC 3465.  ABC is a way "
14738 "of increasing the congestion window (I<cwnd>)  more slowly in response to "
14739 "partial acknowledgments.  Possible values are:"
14740 msgstr ""
14741
14742 #. type: IP
14743 #: build/C/man7/tcp.7:229 build/C/man7/tcp.7:398 build/C/man7/tcp.7:419 build/C/man7/tcp.7:563
14744 #, no-wrap
14745 msgid "0"
14746 msgstr ""
14747
14748 #. type: Plain text
14749 #: build/C/man7/tcp.7:233
14750 msgid "increase I<cwnd> once per acknowledgment (no ABC)"
14751 msgstr ""
14752
14753 #. type: IP
14754 #: build/C/man7/tcp.7:233 build/C/man7/tcp.7:400 build/C/man7/tcp.7:426 build/C/man7/tcp.7:565
14755 #, no-wrap
14756 msgid "1"
14757 msgstr ""
14758
14759 #. type: Plain text
14760 #: build/C/man7/tcp.7:237
14761 msgid "increase I<cwnd> once per acknowledgment of full sized segment"
14762 msgstr ""
14763
14764 #. type: IP
14765 #: build/C/man7/tcp.7:237 build/C/man7/tcp.7:402 build/C/man7/tcp.7:433 build/C/man7/tcp.7:567
14766 #, no-wrap
14767 msgid "2"
14768 msgstr ""
14769
14770 #. type: Plain text
14771 #: build/C/man7/tcp.7:242
14772 msgid ""
14773 "allow increase I<cwnd> by two if acknowledgment is of two segments to "
14774 "compensate for delayed acknowledgments."
14775 msgstr ""
14776
14777 #. type: TP
14778 #: build/C/man7/tcp.7:243
14779 #, no-wrap
14780 msgid "I<tcp_abort_on_overflow> (Boolean; default: disabled; since Linux 2.4)"
14781 msgstr ""
14782
14783 #.  Since 2.3.41
14784 #. type: Plain text
14785 #: build/C/man7/tcp.7:255
14786 msgid ""
14787 "Enable resetting connections if the listening service is too slow and unable "
14788 "to keep up and accept them.  It means that if overflow occurred due to a "
14789 "burst, the connection will recover.  Enable this option I<only> if you are "
14790 "really sure that the listening daemon cannot be tuned to accept connections "
14791 "faster.  Enabling this option can harm the clients of your server."
14792 msgstr ""
14793
14794 #. type: TP
14795 #: build/C/man7/tcp.7:255
14796 #, no-wrap
14797 msgid "I<tcp_adv_win_scale> (integer; default: 2; since Linux 2.4)"
14798 msgstr ""
14799
14800 #.  Since 2.4.0-test7
14801 #. type: Plain text
14802 #: build/C/man7/tcp.7:267
14803 msgid ""
14804 "Count buffering overhead as I<bytes/2^tcp_adv_win_scale>, if "
14805 "I<tcp_adv_win_scale> is greater than 0; or "
14806 "I<bytes-bytes/2^(-tcp_adv_win_scale)>, if I<tcp_adv_win_scale> is less than "
14807 "or equal to zero."
14808 msgstr ""
14809
14810 #. type: Plain text
14811 #: build/C/man7/tcp.7:280
14812 msgid ""
14813 "The socket receive buffer space is shared between the application and "
14814 "kernel.  TCP maintains part of the buffer as the TCP window, this is the "
14815 "size of the receive window advertised to the other end.  The rest of the "
14816 "space is used as the \"application\" buffer, used to isolate the network "
14817 "from scheduling and application latencies.  The I<tcp_adv_win_scale> default "
14818 "value of 2 implies that the space used for the application buffer is one "
14819 "fourth that of the total."
14820 msgstr ""
14821
14822 #. type: TP
14823 #: build/C/man7/tcp.7:280
14824 #, no-wrap
14825 msgid ""
14826 "I<tcp_allowed_congestion_control> (String; default: see text; since Linux "
14827 "2.4.20)"
14828 msgstr ""
14829
14830 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
14831 #.  FIXME How are the items in this delimited? Null bytes, spaces, commas?
14832 #. type: Plain text
14833 #: build/C/man7/tcp.7:292
14834 msgid ""
14835 "Show/set the congestion control algorithm choices available to unprivileged "
14836 "processes (see the description of the B<TCP_CONGESTION> socket option).  The "
14837 "list is a subset of those listed in I<tcp_available_congestion_control>.  "
14838 "The default value for this list is \"reno\" plus the default setting of "
14839 "I<tcp_congestion_control>."
14840 msgstr ""
14841
14842 #. type: TP
14843 #: build/C/man7/tcp.7:292
14844 #, no-wrap
14845 msgid "I<tcp_available_congestion_control> (String; read-only; since Linux 2.4.20)"
14846 msgstr ""
14847
14848 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
14849 #.  FIXME How are the items in this delimited? Null bytes, spaces, commas?
14850 #. type: Plain text
14851 #: build/C/man7/tcp.7:302
14852 msgid ""
14853 "Show a list of the congestion-control algorithms that are registered.  This "
14854 "list is a limiting set for the list in I<tcp_allowed_congestion_control>.  "
14855 "More congestion-control algorithms may be available as modules, but not "
14856 "loaded."
14857 msgstr ""
14858
14859 #. type: TP
14860 #: build/C/man7/tcp.7:302
14861 #, no-wrap
14862 msgid "I<tcp_app_win> (integer; default: 31; since Linux 2.4)"
14863 msgstr ""
14864
14865 #.  Since 2.4.0-test7
14866 #. type: Plain text
14867 #: build/C/man7/tcp.7:307
14868 msgid ""
14869 "This variable defines how many bytes of the TCP window are reserved for "
14870 "buffering overhead."
14871 msgstr ""
14872
14873 #
14874 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
14875 #. type: Plain text
14876 #: build/C/man7/tcp.7:313
14877 msgid ""
14878 "A maximum of (I<window/2^tcp_app_win>, mss) bytes in the window are reserved "
14879 "for the application buffer.  A value of 0 implies that no amount is "
14880 "reserved."
14881 msgstr ""
14882
14883 #. type: TP
14884 #: build/C/man7/tcp.7:313
14885 #, no-wrap
14886 msgid "I<tcp_base_mss> (Integer; default: 512; since Linux 2.6.17)"
14887 msgstr ""
14888
14889 #
14890 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
14891 #. type: Plain text
14892 #: build/C/man7/tcp.7:322
14893 msgid ""
14894 "The initial value of I<search_low> to be used by the packetization layer "
14895 "Path MTU discovery (MTU probing).  If MTU probing is enabled, this is the "
14896 "initial MSS used by the connection."
14897 msgstr ""
14898
14899 #. type: TP
14900 #: build/C/man7/tcp.7:322
14901 #, no-wrap
14902 msgid "I<tcp_bic> (Boolean; default: disabled; Linux 2.4.27/2.6.6 to 2.6.13)"
14903 msgstr ""
14904
14905 #
14906 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
14907 #. type: Plain text
14908 #: build/C/man7/tcp.7:336
14909 msgid ""
14910 "Enable BIC TCP congestion control algorithm.  BIC-TCP is a sender-side only "
14911 "change that ensures a linear RTT fairness under large windows while offering "
14912 "both scalability and bounded TCP-friendliness.  The protocol combines two "
14913 "schemes called additive increase and binary search increase.  When the "
14914 "congestion window is large, additive increase with a large increment ensures "
14915 "linear RTT fairness as well as good scalability.  Under small congestion "
14916 "windows, binary search increase provides TCP friendliness."
14917 msgstr ""
14918
14919 #. type: TP
14920 #: build/C/man7/tcp.7:336
14921 #, no-wrap
14922 msgid "I<tcp_bic_low_window> (integer; default: 14; Linux 2.4.27/2.6.6 to 2.6.13)"
14923 msgstr ""
14924
14925 #
14926 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
14927 #. type: Plain text
14928 #: build/C/man7/tcp.7:343
14929 msgid ""
14930 "Set the threshold window (in packets) where BIC TCP starts to adjust the "
14931 "congestion window.  Below this threshold BIC TCP behaves the same as the "
14932 "default TCP Reno."
14933 msgstr ""
14934
14935 #. type: TP
14936 #: build/C/man7/tcp.7:343
14937 #, no-wrap
14938 msgid ""
14939 "I<tcp_bic_fast_convergence> (Boolean; default: enabled; Linux 2.4.27/2.6.6 "
14940 "to 2.6.13)"
14941 msgstr ""
14942
14943 #. type: Plain text
14944 #: build/C/man7/tcp.7:347
14945 msgid ""
14946 "Force BIC TCP to more quickly respond to changes in congestion window.  "
14947 "Allows two flows sharing the same connection to converge more rapidly."
14948 msgstr ""
14949
14950 #. type: TP
14951 #: build/C/man7/tcp.7:347
14952 #, no-wrap
14953 msgid "I<tcp_congestion_control> (String; default: see text; since Linux 2.4.13)"
14954 msgstr ""
14955
14956 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
14957 #. type: Plain text
14958 #: build/C/man7/tcp.7:354
14959 msgid ""
14960 "Set the default congestion-control algorithm to be used for new "
14961 "connections.  The algorithm \"reno\" is always available, but additional "
14962 "choices may be available depending on kernel configuration.  The default "
14963 "value for this file is set as part of kernel configuration."
14964 msgstr ""
14965
14966 #. type: TP
14967 #: build/C/man7/tcp.7:354
14968 #, no-wrap
14969 msgid "I<tcp_dma_copybreak> (integer; default: 4096; since Linux 2.6.24)"
14970 msgstr ""
14971
14972 #. type: Plain text
14973 #: build/C/man7/tcp.7:361
14974 msgid ""
14975 "Lower limit, in bytes, of the size of socket reads that will be offloaded to "
14976 "a DMA copy engine, if one is present in the system and the kernel was "
14977 "configured with the B<CONFIG_NET_DMA> option."
14978 msgstr ""
14979
14980 #. type: TP
14981 #: build/C/man7/tcp.7:361
14982 #, no-wrap
14983 msgid "I<tcp_dsack> (Boolean; default: enabled; since Linux 2.4)"
14984 msgstr ""
14985
14986 #.  Since 2.4.0-test7
14987 #. type: Plain text
14988 #: build/C/man7/tcp.7:365
14989 msgid "Enable RFC\\ 2883 TCP Duplicate SACK support."
14990 msgstr ""
14991
14992 #. type: TP
14993 #: build/C/man7/tcp.7:365
14994 #, no-wrap
14995 msgid "I<tcp_ecn> (Boolean; default: disabled; since Linux 2.4)"
14996 msgstr ""
14997
14998 #.  Since 2.4.0-test7
14999 #. type: Plain text
15000 #: build/C/man7/tcp.7:372
15001 msgid ""
15002 "Enable RFC\\ 2884 Explicit Congestion Notification.  When enabled, "
15003 "connectivity to some destinations could be affected due to older, "
15004 "misbehaving routers along the path causing connections to be dropped."
15005 msgstr ""
15006
15007 #. type: TP
15008 #: build/C/man7/tcp.7:372
15009 #, no-wrap
15010 msgid "I<tcp_fack> (Boolean; default: enabled; since Linux 2.2)"
15011 msgstr ""
15012
15013 #.  Since 2.1.92
15014 #. type: Plain text
15015 #: build/C/man7/tcp.7:376
15016 msgid "Enable TCP Forward Acknowledgement support."
15017 msgstr ""
15018
15019 #. type: TP
15020 #: build/C/man7/tcp.7:376
15021 #, no-wrap
15022 msgid "I<tcp_fin_timeout> (integer; default: 60; since Linux 2.2)"
15023 msgstr ""
15024
15025 #.  Since 2.1.53
15026 #
15027 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
15028 #. type: Plain text
15029 #: build/C/man7/tcp.7:386
15030 msgid ""
15031 "This specifies how many seconds to wait for a final FIN packet before the "
15032 "socket is forcibly closed.  This is strictly a violation of the TCP "
15033 "specification, but required to prevent denial-of-service attacks.  In Linux "
15034 "2.2, the default value was 180."
15035 msgstr ""
15036
15037 #. type: TP
15038 #: build/C/man7/tcp.7:386
15039 #, no-wrap
15040 msgid "I<tcp_frto> (integer; default: 0; since Linux 2.4.21/2.6)"
15041 msgstr ""
15042
15043 #.  Since 2.4.21/2.5.43
15044 #. type: Plain text
15045 #: build/C/man7/tcp.7:395
15046 msgid ""
15047 "Enable F-RTO, an enhanced recovery algorithm for TCP retransmission timeouts "
15048 "(RTOs).  It is particularly beneficial in wireless environments where packet "
15049 "loss is typically due to random radio interference rather than intermediate "
15050 "router congestion.  See RFC 4138 for more details."
15051 msgstr ""
15052
15053 #. type: Plain text
15054 #: build/C/man7/tcp.7:397
15055 msgid "This file can have one of the following values:"
15056 msgstr ""
15057
15058 #. type: Plain text
15059 #: build/C/man7/tcp.7:400
15060 msgid "Disabled."
15061 msgstr ""
15062
15063 #. type: Plain text
15064 #: build/C/man7/tcp.7:402
15065 msgid "The basic version F-RTO algorithm is enabled."
15066 msgstr ""
15067
15068 #. type: Plain text
15069 #: build/C/man7/tcp.7:407
15070 msgid ""
15071 "Enable SACK-enhanced F-RTO if flow uses SACK.  The basic version can be used "
15072 "also when SACK is in use though in that case scenario(s) exists where F-RTO "
15073 "interacts badly with the packet counting of the SACK-enabled TCP flow."
15074 msgstr ""
15075
15076 #. type: Plain text
15077 #: build/C/man7/tcp.7:411
15078 msgid ""
15079 "Before Linux 2.6.22, this parameter was a Boolean value, supporting just "
15080 "values 0 and 1 above."
15081 msgstr ""
15082
15083 #. type: TP
15084 #: build/C/man7/tcp.7:411
15085 #, no-wrap
15086 msgid "I<tcp_frto_response> (integer; default: 0; since Linux 2.6.22)"
15087 msgstr ""
15088
15089 #. type: Plain text
15090 #: build/C/man7/tcp.7:418
15091 msgid ""
15092 "When F-RTO has detected that a TCP retransmission timeout was spurious (i.e, "
15093 "the timeout would have been avoided had TCP set a longer retransmission "
15094 "timeout), TCP has several options concerning what to do next.  Possible "
15095 "values are:"
15096 msgstr ""
15097
15098 #. type: Plain text
15099 #: build/C/man7/tcp.7:426
15100 msgid ""
15101 "Rate halving based; a smooth and conservative response, results in halved "
15102 "congestion window (I<cwnd>)  and slow-start threshold (I<ssthresh>)  after "
15103 "one RTT."
15104 msgstr ""
15105
15106 #. type: Plain text
15107 #: build/C/man7/tcp.7:433
15108 msgid ""
15109 "Very conservative response; not recommended because even though being valid, "
15110 "it interacts poorly with the rest of Linux TCP; halves I<cwnd> and "
15111 "I<ssthresh> immediately."
15112 msgstr ""
15113
15114 #. type: Plain text
15115 #: build/C/man7/tcp.7:442
15116 msgid ""
15117 "Aggressive response; undoes congestion-control measures that are now known "
15118 "to be unnecessary (ignoring the possibility of a lost retransmission that "
15119 "would require TCP to be more cautious); I<cwnd> and I<ssthresh> are restored "
15120 "to the values prior to timeout."
15121 msgstr ""
15122
15123 #. type: TP
15124 #: build/C/man7/tcp.7:443
15125 #, no-wrap
15126 msgid "I<tcp_keepalive_intvl> (integer; default: 75; since Linux 2.4)"
15127 msgstr ""
15128
15129 #.  Since 2.3.18
15130 #. type: Plain text
15131 #: build/C/man7/tcp.7:447
15132 msgid "The number of seconds between TCP keep-alive probes."
15133 msgstr ""
15134
15135 #. type: TP
15136 #: build/C/man7/tcp.7:447
15137 #, no-wrap
15138 msgid "I<tcp_keepalive_probes> (integer; default: 9; since Linux 2.2)"
15139 msgstr ""
15140
15141 #.  Since 2.1.43
15142 #. type: Plain text
15143 #: build/C/man7/tcp.7:453
15144 msgid ""
15145 "The maximum number of TCP keep-alive probes to send before giving up and "
15146 "killing the connection if no response is obtained from the other end."
15147 msgstr ""
15148
15149 #. type: TP
15150 #: build/C/man7/tcp.7:453
15151 #, no-wrap
15152 msgid "I<tcp_keepalive_time> (integer; default: 7200; since Linux 2.2)"
15153 msgstr ""
15154
15155 #.  Since 2.1.43
15156 #. type: Plain text
15157 #: build/C/man7/tcp.7:465
15158 msgid ""
15159 "The number of seconds a connection needs to be idle before TCP begins "
15160 "sending out keep-alive probes.  Keep-alives are sent only when the "
15161 "B<SO_KEEPALIVE> socket option is enabled.  The default value is 7200 seconds "
15162 "(2 hours).  An idle connection is terminated after approximately an "
15163 "additional 11 minutes (9 probes an interval of 75 seconds apart) when "
15164 "keep-alive is enabled."
15165 msgstr ""
15166
15167 #
15168 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
15169 #. type: Plain text
15170 #: build/C/man7/tcp.7:470
15171 msgid ""
15172 "Note that underlying connection tracking mechanisms and application timeouts "
15173 "may be much shorter."
15174 msgstr ""
15175
15176 #. type: TP
15177 #: build/C/man7/tcp.7:470
15178 #, no-wrap
15179 msgid "I<tcp_low_latency> (Boolean; default: disabled; since Linux 2.4.21/2.6)"
15180 msgstr ""
15181
15182 #.  Since 2.4.21/2.5.60
15183 #. type: Plain text
15184 #: build/C/man7/tcp.7:478
15185 msgid ""
15186 "If enabled, the TCP stack makes decisions that prefer lower latency as "
15187 "opposed to higher throughput.  It this option is disabled, then higher "
15188 "throughput is preferred.  An example of an application where this default "
15189 "should be changed would be a Beowulf compute cluster."
15190 msgstr ""
15191
15192 #. type: TP
15193 #: build/C/man7/tcp.7:478
15194 #, no-wrap
15195 msgid "I<tcp_max_orphans> (integer; default: see below; since Linux 2.4)"
15196 msgstr ""
15197
15198 #.  Since 2.3.41
15199 #. type: Plain text
15200 #: build/C/man7/tcp.7:492
15201 msgid ""
15202 "The maximum number of orphaned (not attached to any user file handle) TCP "
15203 "sockets allowed in the system.  When this number is exceeded, the orphaned "
15204 "connection is reset and a warning is printed.  This limit exists only to "
15205 "prevent simple denial-of-service attacks.  Lowering this limit is not "
15206 "recommended.  Network conditions might require you to increase the number of "
15207 "orphans allowed, but note that each orphan can eat up to ~64K of unswappable "
15208 "memory.  The default initial value is set equal to the kernel parameter "
15209 "NR_FILE.  This initial default is adjusted depending on the memory in the "
15210 "system."
15211 msgstr ""
15212
15213 #. type: TP
15214 #: build/C/man7/tcp.7:492
15215 #, no-wrap
15216 msgid "I<tcp_max_syn_backlog> (integer; default: see below; since Linux 2.2)"
15217 msgstr ""
15218
15219 #.  Since 2.1.53
15220 #. type: Plain text
15221 #: build/C/man7/tcp.7:509
15222 msgid ""
15223 "The maximum number of queued connection requests which have still not "
15224 "received an acknowledgement from the connecting client.  If this number is "
15225 "exceeded, the kernel will begin dropping requests.  The default value of 256 "
15226 "is increased to 1024 when the memory present in the system is adequate or "
15227 "greater (E<gt>= 128Mb), and reduced to 128 for those systems with very low "
15228 "memory (E<lt>= 32Mb).  It is recommended that if this needs to be increased "
15229 "above 1024, TCP_SYNQ_HSIZE in I<include/net/tcp.h> be modified to keep "
15230 "TCP_SYNQ_HSIZE*16E<lt>=tcp_max_syn_backlog, and the kernel be recompiled."
15231 msgstr ""
15232
15233 #. type: TP
15234 #: build/C/man7/tcp.7:509
15235 #, no-wrap
15236 msgid "I<tcp_max_tw_buckets> (integer; default: see below; since Linux 2.4)"
15237 msgstr ""
15238
15239 #.  Since 2.3.41
15240 #. type: Plain text
15241 #: build/C/man7/tcp.7:519
15242 msgid ""
15243 "The maximum number of sockets in TIME_WAIT state allowed in the system.  "
15244 "This limit exists only to prevent simple denial-of-service attacks.  The "
15245 "default value of NR_FILE*2 is adjusted depending on the memory in the "
15246 "system.  If this number is exceeded, the socket is closed and a warning is "
15247 "printed."
15248 msgstr ""
15249
15250 #. type: TP
15251 #: build/C/man7/tcp.7:519
15252 #, no-wrap
15253 msgid "I<tcp_moderate_rcvbuf> (Boolean; default: enabled; since Linux 2.4.17/2.6.7)"
15254 msgstr ""
15255
15256 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
15257 #. type: Plain text
15258 #: build/C/man7/tcp.7:526
15259 msgid ""
15260 "If enabled, TCP performs receive buffer auto-tuning, attempting to "
15261 "automatically size the buffer (no greater than I<tcp_rmem[2]>)  to match the "
15262 "size required by the path for full throughput."
15263 msgstr ""
15264
15265 #. type: TP
15266 #: build/C/man7/tcp.7:526
15267 #, no-wrap
15268 msgid "I<tcp_mem> (since Linux 2.4)"
15269 msgstr ""
15270
15271 #.  Since 2.4.0-test7
15272 #. type: Plain text
15273 #: build/C/man7/tcp.7:538
15274 msgid ""
15275 "This is a vector of 3 integers: [low, pressure, high].  These bounds, "
15276 "measured in units of the system page size, are used by TCP to track its "
15277 "memory usage.  The defaults are calculated at boot time from the amount of "
15278 "available memory.  (TCP can only use I<low memory> for this, which is "
15279 "limited to around 900 megabytes on 32-bit systems.  64-bit systems do not "
15280 "suffer this limitation.)"
15281 msgstr ""
15282
15283 #. type: TP
15284 #: build/C/man7/tcp.7:539
15285 #, no-wrap
15286 msgid "I<low>"
15287 msgstr ""
15288
15289 #. type: Plain text
15290 #: build/C/man7/tcp.7:543
15291 msgid ""
15292 "TCP doesn't regulate its memory allocation when the number of pages it has "
15293 "allocated globally is below this number."
15294 msgstr ""
15295
15296 #. type: TP
15297 #: build/C/man7/tcp.7:543 build/C/man7/udp.7:151
15298 #, no-wrap
15299 msgid "I<pressure>"
15300 msgstr ""
15301
15302 #. type: Plain text
15303 #: build/C/man7/tcp.7:552
15304 msgid ""
15305 "When the amount of memory allocated by TCP exceeds this number of pages, TCP "
15306 "moderates its memory consumption.  This memory pressure state is exited once "
15307 "the number of pages allocated falls below the I<low> mark."
15308 msgstr ""
15309
15310 #. type: TP
15311 #: build/C/man7/tcp.7:552
15312 #, no-wrap
15313 msgid "I<high>"
15314 msgstr ""
15315
15316 #. type: Plain text
15317 #: build/C/man7/tcp.7:556
15318 msgid ""
15319 "The maximum number of pages, globally, that TCP will allocate.  This value "
15320 "overrides any other limits imposed by the kernel."
15321 msgstr ""
15322
15323 #. type: TP
15324 #: build/C/man7/tcp.7:557
15325 #, no-wrap
15326 msgid "I<tcp_mtu_probing> (integer; default: 0; since Linux 2.6.17)"
15327 msgstr ""
15328
15329 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
15330 #. type: Plain text
15331 #: build/C/man7/tcp.7:562
15332 msgid ""
15333 "This parameter controls TCP Packetization-Layer Path MTU Discovery.  The "
15334 "following values may be assigned to the file:"
15335 msgstr ""
15336
15337 #. type: Plain text
15338 #: build/C/man7/tcp.7:565
15339 msgid "Disabled"
15340 msgstr ""
15341
15342 #. type: Plain text
15343 #: build/C/man7/tcp.7:567
15344 msgid "Disabled by default, enabled when an ICMP black hole detected"
15345 msgstr ""
15346
15347 #. type: Plain text
15348 #: build/C/man7/tcp.7:570
15349 msgid "Always enabled, use initial MSS of I<tcp_base_mss>."
15350 msgstr ""
15351
15352 #. type: TP
15353 #: build/C/man7/tcp.7:571
15354 #, no-wrap
15355 msgid "I<tcp_no_metrics_save> (Boolean; default: disabled; since Linux 2.6.6)"
15356 msgstr ""
15357
15358 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
15359 #. type: Plain text
15360 #: build/C/man7/tcp.7:582
15361 msgid ""
15362 "By default, TCP saves various connection metrics in the route cache when the "
15363 "connection closes, so that connections established in the near future can "
15364 "use these to set initial conditions.  Usually, this increases overall "
15365 "performance, but it may sometimes cause performance degradation.  If "
15366 "I<tcp_no_metrics_save> is enabled, TCP will not cache metrics on closing "
15367 "connections."
15368 msgstr ""
15369
15370 #. type: TP
15371 #: build/C/man7/tcp.7:582
15372 #, no-wrap
15373 msgid "I<tcp_orphan_retries> (integer; default: 8; since Linux 2.4)"
15374 msgstr ""
15375
15376 #.  Since 2.3.41
15377 #. type: Plain text
15378 #: build/C/man7/tcp.7:587
15379 msgid ""
15380 "The maximum number of attempts made to probe the other end of a connection "
15381 "which has been closed by our end."
15382 msgstr ""
15383
15384 #. type: TP
15385 #: build/C/man7/tcp.7:587
15386 #, no-wrap
15387 msgid "I<tcp_reordering> (integer; default: 3; since Linux 2.4)"
15388 msgstr ""
15389
15390 #.  Since 2.4.0-test7
15391 #. type: Plain text
15392 #: build/C/man7/tcp.7:596
15393 msgid ""
15394 "The maximum a packet can be reordered in a TCP packet stream without TCP "
15395 "assuming packet loss and going into slow start.  It is not advisable to "
15396 "change this number.  This is a packet reordering detection metric designed "
15397 "to minimize unnecessary back off and retransmits provoked by reordering of "
15398 "packets on a connection."
15399 msgstr ""
15400
15401 #. type: TP
15402 #: build/C/man7/tcp.7:596
15403 #, no-wrap
15404 msgid "I<tcp_retrans_collapse> (Boolean; default: enabled; since Linux 2.2)"
15405 msgstr ""
15406
15407 #.  Since 2.1.96
15408 #. type: Plain text
15409 #: build/C/man7/tcp.7:600
15410 msgid "Try to send full-sized packets during retransmit."
15411 msgstr ""
15412
15413 #. type: TP
15414 #: build/C/man7/tcp.7:600
15415 #, no-wrap
15416 msgid "I<tcp_retries1> (integer; default: 3; since Linux 2.2)"
15417 msgstr ""
15418
15419 #.  Since 2.1.43
15420 #. type: Plain text
15421 #: build/C/man7/tcp.7:610
15422 msgid ""
15423 "The number of times TCP will attempt to retransmit a packet on an "
15424 "established connection normally, without the extra effort of getting the "
15425 "network layers involved.  Once we exceed this number of retransmits, we "
15426 "first have the network layer update the route if possible before each new "
15427 "retransmit.  The default is the RFC specified minimum of 3."
15428 msgstr ""
15429
15430 #. type: TP
15431 #: build/C/man7/tcp.7:610
15432 #, no-wrap
15433 msgid "I<tcp_retries2> (integer; default: 15; since Linux 2.2)"
15434 msgstr ""
15435
15436 #.  Since 2.1.43
15437 #. type: Plain text
15438 #: build/C/man7/tcp.7:620
15439 msgid ""
15440 "The maximum number of times a TCP packet is retransmitted in established "
15441 "state before giving up.  The default value is 15, which corresponds to a "
15442 "duration of approximately between 13 to 30 minutes, depending on the "
15443 "retransmission timeout.  The RFC\\ 1122 specified minimum limit of 100 "
15444 "seconds is typically deemed too short."
15445 msgstr ""
15446
15447 #. type: TP
15448 #: build/C/man7/tcp.7:620
15449 #, no-wrap
15450 msgid "I<tcp_rfc1337> (Boolean; default: disabled; since Linux 2.2)"
15451 msgstr ""
15452
15453 #.  Since 2.1.90
15454 #. type: Plain text
15455 #: build/C/man7/tcp.7:628
15456 msgid ""
15457 "Enable TCP behavior conformant with RFC\\ 1337.  When disabled, if a RST is "
15458 "received in TIME_WAIT state, we close the socket immediately without waiting "
15459 "for the end of the TIME_WAIT period."
15460 msgstr ""
15461
15462 #. type: TP
15463 #: build/C/man7/tcp.7:628
15464 #, no-wrap
15465 msgid "I<tcp_rmem> (since Linux 2.4)"
15466 msgstr ""
15467
15468 #.  Since 2.4.0-test7
15469 #. type: Plain text
15470 #: build/C/man7/tcp.7:636
15471 msgid ""
15472 "This is a vector of 3 integers: [min, default, max].  These parameters are "
15473 "used by TCP to regulate receive buffer sizes.  TCP dynamically adjusts the "
15474 "size of the receive buffer from the defaults listed below, in the range of "
15475 "these values, depending on memory available in the system."
15476 msgstr ""
15477
15478 #. type: TP
15479 #: build/C/man7/tcp.7:637 build/C/man7/tcp.7:813 build/C/man7/udp.7:145
15480 #, no-wrap
15481 msgid "I<min>"
15482 msgstr ""
15483
15484 #. type: Plain text
15485 #: build/C/man7/tcp.7:652
15486 msgid ""
15487 "minimum size of the receive buffer used by each TCP socket.  The default "
15488 "value is the system page size.  (On Linux 2.4, the default value is 4K, "
15489 "lowered to B<PAGE_SIZE> bytes in low-memory systems.)  This value is used to "
15490 "ensure that in memory pressure mode, allocations below this size will still "
15491 "succeed.  This is not used to bound the size of the receive buffer declared "
15492 "using B<SO_RCVBUF> on a socket."
15493 msgstr ""
15494
15495 #. type: TP
15496 #: build/C/man7/tcp.7:652 build/C/man7/tcp.7:823
15497 #, no-wrap
15498 msgid "I<default>"
15499 msgstr ""
15500
15501 #. type: Plain text
15502 #: build/C/man7/tcp.7:666
15503 msgid ""
15504 "the default size of the receive buffer for a TCP socket.  This value "
15505 "overwrites the initial default buffer size from the generic global "
15506 "I<net.core.rmem_default> defined for all protocols.  The default value is "
15507 "87380 bytes.  (On Linux 2.4, this will be lowered to 43689 in low-memory "
15508 "systems.)  If larger receive buffer sizes are desired, this value should be "
15509 "increased (to affect all sockets).  To employ large TCP windows, the "
15510 "I<net.ipv4.tcp_window_scaling> must be enabled (default)."
15511 msgstr ""
15512
15513 #. type: TP
15514 #: build/C/man7/tcp.7:666 build/C/man7/tcp.7:837 build/C/man7/udp.7:157
15515 #, no-wrap
15516 msgid "I<max>"
15517 msgstr ""
15518
15519 #. type: Plain text
15520 #: build/C/man7/tcp.7:675
15521 msgid ""
15522 "the maximum size of the receive buffer used by each TCP socket.  This value "
15523 "does not override the global I<net.core.rmem_max>.  This is not used to "
15524 "limit the size of the receive buffer declared using B<SO_RCVBUF> on a "
15525 "socket.  The default value is calculated using the formula"
15526 msgstr ""
15527
15528 #. type: Plain text
15529 #: build/C/man7/tcp.7:677
15530 #, no-wrap
15531 msgid "    max(87380, min(4MB, I<tcp_mem>[1]*PAGE_SIZE/128))\n"
15532 msgstr ""
15533
15534 #. type: Plain text
15535 #: build/C/man7/tcp.7:680
15536 msgid ""
15537 "(On Linux 2.4, the default is 87380*2 bytes, lowered to 87380 in low-memory "
15538 "systems)."
15539 msgstr ""
15540
15541 #. type: TP
15542 #: build/C/man7/tcp.7:681
15543 #, no-wrap
15544 msgid "I<tcp_sack> (Boolean; default: enabled; since Linux 2.2)"
15545 msgstr ""
15546
15547 #.  Since 2.1.36
15548 #. type: Plain text
15549 #: build/C/man7/tcp.7:685
15550 msgid "Enable RFC\\ 2018 TCP Selective Acknowledgements."
15551 msgstr ""
15552
15553 #. type: TP
15554 #: build/C/man7/tcp.7:685
15555 #, no-wrap
15556 msgid "I<tcp_slow_start_after_idle> (Boolean; default: enabled; since Linux 2.6.18)"
15557 msgstr ""
15558
15559 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
15560 #. type: Plain text
15561 #: build/C/man7/tcp.7:693
15562 msgid ""
15563 "If enabled, provide RFC 2861 behavior and time out the congestion window "
15564 "after an idle period.  An idle period is defined as the current RTO "
15565 "(retransmission timeout).  If disabled, the congestion window will not be "
15566 "timed out after an idle period."
15567 msgstr ""
15568
15569 #. type: TP
15570 #: build/C/man7/tcp.7:693
15571 #, no-wrap
15572 msgid "I<tcp_stdurg> (Boolean; default: disabled; since Linux 2.2)"
15573 msgstr ""
15574
15575 #.  Since 2.1.44
15576 #.  RFC 793 was ambiguous in its specification of the meaning of the
15577 #.  urgent pointer.  RFC 1122 (and RFC 961) fixed on a particular
15578 #.  resolution of this ambiguity (unfortunately the "wrong" one).
15579 #. type: Plain text
15580 #: build/C/man7/tcp.7:707
15581 msgid ""
15582 "If this option is enabled, then use the RFC\\ 1122 interpretation of the TCP "
15583 "urgent-pointer field.  According to this interpretation, the urgent pointer "
15584 "points to the last byte of urgent data.  If this option is disabled, then "
15585 "use the BSD-compatible interpretation of the urgent pointer: the urgent "
15586 "pointer points to the first byte after the urgent data.  Enabling this "
15587 "option may lead to interoperability problems."
15588 msgstr ""
15589
15590 #. type: TP
15591 #: build/C/man7/tcp.7:707
15592 #, no-wrap
15593 msgid "I<tcp_syn_retries> (integer; default: 5; since Linux 2.2)"
15594 msgstr ""
15595
15596 #.  Since 2.1.38
15597 #. type: Plain text
15598 #: build/C/man7/tcp.7:714
15599 msgid ""
15600 "The maximum number of times initial SYNs for an active TCP connection "
15601 "attempt will be retransmitted.  This value should not be higher than 255.  "
15602 "The default value is 5, which corresponds to approximately 180 seconds."
15603 msgstr ""
15604
15605 #. type: TP
15606 #: build/C/man7/tcp.7:714
15607 #, no-wrap
15608 msgid "I<tcp_synack_retries> (integer; default: 5; since Linux 2.2)"
15609 msgstr ""
15610
15611 #.  Since 2.1.38
15612 #. type: Plain text
15613 #: build/C/man7/tcp.7:720
15614 msgid ""
15615 "The maximum number of times a SYN/ACK segment for a passive TCP connection "
15616 "will be retransmitted.  This number should not be higher than 255."
15617 msgstr ""
15618
15619 #. type: TP
15620 #: build/C/man7/tcp.7:720
15621 #, no-wrap
15622 msgid "I<tcp_syncookies> (Boolean; since Linux 2.2)"
15623 msgstr ""
15624
15625 #.  Since 2.1.43
15626 #. type: Plain text
15627 #: build/C/man7/tcp.7:740
15628 msgid ""
15629 "Enable TCP syncookies.  The kernel must be compiled with "
15630 "B<CONFIG_SYN_COOKIES>.  Send out syncookies when the syn backlog queue of a "
15631 "socket overflows.  The syncookies feature attempts to protect a socket from "
15632 "a SYN flood attack.  This should be used as a last resort, if at all.  This "
15633 "is a violation of the TCP protocol, and conflicts with other areas of TCP "
15634 "such as TCP extensions.  It can cause problems for clients and relays.  It "
15635 "is not recommended as a tuning mechanism for heavily loaded servers to help "
15636 "with overloaded or misconfigured conditions.  For recommended alternatives "
15637 "see I<tcp_max_syn_backlog>, I<tcp_synack_retries>, and "
15638 "I<tcp_abort_on_overflow>."
15639 msgstr ""
15640
15641 #. type: TP
15642 #: build/C/man7/tcp.7:740
15643 #, no-wrap
15644 msgid "I<tcp_timestamps> (Boolean; default: enabled; since Linux 2.2)"
15645 msgstr ""
15646
15647 #.  Since 2.1.36
15648 #. type: Plain text
15649 #: build/C/man7/tcp.7:744
15650 msgid "Enable RFC\\ 1323 TCP timestamps."
15651 msgstr ""
15652
15653 #. type: TP
15654 #: build/C/man7/tcp.7:744
15655 #, no-wrap
15656 msgid "I<tcp_tso_win_divisor> (integer; default: 3; since Linux 2.6.9)"
15657 msgstr ""
15658
15659 #. type: Plain text
15660 #: build/C/man7/tcp.7:750
15661 msgid ""
15662 "This parameter controls what percentage of the congestion window can be "
15663 "consumed by a single TCP Segmentation Offload (TSO) frame.  The setting of "
15664 "this parameter is a tradeoff between burstiness and building larger TSO "
15665 "frames."
15666 msgstr ""
15667
15668 #. type: TP
15669 #: build/C/man7/tcp.7:750
15670 #, no-wrap
15671 msgid "I<tcp_tw_recycle> (Boolean; default: disabled; since Linux 2.4)"
15672 msgstr ""
15673
15674 #.  Since 2.3.15
15675 #
15676 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
15677 #. type: Plain text
15678 #: build/C/man7/tcp.7:759
15679 msgid ""
15680 "Enable fast recycling of TIME_WAIT sockets.  Enabling this option is not "
15681 "recommended since this causes problems when working with NAT (Network "
15682 "Address Translation)."
15683 msgstr ""
15684
15685 #. type: TP
15686 #: build/C/man7/tcp.7:759
15687 #, no-wrap
15688 msgid "I<tcp_tw_reuse> (Boolean; default: disabled; since Linux 2.4.19/2.6)"
15689 msgstr ""
15690
15691 #.  Since 2.4.19/2.5.43
15692 #
15693 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
15694 #. type: Plain text
15695 #: build/C/man7/tcp.7:767
15696 msgid ""
15697 "Allow to reuse TIME_WAIT sockets for new connections when it is safe from "
15698 "protocol viewpoint.  It should not be changed without advice/request of "
15699 "technical experts."
15700 msgstr ""
15701
15702 #. type: TP
15703 #: build/C/man7/tcp.7:767
15704 #, no-wrap
15705 msgid "I<tcp_vegas_cong_avoid> (Boolean; default: disabled; Linux 2.2 to 2.6.13)"
15706 msgstr ""
15707
15708 #.  Since 2.1.8; removed in 2.6.13
15709 #
15710 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
15711 #. type: Plain text
15712 #: build/C/man7/tcp.7:778
15713 msgid ""
15714 "Enable TCP Vegas congestion avoidance algorithm.  TCP Vegas is a sender-side "
15715 "only change to TCP that anticipates the onset of congestion by estimating "
15716 "the bandwidth.  TCP Vegas adjusts the sending rate by modifying the "
15717 "congestion window.  TCP Vegas should provide less packet loss, but it is not "
15718 "as aggressive as TCP Reno."
15719 msgstr ""
15720
15721 #. type: TP
15722 #: build/C/man7/tcp.7:778
15723 #, no-wrap
15724 msgid "I<tcp_westwood> (Boolean; default: disabled; Linux 2.4.26/2.6.3 to 2.6.13)"
15725 msgstr ""
15726
15727 #. type: Plain text
15728 #: build/C/man7/tcp.7:790
15729 msgid ""
15730 "Enable TCP Westwood+ congestion control algorithm.  TCP Westwood+ is a "
15731 "sender-side only modification of the TCP Reno protocol stack that optimizes "
15732 "the performance of TCP congestion control.  It is based on end-to-end "
15733 "bandwidth estimation to set congestion window and slow start threshold after "
15734 "a congestion episode.  Using this estimation, TCP Westwood+ adaptively sets "
15735 "a slow start threshold and a congestion window which takes into account the "
15736 "bandwidth used at the time congestion is experienced.  TCP Westwood+ "
15737 "significantly increases fairness with respect to TCP Reno in wired networks "
15738 "and throughput over wireless links."
15739 msgstr ""
15740
15741 #. type: TP
15742 #: build/C/man7/tcp.7:790
15743 #, no-wrap
15744 msgid "I<tcp_window_scaling> (Boolean; default: enabled; since Linux 2.2)"
15745 msgstr ""
15746
15747 #.  Since 2.1.36
15748 #. type: Plain text
15749 #: build/C/man7/tcp.7:804
15750 msgid ""
15751 "Enable RFC\\ 1323 TCP window scaling.  This feature allows the use of a "
15752 "large window (E<gt> 64K) on a TCP connection, should the other end support "
15753 "it.  Normally, the 16 bit window length field in the TCP header limits the "
15754 "window size to less than 64K bytes.  If larger windows are desired, "
15755 "applications can increase the size of their socket buffers and the window "
15756 "scaling option will be employed.  If I<tcp_window_scaling> is disabled, TCP "
15757 "will not negotiate the use of window scaling with the other end during "
15758 "connection setup."
15759 msgstr ""
15760
15761 #. type: TP
15762 #: build/C/man7/tcp.7:804
15763 #, no-wrap
15764 msgid "I<tcp_wmem> (since Linux 2.4)"
15765 msgstr ""
15766
15767 #.  Since 2.4.0-test7
15768 #. type: Plain text
15769 #: build/C/man7/tcp.7:812
15770 msgid ""
15771 "This is a vector of 3 integers: [min, default, max].  These parameters are "
15772 "used by TCP to regulate send buffer sizes.  TCP dynamically adjusts the size "
15773 "of the send buffer from the default values listed below, in the range of "
15774 "these values, depending on memory available."
15775 msgstr ""
15776
15777 #. type: Plain text
15778 #: build/C/man7/tcp.7:823
15779 msgid ""
15780 "Minimum size of the send buffer used by each TCP socket.  The default value "
15781 "is the system page size.  (On Linux 2.4, the default value is 4K bytes.)  "
15782 "This value is used to ensure that in memory pressure mode, allocations below "
15783 "this size will still succeed.  This is not used to bound the size of the "
15784 "send buffer declared using B<SO_SNDBUF> on a socket."
15785 msgstr ""
15786
15787 #.  True in Linux 2.4 and 2.6
15788 #. type: Plain text
15789 #: build/C/man7/tcp.7:837
15790 msgid ""
15791 "The default size of the send buffer for a TCP socket.  This value overwrites "
15792 "the initial default buffer size from the generic global "
15793 "I</proc/sys/net/core/wmem_default> defined for all protocols.  The default "
15794 "value is 16K bytes.  If larger send buffer sizes are desired, this value "
15795 "should be increased (to affect all sockets).  To employ large TCP windows, "
15796 "the I</proc/sys/net/ipv4/tcp_window_scaling> must be set to a nonzero value "
15797 "(default)."
15798 msgstr ""
15799
15800 #. type: Plain text
15801 #: build/C/man7/tcp.7:846
15802 msgid ""
15803 "The maximum size of the send buffer used by each TCP socket.  This value "
15804 "does not override the value in I</proc/sys/net/core/wmem_max>.  This is not "
15805 "used to limit the size of the send buffer declared using B<SO_SNDBUF> on a "
15806 "socket.  The default value is calculated using the formula"
15807 msgstr ""
15808
15809 #. type: Plain text
15810 #: build/C/man7/tcp.7:848
15811 #, no-wrap
15812 msgid "    max(65536, min(4MB, I<tcp_mem>[1]*PAGE_SIZE/128))\n"
15813 msgstr ""
15814
15815 #. type: Plain text
15816 #: build/C/man7/tcp.7:851
15817 msgid ""
15818 "(On Linux 2.4, the default value is 128K bytes, lowered 64K depending on "
15819 "low-memory systems.)"
15820 msgstr ""
15821
15822 #. type: TP
15823 #: build/C/man7/tcp.7:852
15824 #, no-wrap
15825 msgid ""
15826 "I<tcp_workaround_signed_windows> (Boolean; default: disabled; since Linux "
15827 "2.6.26)"
15828 msgstr ""
15829
15830 #. type: Plain text
15831 #: build/C/man7/tcp.7:858
15832 msgid ""
15833 "If enabled, assume that no receipt of a window-scaling option means that the "
15834 "remote TCP is broken and treats the window as a signed quantity.  If "
15835 "disabled, assume that the remote TCP is not broken even if we do not receive "
15836 "a window scaling option from it."
15837 msgstr ""
15838
15839 #.  or SOL_TCP on Linux
15840 #. type: Plain text
15841 #: build/C/man7/tcp.7:876
15842 msgid ""
15843 "To set or get a TCP socket option, call B<getsockopt>(2)  to read or "
15844 "B<setsockopt>(2)  to write the option with the option level argument set to "
15845 "B<IPPROTO_TCP>.  Unless otherwise noted, I<optval> is a pointer to an "
15846 "I<int>.  In addition, most B<IPPROTO_IP> socket options are valid on TCP "
15847 "sockets.  For more information see B<ip>(7)."
15848 msgstr ""
15849
15850 #. type: TP
15851 #: build/C/man7/tcp.7:876
15852 #, no-wrap
15853 msgid "B<TCP_CORK> (since Linux 2.2)"
15854 msgstr ""
15855
15856 #.  precisely: since 2.1.127
15857 #. type: Plain text
15858 #: build/C/man7/tcp.7:892
15859 msgid ""
15860 "If set, don't send out partial frames.  All queued partial frames are sent "
15861 "when the option is cleared again.  This is useful for prepending headers "
15862 "before calling B<sendfile>(2), or for throughput optimization.  As currently "
15863 "implemented, there is a 200 millisecond ceiling on the time for which output "
15864 "is corked by B<TCP_CORK>.  If this ceiling is reached, then queued data is "
15865 "automatically transmitted.  This option can be combined with B<TCP_NODELAY> "
15866 "only since Linux 2.5.71.  This option should not be used in code intended to "
15867 "be portable."
15868 msgstr ""
15869
15870 #. type: TP
15871 #: build/C/man7/tcp.7:892
15872 #, no-wrap
15873 msgid "B<TCP_DEFER_ACCEPT> (since Linux 2.4)"
15874 msgstr ""
15875
15876 #.  Precisely: since 2.3.38
15877 #. type: Plain text
15878 #: build/C/man7/tcp.7:900
15879 msgid ""
15880 "Allow a listener to be awakened only when data arrives on the socket.  Takes "
15881 "an integer value (seconds), this can bound the maximum number of attempts "
15882 "TCP will make to complete the connection.  This option should not be used in "
15883 "code intended to be portable."
15884 msgstr ""
15885
15886 #. type: TP
15887 #: build/C/man7/tcp.7:900
15888 #, no-wrap
15889 msgid "B<TCP_INFO> (since Linux 2.4)"
15890 msgstr ""
15891
15892 #. type: Plain text
15893 #: build/C/man7/tcp.7:906
15894 msgid ""
15895 "Used to collect information about this socket.  The kernel returns a "
15896 "I<struct tcp_info> as defined in the file I</usr/include/linux/tcp.h>.  This "
15897 "option should not be used in code intended to be portable."
15898 msgstr ""
15899
15900 #. type: TP
15901 #: build/C/man7/tcp.7:906
15902 #, no-wrap
15903 msgid "B<TCP_KEEPCNT> (since Linux 2.4)"
15904 msgstr ""
15905
15906 #.  Precisely: since 2.3.18
15907 #. type: Plain text
15908 #: build/C/man7/tcp.7:913
15909 msgid ""
15910 "The maximum number of keepalive probes TCP should send before dropping the "
15911 "connection.  This option should not be used in code intended to be portable."
15912 msgstr ""
15913
15914 #. type: TP
15915 #: build/C/man7/tcp.7:913
15916 #, no-wrap
15917 msgid "B<TCP_KEEPIDLE> (since Linux 2.4)"
15918 msgstr ""
15919
15920 #.  Precisely: since 2.3.18
15921 #. type: Plain text
15922 #: build/C/man7/tcp.7:922
15923 msgid ""
15924 "The time (in seconds) the connection needs to remain idle before TCP starts "
15925 "sending keepalive probes, if the socket option B<SO_KEEPALIVE> has been set "
15926 "on this socket.  This option should not be used in code intended to be "
15927 "portable."
15928 msgstr ""
15929
15930 #. type: TP
15931 #: build/C/man7/tcp.7:922
15932 #, no-wrap
15933 msgid "B<TCP_KEEPINTVL> (since Linux 2.4)"
15934 msgstr ""
15935
15936 #.  Precisely: since 2.3.18
15937 #. type: Plain text
15938 #: build/C/man7/tcp.7:927
15939 msgid ""
15940 "The time (in seconds) between individual keepalive probes.  This option "
15941 "should not be used in code intended to be portable."
15942 msgstr ""
15943
15944 #. type: TP
15945 #: build/C/man7/tcp.7:927
15946 #, no-wrap
15947 msgid "B<TCP_LINGER2> (since Linux 2.4)"
15948 msgstr ""
15949
15950 #.  Precisely: since 2.3.41
15951 #. type: Plain text
15952 #: build/C/man7/tcp.7:939
15953 msgid ""
15954 "The lifetime of orphaned FIN_WAIT2 state sockets.  This option can be used "
15955 "to override the system-wide setting in the file "
15956 "I</proc/sys/net/ipv4/tcp_fin_timeout> for this socket.  This is not to be "
15957 "confused with the B<socket>(7)  level option B<SO_LINGER>.  This option "
15958 "should not be used in code intended to be portable."
15959 msgstr ""
15960
15961 #. type: TP
15962 #: build/C/man7/tcp.7:939
15963 #, no-wrap
15964 msgid "B<TCP_MAXSEG>"
15965 msgstr ""
15966
15967 #.  Present in Linux 1.0
15968 #. type: Plain text
15969 #: build/C/man7/tcp.7:949
15970 msgid ""
15971 "The maximum segment size for outgoing TCP packets.  In Linux 2.2 and "
15972 "earlier, and in Linux 2.6.28 and later, if this option is set before "
15973 "connection establishment, it also changes the MSS value announced to the "
15974 "other end in the initial packet.  Values greater than the (eventual) "
15975 "interface MTU have no effect.  TCP will also impose its minimum and maximum "
15976 "bounds over the value provided."
15977 msgstr ""
15978
15979 #. type: TP
15980 #: build/C/man7/tcp.7:949
15981 #, no-wrap
15982 msgid "B<TCP_NODELAY>"
15983 msgstr ""
15984
15985 #.  Present in Linux 1.0
15986 #. type: Plain text
15987 #: build/C/man7/tcp.7:966
15988 msgid ""
15989 "If set, disable the Nagle algorithm.  This means that segments are always "
15990 "sent as soon as possible, even if there is only a small amount of data.  "
15991 "When not set, data is buffered until there is a sufficient amount to send "
15992 "out, thereby avoiding the frequent sending of small packets, which results "
15993 "in poor utilization of the network.  This option is overridden by "
15994 "B<TCP_CORK>; however, setting this option forces an explicit flush of "
15995 "pending output, even if B<TCP_CORK> is currently set."
15996 msgstr ""
15997
15998 #. type: TP
15999 #: build/C/man7/tcp.7:966
16000 #, no-wrap
16001 msgid "B<TCP_QUICKACK> (since Linux 2.4.4)"
16002 msgstr ""
16003
16004 #. type: Plain text
16005 #: build/C/man7/tcp.7:981
16006 msgid ""
16007 "Enable quickack mode if set or disable quickack mode if cleared.  In "
16008 "quickack mode, acks are sent immediately, rather than delayed if needed in "
16009 "accordance to normal TCP operation.  This flag is not permanent, it only "
16010 "enables a switch to or from quickack mode.  Subsequent operation of the TCP "
16011 "protocol will once again enter/leave quickack mode depending on internal "
16012 "protocol processing and factors such as delayed ack timeouts occurring and "
16013 "data transfer.  This option should not be used in code intended to be "
16014 "portable."
16015 msgstr ""
16016
16017 #. type: TP
16018 #: build/C/man7/tcp.7:981
16019 #, no-wrap
16020 msgid "B<TCP_SYNCNT> (since Linux 2.4)"
16021 msgstr ""
16022
16023 #.  Precisely: since 2.3.18
16024 #. type: Plain text
16025 #: build/C/man7/tcp.7:988
16026 msgid ""
16027 "Set the number of SYN retransmits that TCP should send before aborting the "
16028 "attempt to connect.  It cannot exceed 255.  This option should not be used "
16029 "in code intended to be portable."
16030 msgstr ""
16031
16032 #. type: TP
16033 #: build/C/man7/tcp.7:988
16034 #, no-wrap
16035 msgid "B<TCP_WINDOW_CLAMP> (since Linux 2.4)"
16036 msgstr ""
16037
16038 #.  Precisely: since 2.3.41
16039 #. type: Plain text
16040 #: build/C/man7/tcp.7:995
16041 msgid ""
16042 "Bound the size of the advertised window to this value.  The kernel imposes a "
16043 "minimum size of SOCK_MIN_RCVBUF/2.  This option should not be used in code "
16044 "intended to be portable."
16045 msgstr ""
16046
16047 #. type: SS
16048 #: build/C/man7/tcp.7:995 build/C/man7/unix.7:177
16049 #, no-wrap
16050 msgid "Sockets API"
16051 msgstr ""
16052
16053 #. type: Plain text
16054 #: build/C/man7/tcp.7:1004
16055 msgid ""
16056 "TCP provides limited support for out-of-band data, in the form of (a single "
16057 "byte of) urgent data.  In Linux this means if the other end sends newer "
16058 "out-of-band data the older urgent data is inserted as normal data into the "
16059 "stream (even when B<SO_OOBINLINE> is not set).  This differs from BSD-based "
16060 "stacks."
16061 msgstr ""
16062
16063 #. type: Plain text
16064 #: build/C/man7/tcp.7:1011
16065 msgid ""
16066 "Linux uses the BSD compatible interpretation of the urgent pointer field by "
16067 "default.  This violates RFC\\ 1122, but is required for interoperability "
16068 "with other stacks.  It can be changed via I</proc/sys/net/ipv4/tcp_stdurg>."
16069 msgstr ""
16070
16071 #. type: Plain text
16072 #: build/C/man7/tcp.7:1016
16073 msgid ""
16074 "It is possible to peek at out-of-band data using the I<recv>(2)  B<MSG_PEEK> "
16075 "flag."
16076 msgstr ""
16077
16078 #. type: Plain text
16079 #: build/C/man7/tcp.7:1032
16080 msgid ""
16081 "Since version 2.4, Linux supports the use of B<MSG_TRUNC> in the I<flags> "
16082 "argument of B<recv>(2)  (and B<recvmsg>(2)).  This flag causes the received "
16083 "bytes of data to be discarded, rather than passed back in a caller-supplied "
16084 "buffer.  Since Linux 2.4.4, B<MSG_PEEK> also has this effect when used in "
16085 "conjunction with B<MSG_OOB> to receive out-of-band data."
16086 msgstr ""
16087
16088 #. type: Plain text
16089 #: build/C/man7/tcp.7:1038 build/C/man7/unix.7:290
16090 msgid ""
16091 "The following B<ioctl>(2)  calls return information in I<value>.  The "
16092 "correct syntax is:"
16093 msgstr ""
16094
16095 #. type: Plain text
16096 #: build/C/man7/tcp.7:1043
16097 #, no-wrap
16098 msgid ""
16099 "B<int>I< value>B<;>\n"
16100 "I<error>B< = ioctl(>I<tcp_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
16101 msgstr ""
16102
16103 #. type: Plain text
16104 #: build/C/man7/tcp.7:1048
16105 msgid "I<ioctl_type> is one of the following:"
16106 msgstr ""
16107
16108 #. type: TP
16109 #: build/C/man7/tcp.7:1048 build/C/man7/unix.7:300
16110 #, no-wrap
16111 msgid "B<SIOCINQ>"
16112 msgstr ""
16113
16114 #.  FIXME http://sources.redhat.com/bugzilla/show_bug.cgi?id=12002,
16115 #.  filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
16116 #.  SIOCOUTQ also has an effect for UNIX domain sockets, but not
16117 #.  quite what userland might expect. It seems to return the number
16118 #.  of bytes allocated for buffers containing pending output.
16119 #.  That number is normally larger than the number of bytes of pending
16120 #.  output. Since this info is, from userland's point of view, imprecise,
16121 #.  and it may well change, probably best not to document this now.
16122 #. type: Plain text
16123 #: build/C/man7/tcp.7:1064 build/C/man7/unix.7:322
16124 msgid ""
16125 "Returns the amount of queued unread data in the receive buffer.  The socket "
16126 "must not be in LISTEN state, otherwise an error (B<EINVAL>)  is returned.  "
16127 "B<SIOCINQ> is defined in I<E<lt>linux/sockios.hE<gt>>.  Alternatively, you "
16128 "can use the synonymous B<FIONREAD>, defined in I<E<lt>sys/ioctl.hE<gt>>."
16129 msgstr ""
16130
16131 #. type: TP
16132 #: build/C/man7/tcp.7:1064
16133 #, no-wrap
16134 msgid "B<SIOCATMARK>"
16135 msgstr ""
16136
16137 #. type: Plain text
16138 #: build/C/man7/tcp.7:1069
16139 msgid ""
16140 "Returns true (i.e., I<value> is nonzero) if the inbound data stream is at "
16141 "the urgent mark."
16142 msgstr ""
16143
16144 #. type: Plain text
16145 #: build/C/man7/tcp.7:1085
16146 msgid ""
16147 "If the B<SO_OOBINLINE> socket option is set, and B<SIOCATMARK> returns true, "
16148 "then the next read from the socket will return the urgent data.  If the "
16149 "B<SO_OOBINLINE> socket option is not set, and B<SIOCATMARK> returns true, "
16150 "then the next read from the socket will return the bytes following the "
16151 "urgent data (to actually read the urgent data requires the B<recv(MSG_OOB)> "
16152 "flag)."
16153 msgstr ""
16154
16155 #. type: Plain text
16156 #: build/C/man7/tcp.7:1099
16157 msgid ""
16158 "Note that a read never reads across the urgent mark.  If an application is "
16159 "informed of the presence of urgent data via B<select>(2)  (using the "
16160 "I<exceptfds> argument) or through delivery of a B<SIGURG> signal, then it "
16161 "can advance up to the mark using a loop which repeatedly tests B<SIOCATMARK> "
16162 "and performs a read (requesting any number of bytes) as long as "
16163 "B<SIOCATMARK> returns false."
16164 msgstr ""
16165
16166 #. type: TP
16167 #: build/C/man7/tcp.7:1099
16168 #, no-wrap
16169 msgid "B<SIOCOUTQ>"
16170 msgstr ""
16171
16172 #.  FIXME http://sources.redhat.com/bugzilla/show_bug.cgi?id=12002,
16173 #.  filed 2010-09-10, may cause SIOCOUTQ to be defined in glibc headers
16174 #. type: Plain text
16175 #: build/C/man7/tcp.7:1115
16176 msgid ""
16177 "Returns the amount of unsent data in the socket send queue.  The socket must "
16178 "not be in LISTEN state, otherwise an error (B<EINVAL>)  is returned.  "
16179 "B<SIOCOUTQ> is defined in I<E<lt>linux/sockios.hE<gt>>.  Alternatively, you "
16180 "can use the synonymous B<TIOCOUTQ>, defined in I<E<lt>sys/ioctl.hE<gt>>."
16181 msgstr ""
16182
16183 #. type: Plain text
16184 #: build/C/man7/tcp.7:1120
16185 msgid ""
16186 "When a network error occurs, TCP tries to resend the packet.  If it doesn't "
16187 "succeed after some time, either B<ETIMEDOUT> or the last received error on "
16188 "this connection is reported."
16189 msgstr ""
16190
16191 #. type: Plain text
16192 #: build/C/man7/tcp.7:1131
16193 msgid ""
16194 "Some applications require a quicker error notification.  This can be enabled "
16195 "with the B<IPPROTO_IP> level B<IP_RECVERR> socket option.  When this option "
16196 "is enabled, all incoming errors are immediately passed to the user program.  "
16197 "Use this option with care \\(em it makes TCP less tolerant to routing "
16198 "changes and other normal network conditions."
16199 msgstr ""
16200
16201 #. type: TP
16202 #: build/C/man7/tcp.7:1132
16203 #, no-wrap
16204 msgid "B<EAFNOTSUPPORT>"
16205 msgstr ""
16206
16207 #. type: Plain text
16208 #: build/C/man7/tcp.7:1138
16209 msgid "Passed socket address type in I<sin_family> was not B<AF_INET>."
16210 msgstr ""
16211
16212 #. type: Plain text
16213 #: build/C/man7/tcp.7:1142
16214 msgid ""
16215 "The other end closed the socket unexpectedly or a read is executed on a shut "
16216 "down socket."
16217 msgstr ""
16218
16219 #. type: TP
16220 #: build/C/man7/tcp.7:1142
16221 #, no-wrap
16222 msgid "B<ETIMEDOUT>"
16223 msgstr ""
16224
16225 #. type: Plain text
16226 #: build/C/man7/tcp.7:1145
16227 msgid "The other end didn't acknowledge retransmitted data after some time."
16228 msgstr ""
16229
16230 #. type: Plain text
16231 #: build/C/man7/tcp.7:1149
16232 msgid ""
16233 "Any errors defined for B<ip>(7)  or the generic socket layer may also be "
16234 "returned for TCP."
16235 msgstr ""
16236
16237 #. type: Plain text
16238 #: build/C/man7/tcp.7:1156
16239 msgid ""
16240 "Support for Explicit Congestion Notification, zero-copy B<sendfile>(2), "
16241 "reordering support and some SACK extensions (DSACK) were introduced in 2.4.  "
16242 "Support for forward acknowledgement (FACK), TIME_WAIT recycling, and "
16243 "per-connection keepalive socket options were introduced in 2.3."
16244 msgstr ""
16245
16246 #. type: Plain text
16247 #: build/C/man7/tcp.7:1158
16248 msgid "Not all errors are documented."
16249 msgstr ""
16250
16251 #.  Only a single Linux kernel version is described
16252 #.  Info for 2.2 was lost. Should be added again,
16253 #.  or put into a separate page.
16254 #.  .SH AUTHORS
16255 #.  This man page was originally written by Andi Kleen.
16256 #.  It was updated for 2.4 by Nivedita Singhvi with input from
16257 #.  Alexey Kuznetsov's Documentation/networking/ip-sysctl.txt
16258 #.  document.
16259 #. type: Plain text
16260 #: build/C/man7/tcp.7:1168
16261 msgid "IPv6 is not described."
16262 msgstr ""
16263
16264 #. type: Plain text
16265 #: build/C/man7/tcp.7:1180
16266 msgid ""
16267 "B<accept>(2), B<bind>(2), B<connect>(2), B<getsockopt>(2), B<listen>(2), "
16268 "B<recvmsg>(2), B<sendfile>(2), B<sendmsg>(2), B<socket>(2), B<ip>(7), "
16269 "B<socket>(7)"
16270 msgstr ""
16271
16272 #. type: Plain text
16273 #: build/C/man7/tcp.7:1182
16274 msgid "RFC\\ 793 for the TCP specification."
16275 msgstr ""
16276
16277 #. type: Plain text
16278 #: build/C/man7/tcp.7:1184
16279 msgid ""
16280 "RFC\\ 1122 for the TCP requirements and a description of the Nagle "
16281 "algorithm."
16282 msgstr ""
16283
16284 #. type: Plain text
16285 #: build/C/man7/tcp.7:1186
16286 msgid "RFC\\ 1323 for TCP timestamp and window scaling options."
16287 msgstr ""
16288
16289 #. type: Plain text
16290 #: build/C/man7/tcp.7:1188
16291 msgid "RFC\\ 1337 for a description of TIME_WAIT assassination hazards."
16292 msgstr ""
16293
16294 #. type: Plain text
16295 #: build/C/man7/tcp.7:1190
16296 msgid "RFC\\ 3168 for a description of Explicit Congestion Notification."
16297 msgstr ""
16298
16299 #. type: Plain text
16300 #: build/C/man7/tcp.7:1192
16301 msgid "RFC\\ 2581 for TCP congestion control algorithms."
16302 msgstr ""
16303
16304 #. type: Plain text
16305 #: build/C/man7/tcp.7:1194
16306 msgid "RFC\\ 2018 and RFC\\ 2883 for SACK and extensions to SACK."
16307 msgstr ""
16308
16309 #. type: TH
16310 #: build/C/man7/udp.7:12
16311 #, no-wrap
16312 msgid "UDP"
16313 msgstr ""
16314
16315 #. type: Plain text
16316 #: build/C/man7/udp.7:15
16317 msgid "udp - User Datagram Protocol for IPv4"
16318 msgstr ""
16319
16320 #. type: Plain text
16321 #: build/C/man7/udp.7:21
16322 msgid "B<#include E<lt>netinet/udp.hE<gt>>"
16323 msgstr ""
16324
16325 #. type: Plain text
16326 #: build/C/man7/udp.7:23
16327 msgid "B<udp_socket = socket(AF_INET, SOCK_DGRAM, 0);>"
16328 msgstr ""
16329
16330 #. type: Plain text
16331 #: build/C/man7/udp.7:29
16332 msgid ""
16333 "This is an implementation of the User Datagram Protocol described in RFC\\ "
16334 "768.  It implements a connectionless, unreliable datagram packet service.  "
16335 "Packets may be reordered or duplicated before they arrive.  UDP generates "
16336 "and checks checksums to catch transmission errors."
16337 msgstr ""
16338
16339 #. type: Plain text
16340 #: build/C/man7/udp.7:58
16341 msgid ""
16342 "When a UDP socket is created, its local and remote addresses are "
16343 "unspecified.  Datagrams can be sent immediately using B<sendto>(2)  or "
16344 "B<sendmsg>(2)  with a valid destination address as an argument.  When "
16345 "B<connect>(2)  is called on the socket, the default destination address is "
16346 "set and datagrams can now be sent using B<send>(2)  or B<write>(2)  without "
16347 "specifying a destination address.  It is still possible to send to other "
16348 "destinations by passing an address to B<sendto>(2)  or B<sendmsg>(2).  In "
16349 "order to receive packets, the socket can be bound to a local address first "
16350 "by using B<bind>(2).  Otherwise the socket layer will automatically assign a "
16351 "free local port out of the range defined by "
16352 "I</proc/sys/net/ipv4/ip_local_port_range> and bind the socket to "
16353 "B<INADDR_ANY>."
16354 msgstr ""
16355
16356 #. type: Plain text
16357 #: build/C/man7/udp.7:66
16358 msgid ""
16359 "All receive operations return only one packet.  When the packet is smaller "
16360 "than the passed buffer, only that much data is returned; when it is bigger, "
16361 "the packet is truncated and the B<MSG_TRUNC> flag is set.  B<MSG_WAITALL> is "
16362 "not supported."
16363 msgstr ""
16364
16365 #. type: Plain text
16366 #: build/C/man7/udp.7:75
16367 msgid ""
16368 "IP options may be sent or received using the socket options described in "
16369 "B<ip>(7).  They are processed by the kernel only when the appropriate "
16370 "I</proc> parameter is enabled (but still passed to the user even when it is "
16371 "turned off).  See B<ip>(7)."
16372 msgstr ""
16373
16374 #. type: Plain text
16375 #: build/C/man7/udp.7:80
16376 msgid ""
16377 "When the B<MSG_DONTROUTE> flag is set on sending, the destination address "
16378 "must refer to a local interface address and the packet is sent only to that "
16379 "interface."
16380 msgstr ""
16381
16382 #. type: Plain text
16383 #: build/C/man7/udp.7:98
16384 msgid ""
16385 "By default, Linux UDP does path MTU (Maximum Transmission Unit) discovery.  "
16386 "This means the kernel will keep track of the MTU to a specific target IP "
16387 "address and return B<EMSGSIZE> when a UDP packet write exceeds it.  When "
16388 "this happens, the application should decrease the packet size.  Path MTU "
16389 "discovery can be also turned off using the B<IP_MTU_DISCOVER> socket option "
16390 "or the I</proc/sys/net/ipv4/ip_no_pmtu_disc> file; see B<ip>(7)  for "
16391 "details.  When turned off, UDP will fragment outgoing UDP packets that "
16392 "exceed the interface MTU.  However, disabling it is not recommended for "
16393 "performance and reliability reasons."
16394 msgstr ""
16395
16396 #. type: Plain text
16397 #: build/C/man7/udp.7:103
16398 msgid "UDP uses the IPv4 I<sockaddr_in> address format described in B<ip>(7)."
16399 msgstr ""
16400
16401 #. type: Plain text
16402 #: build/C/man7/udp.7:114
16403 msgid ""
16404 "All fatal errors will be passed to the user as an error return even when the "
16405 "socket is not connected.  This includes asynchronous errors received from "
16406 "the network.  You may get an error for an earlier packet that was sent on "
16407 "the same socket.  This behavior differs from many other BSD socket "
16408 "implementations which don't pass any errors unless the socket is connected.  "
16409 "Linux's behavior is mandated by B<RFC\\ 1122>."
16410 msgstr ""
16411
16412 #. type: Plain text
16413 #: build/C/man7/udp.7:128
16414 msgid ""
16415 "For compatibility with legacy code, in Linux 2.0 and 2.2 it was possible to "
16416 "set the B<SO_BSDCOMPAT> B<SOL_SOCKET> option to receive remote errors only "
16417 "when the socket has been connected (except for B<EPROTO> and B<EMSGSIZE>).  "
16418 "Locally generated errors are always passed.  Support for this socket option "
16419 "was removed in later kernels; see B<socket>(7)  for further information."
16420 msgstr ""
16421
16422 #. type: Plain text
16423 #: build/C/man7/udp.7:137
16424 msgid ""
16425 "When the B<IP_RECVERR> option is enabled, all errors are stored in the "
16426 "socket error queue, and can be received by B<recvmsg>(2)  with the "
16427 "B<MSG_ERRQUEUE> flag set."
16428 msgstr ""
16429
16430 #. type: Plain text
16431 #: build/C/man7/udp.7:140
16432 msgid ""
16433 "System-wide UDP parameter settings can be accessed by files in the directory "
16434 "I</proc/sys/net/ipv4/>."
16435 msgstr ""
16436
16437 #. type: TP
16438 #: build/C/man7/udp.7:140
16439 #, no-wrap
16440 msgid "I<udp_mem> (since Linux 2.6.25)"
16441 msgstr ""
16442
16443 #. type: Plain text
16444 #: build/C/man7/udp.7:144
16445 msgid ""
16446 "This is a vector of three integers governing the number of pages allowed for "
16447 "queueing by all UDP sockets."
16448 msgstr ""
16449
16450 #. type: Plain text
16451 #: build/C/man7/udp.7:151
16452 msgid ""
16453 "Below this number of pages, UDP is not bothered about its memory appetite.  "
16454 "When the amount of memory allocated by UDP exceeds this number, UDP starts "
16455 "to moderate memory usage."
16456 msgstr ""
16457
16458 #. type: Plain text
16459 #: build/C/man7/udp.7:157
16460 msgid ""
16461 "This value was introduced to follow the format of I<tcp_mem> (see "
16462 "B<tcp>(7))."
16463 msgstr ""
16464
16465 #. type: Plain text
16466 #: build/C/man7/udp.7:160
16467 msgid "Number of pages allowed for queueing by all UDP sockets."
16468 msgstr ""
16469
16470 #. type: Plain text
16471 #: build/C/man7/udp.7:164
16472 msgid ""
16473 "Defaults values for these three items are calculated at boot time from the "
16474 "amount of available memory."
16475 msgstr ""
16476
16477 #. type: TP
16478 #: build/C/man7/udp.7:164
16479 #, no-wrap
16480 msgid "I<udp_rmem_min> (integer; default value: PAGE_SIZE; since Linux 2.6.25)"
16481 msgstr ""
16482
16483 #. type: Plain text
16484 #: build/C/man7/udp.7:171
16485 msgid ""
16486 "Minimal size, in bytes, of receive buffers used by UDP sockets in "
16487 "moderation.  Each UDP socket is able to use the size for receiving data, "
16488 "even if total pages of UDP sockets exceed I<udp_mem> pressure."
16489 msgstr ""
16490
16491 #. type: TP
16492 #: build/C/man7/udp.7:171
16493 #, no-wrap
16494 msgid "I<udp_wmem_min> (integer; default value: PAGE_SIZE; since Linux 2.6.25)"
16495 msgstr ""
16496
16497 #. type: Plain text
16498 #: build/C/man7/udp.7:178
16499 msgid ""
16500 "Minimal size, in bytes, of send buffer used by UDP sockets in moderation.  "
16501 "Each UDP socket is able to use the size for sending data, even if total "
16502 "pages of UDP sockets exceed I<udp_mem> pressure."
16503 msgstr ""
16504
16505 #. type: Plain text
16506 #: build/C/man7/udp.7:189
16507 msgid ""
16508 "To set or get a UDP socket option, call B<getsockopt>(2)  to read or "
16509 "B<setsockopt>(2)  to write the option with the option level argument set to "
16510 "B<IPPROTO_UDP>.  Unless otherwise noted, I<optval> is a pointer to an "
16511 "I<int>."
16512 msgstr ""
16513
16514 #. type: TP
16515 #: build/C/man7/udp.7:189
16516 #, no-wrap
16517 msgid "B<UDP_CORK> (since Linux 2.5.44)"
16518 msgstr ""
16519
16520 #.  FIXME document UDP_ENCAP (new in kernel 2.5.67)
16521 #.  From include/linux/udp.h:
16522 #.  /* UDP encapsulation types */
16523 #.  #define UDP_ENCAP_ESPINUDP_NON_IKE      1 /* draft-ietf-ipsec-nat-t-ike-00/01 */
16524 #.  #define UDP_ENCAP_ESPINUDP      2 /* draft-ietf-ipsec-udp-encaps-06 */
16525 #.  #define UDP_ENCAP_L2TPINUDP     3 /* rfc2661 */
16526 #. type: Plain text
16527 #: build/C/man7/udp.7:202
16528 msgid ""
16529 "If this option is enabled, then all data output on this socket is "
16530 "accumulated into a single datagram that is transmitted when the option is "
16531 "disabled.  This option should not be used in code intended to be portable."
16532 msgstr ""
16533
16534 #. type: Plain text
16535 #: build/C/man7/udp.7:206
16536 msgid "These ioctls can be accessed using B<ioctl>(2).  The correct syntax is:"
16537 msgstr ""
16538
16539 #. type: Plain text
16540 #: build/C/man7/udp.7:211
16541 #, no-wrap
16542 msgid ""
16543 "B<int>I< value>B<;>\n"
16544 "I<error>B< = ioctl(>I<udp_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
16545 msgstr ""
16546
16547 #. type: TP
16548 #: build/C/man7/udp.7:213
16549 #, no-wrap
16550 msgid "B<FIONREAD> (B<SIOCINQ>)"
16551 msgstr ""
16552
16553 #.  See http://www.securiteam.com/unixfocus/5KP0I15IKO.html
16554 #.  "GNUnet DoS (UDP Socket Unreachable)", 14 May 2006
16555 #. type: Plain text
16556 #: build/C/man7/udp.7:231
16557 msgid ""
16558 "Gets a pointer to an integer as argument.  Returns the size of the next "
16559 "pending datagram in the integer in bytes, or 0 when no datagram is pending.  "
16560 "B<Warning:> Using B<FIONREAD>, it is impossible to distinguish the case "
16561 "where no datagram is pending from the case where the next pending datagram "
16562 "contains zero bytes of data.  It is safer to use B<select>(2), B<poll>(2), "
16563 "or B<epoll>(7)  to distinguish these cases."
16564 msgstr ""
16565
16566 #. type: TP
16567 #: build/C/man7/udp.7:231
16568 #, no-wrap
16569 msgid "B<TIOCOUTQ> (B<SIOCOUTQ>)"
16570 msgstr ""
16571
16572 #. type: Plain text
16573 #: build/C/man7/udp.7:235
16574 msgid ""
16575 "Returns the number of data bytes in the local send queue.  Only supported "
16576 "with Linux 2.4 and above."
16577 msgstr ""
16578
16579 #. type: Plain text
16580 #: build/C/man7/udp.7:241
16581 msgid ""
16582 "In addition all ioctls documented in B<ip>(7)  and B<socket>(7)  are "
16583 "supported."
16584 msgstr ""
16585
16586 #. type: Plain text
16587 #: build/C/man7/udp.7:247
16588 msgid ""
16589 "All errors documented for B<socket>(7)  or B<ip>(7)  may be returned by a "
16590 "send or receive on a UDP socket."
16591 msgstr ""
16592
16593 #. type: TP
16594 #: build/C/man7/udp.7:247 build/C/man7/unix.7:327
16595 #, no-wrap
16596 msgid "B<ECONNREFUSED>"
16597 msgstr ""
16598
16599 #. type: Plain text
16600 #: build/C/man7/udp.7:251
16601 msgid ""
16602 "No receiver was associated with the destination address.  This might be "
16603 "caused by a previous packet sent over the socket."
16604 msgstr ""
16605
16606 #.  .SH CREDITS
16607 #.  This man page was written by Andi Kleen.
16608 #. type: Plain text
16609 #: build/C/man7/udp.7:256
16610 msgid "B<IP_RECVERR> is a new feature in Linux 2.2."
16611 msgstr ""
16612
16613 #. type: Plain text
16614 #: build/C/man7/udp.7:261
16615 msgid "B<ip>(7), B<raw>(7), B<socket>(7), B<udplite>(7)"
16616 msgstr ""
16617
16618 #. type: Plain text
16619 #: build/C/man7/udp.7:263
16620 msgid "RFC\\ 768 for the User Datagram Protocol."
16621 msgstr ""
16622
16623 #. type: Plain text
16624 #: build/C/man7/udp.7:265
16625 msgid "RFC\\ 1122 for the host requirements."
16626 msgstr ""
16627
16628 #. type: Plain text
16629 #: build/C/man7/udp.7:267
16630 msgid "RFC\\ 1191 for a description of path MTU discovery."
16631 msgstr ""
16632
16633 #. type: TH
16634 #: build/C/man7/udplite.7:27
16635 #, no-wrap
16636 msgid "UDPLITE"
16637 msgstr ""
16638
16639 #. type: TH
16640 #: build/C/man7/udplite.7:27
16641 #, no-wrap
16642 msgid "2008-12-03"
16643 msgstr ""
16644
16645 #. type: Plain text
16646 #: build/C/man7/udplite.7:30
16647 msgid "udplite - Lightweight User Datagram Protocol"
16648 msgstr ""
16649
16650 #. type: Plain text
16651 #: build/C/man7/udplite.7:38
16652 msgid "B<sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);>"
16653 msgstr ""
16654
16655 #. type: Plain text
16656 #: build/C/man7/udplite.7:41
16657 msgid ""
16658 "This is an implementation of the Lightweight User Datagram Protocol "
16659 "(UDP-Lite), as described in RFC\\ 3828."
16660 msgstr ""
16661
16662 #. type: Plain text
16663 #: build/C/man7/udplite.7:47
16664 msgid ""
16665 "UDP-Lite is an extension of UDP (RFC\\ 768) to support variable-length "
16666 "checksums.  This has advantages for some types of multimedia transport that "
16667 "may be able to make use of slightly damaged datagrams, rather than having "
16668 "them discarded by lower-layer protocols."
16669 msgstr ""
16670
16671 #. type: Plain text
16672 #: build/C/man7/udplite.7:53
16673 msgid ""
16674 "The variable-length checksum coverage is set via a B<setsockopt>(2)  "
16675 "option.  If this option is not set, the only difference to UDP is in using a "
16676 "different IP protocol identifier (IANA number 136)."
16677 msgstr ""
16678
16679 #. type: Plain text
16680 #: build/C/man7/udplite.7:58
16681 msgid ""
16682 "The UDP-Lite implementation is a full extension of B<udp>(7), i.e., it "
16683 "shares the same API and API behaviour, and in addition offers two socket "
16684 "options to control the checksum coverage."
16685 msgstr ""
16686
16687 #. type: Plain text
16688 #: build/C/man7/udplite.7:67
16689 msgid ""
16690 "UDP-Litev4 uses the I<sockaddr_in> address format described in B<ip>(7).  "
16691 "UDP-Litev6 uses the I<sockaddr_in6> address format described in B<ipv6>(7)."
16692 msgstr ""
16693
16694 #. type: Plain text
16695 #: build/C/man7/udplite.7:80
16696 msgid ""
16697 "To set or get a UDP-Lite socket option, call B<getsockopt>(2)  to read or "
16698 "B<setsockopt>(2)  to write the option with the option level argument set to "
16699 "B<IPPROTO_UDPLITE>.  In addition, all B<IPPROTO_UDP> socket options are "
16700 "valid on a UDP-Lite socket.  See B<udp>(7)  for more information."
16701 msgstr ""
16702
16703 #. type: Plain text
16704 #: build/C/man7/udplite.7:82
16705 msgid "The following two options are specific to UDP-Lite."
16706 msgstr ""
16707
16708 #. type: TP
16709 #: build/C/man7/udplite.7:82
16710 #, no-wrap
16711 msgid "B<UDPLITE_SEND_CSCOV>"
16712 msgstr ""
16713
16714 #. type: Plain text
16715 #: build/C/man7/udplite.7:87
16716 msgid ""
16717 "This option sets the sender checksum coverage and takes an I<int> as "
16718 "argument, with a checksum coverage value in the range 0..2^16-1."
16719 msgstr ""
16720
16721 #. type: Plain text
16722 #: build/C/man7/udplite.7:91
16723 msgid ""
16724 "A value of 0 means that the entire datagram is always covered.  Values from "
16725 "1-7 are illegal (RFC\\ 3828, 3.1) and are rounded up to the minimum coverage "
16726 "of 8."
16727 msgstr ""
16728
16729 #. type: Plain text
16730 #: build/C/man7/udplite.7:97
16731 msgid ""
16732 "With regard to IPv6 jumbograms (RFC\\ 2675), the UDP-Litev6 checksum "
16733 "coverage is limited to the first 2^16-1 octets, as per RFC\\ 3828, 3.5.  "
16734 "Higher values are therefore silently truncated to 2^16-1.  If in doubt, the "
16735 "current coverage value can always be queried using B<getsockopt>(2)."
16736 msgstr ""
16737
16738 #. type: TP
16739 #: build/C/man7/udplite.7:97
16740 #, no-wrap
16741 msgid "B<UDPLITE_RECV_CSCOV>"
16742 msgstr ""
16743
16744 #. type: Plain text
16745 #: build/C/man7/udplite.7:108
16746 msgid ""
16747 "This is the receiver-side analogue and uses the same argument format and "
16748 "value range as B<UDPLITE_SEND_CSCOV>.  This option is not required to enable "
16749 "traffic with partial checksum coverage.  Its function is that of a traffic "
16750 "filter: when enabled, it instructs the kernel to drop all packets which have "
16751 "a coverage I<less> than the specified coverage value."
16752 msgstr ""
16753
16754 #.  SO_NO_CHECK exists and is supported by UDPv4, but is
16755 #.  commented out in socket(7), hence also commented out here
16756 #. .PP
16757 #. Since UDP-Lite mandates checksums, checksumming can not be disabled
16758 #. via the
16759 #. .B SO_NO_CHECK
16760 #. option from
16761 #. .BR socket (7).
16762 #. type: Plain text
16763 #: build/C/man7/udplite.7:121
16764 msgid ""
16765 "When the value of B<UDPLITE_RECV_CSCOV> exceeds the actual packet coverage, "
16766 "incoming packets are silently dropped, but may generate a warning message in "
16767 "the system log."
16768 msgstr ""
16769
16770 #. type: Plain text
16771 #: build/C/man7/udplite.7:126
16772 msgid ""
16773 "All errors documented for B<udp>(7)  may be returned.  UDP-Lite does not add "
16774 "further errors."
16775 msgstr ""
16776
16777 #. type: Plain text
16778 #: build/C/man7/udplite.7:129
16779 msgid "I</proc/net/snmp> - basic UDP-Litev4 statistics counters."
16780 msgstr ""
16781
16782 #. type: Plain text
16783 #: build/C/man7/udplite.7:132
16784 msgid "I</proc/net/snmp6> - basic UDP-Litev6 statistics counters."
16785 msgstr ""
16786
16787 #. type: Plain text
16788 #: build/C/man7/udplite.7:134
16789 msgid "UDP-Litev4/v6 first appeared in Linux 2.6.20."
16790 msgstr ""
16791
16792 #.  FIXME . remove this section once glibc supports UDP-Lite
16793 #. type: Plain text
16794 #: build/C/man7/udplite.7:137
16795 msgid "Where glibc support is missing, the following definitions are needed:"
16796 msgstr ""
16797
16798 #.  The following two are defined in the kernel in linux/net/udplite.h
16799 #. type: Plain text
16800 #: build/C/man7/udplite.7:144
16801 #, no-wrap
16802 msgid ""
16803 "#define IPPROTO_UDPLITE     136\n"
16804 "#define UDPLITE_SEND_CSCOV  10\n"
16805 "#define UDPLITE_RECV_CSCOV  11\n"
16806 msgstr ""
16807
16808 #. type: Plain text
16809 #: build/C/man7/udplite.7:151
16810 msgid "B<ip>(7), B<ipv6>(7), B<socket>(7), B<udp>(7)"
16811 msgstr ""
16812
16813 #. type: Plain text
16814 #: build/C/man7/udplite.7:153
16815 msgid "RFC\\ 3828 for the Lightweight User Datagram Protocol (UDP-Lite)."
16816 msgstr ""
16817
16818 #. type: Plain text
16819 #: build/C/man7/udplite.7:156
16820 msgid "I<Documentation/networking/udplite.txt> in the Linux kernel source tree"
16821 msgstr ""
16822
16823 #. type: TH
16824 #: build/C/man7/unix.7:18
16825 #, no-wrap
16826 msgid "UNIX"
16827 msgstr ""
16828
16829 #. type: Plain text
16830 #: build/C/man7/unix.7:21
16831 msgid "unix - sockets for local interprocess communication"
16832 msgstr ""
16833
16834 #. type: Plain text
16835 #: build/C/man7/unix.7:25
16836 msgid "B<#include E<lt>sys/un.hE<gt>>"
16837 msgstr ""
16838
16839 #. type: Plain text
16840 #: build/C/man7/unix.7:27
16841 msgid "I<unix_socket>B< = socket(AF_UNIX, type, 0);>"
16842 msgstr ""
16843
16844 #. type: Plain text
16845 #: build/C/man7/unix.7:29
16846 msgid "I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>"
16847 msgstr ""
16848
16849 #. type: Plain text
16850 #: build/C/man7/unix.7:40
16851 msgid ""
16852 "The B<AF_UNIX> (also known as B<AF_LOCAL>)  socket family is used to "
16853 "communicate between processes on the same machine efficiently.  "
16854 "Traditionally, UNIX domain sockets can be either unnamed, or bound to a "
16855 "filesystem pathname (marked as being of type socket).  Linux also supports "
16856 "an abstract namespace which is independent of the filesystem."
16857 msgstr ""
16858
16859 #. type: Plain text
16860 #: build/C/man7/unix.7:52
16861 msgid ""
16862 "Valid types are: B<SOCK_STREAM>, for a stream-oriented socket and "
16863 "B<SOCK_DGRAM>, for a datagram-oriented socket that preserves message "
16864 "boundaries (as on most UNIX implementations, UNIX domain datagram sockets "
16865 "are always reliable and don't reorder datagrams); and (since Linux 2.6.4)  "
16866 "B<SOCK_SEQPACKET>, for a connection-oriented socket that preserves message "
16867 "boundaries and delivers messages in the order that they were sent."
16868 msgstr ""
16869
16870 #. type: Plain text
16871 #: build/C/man7/unix.7:55
16872 msgid ""
16873 "UNIX domain sockets support passing file descriptors or process credentials "
16874 "to other processes using ancillary data."
16875 msgstr ""
16876
16877 #. type: Plain text
16878 #: build/C/man7/unix.7:57
16879 msgid "A UNIX domain socket address is represented in the following structure:"
16880 msgstr ""
16881
16882 #. type: Plain text
16883 #: build/C/man7/unix.7:61
16884 #, no-wrap
16885 msgid "#define UNIX_PATH_MAX    108\n"
16886 msgstr ""
16887
16888 #. type: Plain text
16889 #: build/C/man7/unix.7:66
16890 #, no-wrap
16891 msgid ""
16892 "struct sockaddr_un {\n"
16893 "    sa_family_t sun_family;               /* AF_UNIX */\n"
16894 "    char        sun_path[UNIX_PATH_MAX];  /* pathname */\n"
16895 "};\n"
16896 msgstr ""
16897
16898 #. type: Plain text
16899 #: build/C/man7/unix.7:72
16900 msgid "I<sun_family> always contains B<AF_UNIX>."
16901 msgstr ""
16902
16903 #. type: Plain text
16904 #: build/C/man7/unix.7:74
16905 msgid "Three types of address are distinguished in this structure:"
16906 msgstr ""
16907
16908 #. type: Plain text
16909 #: build/C/man7/unix.7:85
16910 msgid ""
16911 "I<pathname>: a UNIX domain socket can be bound to a null-terminated file "
16912 "system pathname using B<bind>(2).  When the address of the socket is "
16913 "returned by B<getsockname>(2), B<getpeername>(2), and B<accept>(2), its "
16914 "length is"
16915 msgstr ""
16916
16917 #. type: Plain text
16918 #: build/C/man7/unix.7:87
16919 #, no-wrap
16920 msgid "    offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1\n"
16921 msgstr ""
16922
16923 #. type: Plain text
16924 #: build/C/man7/unix.7:91
16925 msgid "and I<sun_path> contains the null-terminated pathname."
16926 msgstr ""
16927
16928 #.  There is quite some variation across implementations: FreeBSD
16929 #.  says the length is 16 bytes, HP-UX 11 says it's zero bytes.
16930 #. type: Plain text
16931 #: build/C/man7/unix.7:111
16932 msgid ""
16933 "I<unnamed>: A stream socket that has not been bound to a pathname using "
16934 "B<bind>(2)  has no name.  Likewise, the two sockets created by "
16935 "B<socketpair>(2)  are unnamed.  When the address of an unnamed socket is "
16936 "returned by B<getsockname>(2), B<getpeername>(2), and B<accept>(2), its "
16937 "length is I<sizeof(sa_family_t)>, and I<sun_path> should not be inspected."
16938 msgstr ""
16939
16940 #. type: Plain text
16941 #: build/C/man7/unix.7:137
16942 msgid ""
16943 "I<abstract>: an abstract socket address is distinguished by the fact that "
16944 "I<sun_path[0]> is a null byte (\\(aq\\e0\\(aq).  The socket's address in "
16945 "this namespace is given by the additional bytes in I<sun_path> that are "
16946 "covered by the specified length of the address structure.  (Null bytes in "
16947 "the name have no special significance.)  The name has no connection with "
16948 "filesystem pathnames.  When the address of an abstract socket is returned by "
16949 "B<getsockname>(2), B<getpeername>(2), and B<accept>(2), the returned "
16950 "I<addrlen> is greater than I<sizeof(sa_family_t)> (i.e., greater than 2), "
16951 "and the name of the socket is contained in the first I<(addrlen - "
16952 "sizeof(sa_family_t))> bytes of I<sun_path>.  The abstract socket namespace "
16953 "is a nonportable Linux extension."
16954 msgstr ""
16955
16956 #. type: Plain text
16957 #: build/C/man7/unix.7:150
16958 msgid ""
16959 "For historical reasons these socket options are specified with a "
16960 "B<SOL_SOCKET> type even though they are B<AF_UNIX> specific.  They can be "
16961 "set with B<setsockopt>(2)  and read with B<getsockopt>(2)  by specifying "
16962 "B<SOL_SOCKET> as the socket family."
16963 msgstr ""
16964
16965 #. type: TP
16966 #: build/C/man7/unix.7:150
16967 #, no-wrap
16968 msgid "B<SO_PASSCRED>"
16969 msgstr ""
16970
16971 #. type: Plain text
16972 #: build/C/man7/unix.7:157
16973 msgid ""
16974 "Enables the receiving of the credentials of the sending process in an "
16975 "ancillary message.  When this option is set and the socket is not yet "
16976 "connected a unique name in the abstract namespace will be generated "
16977 "automatically.  Expects an integer boolean flag."
16978 msgstr ""
16979
16980 #. type: SS
16981 #: build/C/man7/unix.7:157
16982 #, no-wrap
16983 msgid "Autobind feature"
16984 msgstr ""
16985
16986 #.  i.e. sizeof(short)
16987 #. type: Plain text
16988 #: build/C/man7/unix.7:177
16989 msgid ""
16990 "If a B<bind>(2)  call specifies I<addrlen> as I<sizeof(sa_family_t)>, or the "
16991 "B<SO_PASSCRED> socket option was specified for a socket that was not "
16992 "explicitly bound to an address, then the socket is autobound to an abstract "
16993 "address.  The address consists of a null byte followed by 5 bytes in the "
16994 "character set I<[0-9a-f]>.  Thus, there is a limit of 2^20 autobind "
16995 "addresses.  (From Linux 2.1.15, when the autobind feature was added, 8 bytes "
16996 "were used, and the limit was thus 2^32 autobind addresses.  The change to 5 "
16997 "bytes came in Linux 2.3.15.)"
16998 msgstr ""
16999
17000 #. type: Plain text
17001 #: build/C/man7/unix.7:180
17002 msgid ""
17003 "The following paragraphs describe domain-specific details and unsupported "
17004 "features of the sockets API for UNIX domain sockets on Linux."
17005 msgstr ""
17006
17007 #. type: Plain text
17008 #: build/C/man7/unix.7:188
17009 msgid ""
17010 "UNIX domain sockets do not support the transmission of out-of-band data (the "
17011 "B<MSG_OOB> flag for B<send>(2)  and B<recv>(2))."
17012 msgstr ""
17013
17014 #. type: Plain text
17015 #: build/C/man7/unix.7:193
17016 msgid "The B<send>(2)  B<MSG_MORE> flag is not supported by UNIX domain sockets."
17017 msgstr ""
17018
17019 #. type: Plain text
17020 #: build/C/man7/unix.7:201
17021 msgid ""
17022 "The use of B<MSG_TRUNC> in the I<flags> argument of B<recv>(2)  is not "
17023 "supported by UNIX domain sockets."
17024 msgstr ""
17025
17026 #. type: Plain text
17027 #: build/C/man7/unix.7:213
17028 msgid ""
17029 "The B<SO_SNDBUF> socket option does have an effect for UNIX domain sockets, "
17030 "but the B<SO_RCVBUF> option does not.  For datagram sockets, the "
17031 "B<SO_SNDBUF> value imposes an upper limit on the size of outgoing "
17032 "datagrams.  This limit is calculated as the doubled (see B<socket>(7))  "
17033 "option value less 32 bytes used for overhead."
17034 msgstr ""
17035
17036 #. type: SS
17037 #: build/C/man7/unix.7:213
17038 #, no-wrap
17039 msgid "Ancillary messages"
17040 msgstr ""
17041
17042 #. type: Plain text
17043 #: build/C/man7/unix.7:235
17044 msgid ""
17045 "Ancillary data is sent and received using B<sendmsg>(2)  and B<recvmsg>(2).  "
17046 "For historical reasons the ancillary message types listed below are "
17047 "specified with a B<SOL_SOCKET> type even though they are B<AF_UNIX> "
17048 "specific.  To send them set the I<cmsg_level> field of the struct I<cmsghdr> "
17049 "to B<SOL_SOCKET> and the I<cmsg_type> field to the type.  For more "
17050 "information see B<cmsg>(3)."
17051 msgstr ""
17052
17053 #. type: TP
17054 #: build/C/man7/unix.7:235
17055 #, no-wrap
17056 msgid "B<SCM_RIGHTS>"
17057 msgstr ""
17058
17059 #. type: Plain text
17060 #: build/C/man7/unix.7:241
17061 msgid ""
17062 "Send or receive a set of open file descriptors from another process.  The "
17063 "data portion contains an integer array of the file descriptors.  The passed "
17064 "file descriptors behave as though they have been created with B<dup>(2)."
17065 msgstr ""
17066
17067 #. type: TP
17068 #: build/C/man7/unix.7:241
17069 #, no-wrap
17070 msgid "B<SCM_CREDENTIALS>"
17071 msgstr ""
17072
17073 #. type: Plain text
17074 #: build/C/man7/unix.7:251
17075 msgid ""
17076 "Send or receive UNIX credentials.  This can be used for authentication.  The "
17077 "credentials are passed as a I<struct ucred> ancillary message.  Thus "
17078 "structure is defined in I<E<lt>sys/socket.hE<gt>> as follows:"
17079 msgstr ""
17080
17081 #. type: Plain text
17082 #: build/C/man7/unix.7:259
17083 #, no-wrap
17084 msgid ""
17085 "struct ucred {\n"
17086 "    pid_t pid;    /* process ID of the sending process */\n"
17087 "    uid_t uid;    /* user ID of the sending process */\n"
17088 "    gid_t gid;    /* group ID of the sending process */\n"
17089 "};\n"
17090 msgstr ""
17091
17092 #. type: Plain text
17093 #: build/C/man7/unix.7:268
17094 msgid ""
17095 "Since glibc 2.8, the B<_GNU_SOURCE> feature test macro must be defined "
17096 "(before including I<any> header files) in order to obtain the definition of "
17097 "this structure."
17098 msgstr ""
17099
17100 #. type: Plain text
17101 #: build/C/man7/unix.7:284
17102 msgid ""
17103 "The credentials which the sender specifies are checked by the kernel.  A "
17104 "process with effective user ID 0 is allowed to specify values that do not "
17105 "match its own.  The sender must specify its own process ID (unless it has "
17106 "the capability B<CAP_SYS_ADMIN>), its user ID, effective user ID, or saved "
17107 "set-user-ID (unless it has B<CAP_SETUID>), and its group ID, effective group "
17108 "ID, or saved set-group-ID (unless it has B<CAP_SETGID>).  To receive a "
17109 "I<struct ucred> message the B<SO_PASSCRED> option must be enabled on the "
17110 "socket."
17111 msgstr ""
17112
17113 #. type: Plain text
17114 #: build/C/man7/unix.7:295
17115 #, no-wrap
17116 msgid ""
17117 "B<int>I< value>B<;>\n"
17118 "I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
17119 msgstr ""
17120
17121 #. type: Plain text
17122 #: build/C/man7/unix.7:300
17123 msgid "I<ioctl_type> can be:"
17124 msgstr ""
17125
17126 #. type: Plain text
17127 #: build/C/man7/unix.7:327
17128 msgid ""
17129 "The specified local address is already in use or the filesystem socket "
17130 "object already exists."
17131 msgstr ""
17132
17133 #. type: Plain text
17134 #: build/C/man7/unix.7:333
17135 msgid ""
17136 "The remote address specified by B<connect>(2)  was not a listening socket.  "
17137 "This error can also occur if the target filename is not a socket."
17138 msgstr ""
17139
17140 #. type: TP
17141 #: build/C/man7/unix.7:333
17142 #, no-wrap
17143 msgid "B<ECONNRESET>"
17144 msgstr ""
17145
17146 #. type: Plain text
17147 #: build/C/man7/unix.7:336
17148 msgid "Remote socket was unexpectedly closed."
17149 msgstr ""
17150
17151 #. type: Plain text
17152 #: build/C/man7/unix.7:339
17153 msgid "User memory address was not valid."
17154 msgstr ""
17155
17156 #. type: Plain text
17157 #: build/C/man7/unix.7:348
17158 msgid ""
17159 "Invalid argument passed.  A common cause is that the value B<AF_UNIX> was "
17160 "not specified in the I<sun_type> field of passed addresses, or the socket "
17161 "was in an invalid state for the applied operation."
17162 msgstr ""
17163
17164 #. type: Plain text
17165 #: build/C/man7/unix.7:353
17166 msgid ""
17167 "B<connect>(2)  called on an already connected socket or a target address was "
17168 "specified on a connected socket."
17169 msgstr ""
17170
17171 #. type: Plain text
17172 #: build/C/man7/unix.7:358
17173 msgid ""
17174 "The pathname in the remote address specified to B<connect>(2)  did not "
17175 "exist."
17176 msgstr ""
17177
17178 #. type: TP
17179 #: build/C/man7/unix.7:358
17180 #, no-wrap
17181 msgid "B<ENOMEM>"
17182 msgstr ""
17183
17184 #. type: Plain text
17185 #: build/C/man7/unix.7:364
17186 msgid "Socket operation needs a target address, but the socket is not connected."
17187 msgstr ""
17188
17189 #. type: Plain text
17190 #: build/C/man7/unix.7:368
17191 msgid ""
17192 "Stream operation called on non-stream oriented socket or tried to use the "
17193 "out-of-band data option."
17194 msgstr ""
17195
17196 #. type: Plain text
17197 #: build/C/man7/unix.7:372
17198 msgid "The sender passed invalid credentials in the I<struct ucred>."
17199 msgstr ""
17200
17201 #. type: Plain text
17202 #: build/C/man7/unix.7:384
17203 msgid ""
17204 "Remote socket was closed on a stream socket.  If enabled, a B<SIGPIPE> is "
17205 "sent as well.  This can be avoided by passing the B<MSG_NOSIGNAL> flag to "
17206 "B<sendmsg>(2)  or B<recvmsg>(2)."
17207 msgstr ""
17208
17209 #. type: TP
17210 #: build/C/man7/unix.7:384
17211 #, no-wrap
17212 msgid "B<EPROTONOSUPPORT>"
17213 msgstr ""
17214
17215 #. type: Plain text
17216 #: build/C/man7/unix.7:388
17217 msgid "Passed protocol is not B<AF_UNIX>."
17218 msgstr ""
17219
17220 #. type: TP
17221 #: build/C/man7/unix.7:388
17222 #, no-wrap
17223 msgid "B<EPROTOTYPE>"
17224 msgstr ""
17225
17226 #. type: Plain text
17227 #: build/C/man7/unix.7:394
17228 msgid ""
17229 "Remote socket does not match the local socket type (B<SOCK_DGRAM> versus "
17230 "B<SOCK_STREAM>)"
17231 msgstr ""
17232
17233 #. type: Plain text
17234 #: build/C/man7/unix.7:397
17235 msgid "Unknown socket type."
17236 msgstr ""
17237
17238 #. type: Plain text
17239 #: build/C/man7/unix.7:401
17240 msgid ""
17241 "Other errors can be generated by the generic socket layer or by the "
17242 "filesystem while generating a filesystem socket object.  See the appropriate "
17243 "manual pages for more information."
17244 msgstr ""
17245
17246 #. type: Plain text
17247 #: build/C/man7/unix.7:407
17248 msgid ""
17249 "B<SCM_CREDENTIALS> and the abstract namespace were introduced with Linux 2.2 "
17250 "and should not be used in portable programs.  (Some BSD-derived systems also "
17251 "support credential passing, but the implementation details differ.)"
17252 msgstr ""
17253
17254 #. type: Plain text
17255 #: build/C/man7/unix.7:418
17256 msgid ""
17257 "In the Linux implementation, sockets which are visible in the filesystem "
17258 "honor the permissions of the directory they are in.  Their owner, group and "
17259 "their permissions can be changed.  Creation of a new socket will fail if the "
17260 "process does not have write and search (execute) permission on the directory "
17261 "the socket is created in.  Connecting to the socket object requires "
17262 "read/write permission.  This behavior differs from many BSD-derived systems "
17263 "which ignore permissions for UNIX domain sockets.  Portable programs should "
17264 "not rely on this feature for security."
17265 msgstr ""
17266
17267 #. type: Plain text
17268 #: build/C/man7/unix.7:426
17269 msgid ""
17270 "Binding to a socket with a filename creates a socket in the filesystem that "
17271 "must be deleted by the caller when it is no longer needed (using "
17272 "B<unlink>(2)).  The usual UNIX close-behind semantics apply; the socket can "
17273 "be unlinked at any time and will be finally removed from the filesystem when "
17274 "the last reference to it is closed."
17275 msgstr ""
17276
17277 #. type: Plain text
17278 #: build/C/man7/unix.7:435
17279 msgid ""
17280 "To pass file descriptors or credentials over a B<SOCK_STREAM>, you need to "
17281 "send or receive at least one byte of nonancillary data in the same "
17282 "B<sendmsg>(2)  or B<recvmsg>(2)  call."
17283 msgstr ""
17284
17285 #. type: Plain text
17286 #: build/C/man7/unix.7:437
17287 msgid "UNIX domain stream sockets do not support the notion of out-of-band data."
17288 msgstr ""
17289
17290 #. type: Plain text
17291 #: build/C/man7/unix.7:440
17292 msgid "See B<bind>(2)."
17293 msgstr ""
17294
17295 #. type: Plain text
17296 #: build/C/man7/unix.7:445
17297 msgid "For an example of the use of B<SCM_RIGHTS> see B<cmsg>(3)."
17298 msgstr ""
17299
17300 #. type: Plain text
17301 #: build/C/man7/unix.7:454
17302 msgid ""
17303 "B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), "
17304 "B<capabilities>(7), B<credentials>(7), B<socket>(7)"
17305 msgstr ""
17306
17307 #. type: TH
17308 #: build/C/man7/x25.7:12
17309 #, no-wrap
17310 msgid "X25"
17311 msgstr ""
17312
17313 #. type: Plain text
17314 #: build/C/man7/x25.7:15
17315 msgid "x25 - ITU-T X.25 / ISO-8208 protocol interface."
17316 msgstr ""
17317
17318 #. type: Plain text
17319 #: build/C/man7/x25.7:19
17320 msgid "B<#include E<lt>linux/x25.hE<gt>>"
17321 msgstr ""
17322
17323 #. type: Plain text
17324 #: build/C/man7/x25.7:21
17325 msgid "B<x25_socket = socket(AF_X25, SOCK_SEQPACKET, 0);>"
17326 msgstr ""
17327
17328 #. type: Plain text
17329 #: build/C/man7/x25.7:30
17330 msgid ""
17331 "X25 sockets provide an interface to the X.25 packet layer protocol.  This "
17332 "allows applications to communicate over a public X.25 data network as "
17333 "standardized by International Telecommunication Union's recommendation X.25 "
17334 "(X.25 DTE-DCE mode).  X25 sockets can also be used for communication without "
17335 "an intermediate X.25 network (X.25 DTE-DTE mode) as described in ISO-8208."
17336 msgstr ""
17337
17338 #. type: Plain text
17339 #: build/C/man7/x25.7:47
17340 msgid ""
17341 "Message boundaries are preserved \\(em a B<read>(2)  from a socket will "
17342 "retrieve the same chunk of data as output with the corresponding B<write>(2)  "
17343 "to the peer socket.  When necessary, the kernel takes care of segmenting and "
17344 "reassembling long messages by means of the X.25 M-bit.  There is no "
17345 "hard-coded upper limit for the message size.  However, reassembling of a "
17346 "long message might fail if there is a temporary lack of system resources or "
17347 "when other constraints (such as socket memory or buffer size limits) become "
17348 "effective.  If that occurs, the X.25 connection will be reset."
17349 msgstr ""
17350
17351 #. type: SS
17352 #: build/C/man7/x25.7:47
17353 #, no-wrap
17354 msgid "Socket addresses"
17355 msgstr ""
17356
17357 #. type: Plain text
17358 #: build/C/man7/x25.7:54
17359 msgid ""
17360 "The B<AF_X25> socket address family uses the I<struct sockaddr_x25> for "
17361 "representing network addresses as defined in ITU-T recommendation X.121."
17362 msgstr ""
17363
17364 #. type: Plain text
17365 #: build/C/man7/x25.7:61
17366 #, no-wrap
17367 msgid ""
17368 "struct sockaddr_x25 {\n"
17369 "    sa_family_t sx25_family;    /* must be AF_X25 */\n"
17370 "    x25_address sx25_addr;      /* X.121 Address */\n"
17371 "};\n"
17372 msgstr ""
17373
17374 #. type: Plain text
17375 #: build/C/man7/x25.7:72
17376 msgid ""
17377 "I<sx25_addr> contains a char array I<x25_addr[]> to be interpreted as a "
17378 "null-terminated string.  I<sx25_addr.x25_addr[]> consists of up to 15 (not "
17379 "counting the terminating null byte) ASCII characters forming the X.121 "
17380 "address.  Only the decimal digit characters from \\(aq0\\(aq to \\(aq9\\(aq "
17381 "are allowed."
17382 msgstr ""
17383
17384 #. type: Plain text
17385 #: build/C/man7/x25.7:81
17386 msgid ""
17387 "The following X.25-specific socket options can be set by using "
17388 "B<setsockopt>(2)  and read with B<getsockopt>(2)  with the I<level> argument "
17389 "set to B<SOL_X25>."
17390 msgstr ""
17391
17392 #. type: TP
17393 #: build/C/man7/x25.7:81
17394 #, no-wrap
17395 msgid "B<X25_QBITINCL>"
17396 msgstr ""
17397
17398 #. type: Plain text
17399 #: build/C/man7/x25.7:100
17400 msgid ""
17401 "Controls whether the X.25 Q-bit (Qualified Data Bit) is accessible by the "
17402 "user.  It expects an integer argument.  If set to 0 (default), the Q-bit is "
17403 "never set for outgoing packets and the Q-bit of incoming packets is "
17404 "ignored.  If set to 1, an additional first byte is prepended to each message "
17405 "read from or written to the socket.  For data read from the socket, a 0 "
17406 "first byte indicates that the Q-bits of the corresponding incoming data "
17407 "packets were not set.  A first byte with value 1 indicates that the Q-bit of "
17408 "the corresponding incoming data packets was set.  If the first byte of the "
17409 "data written to the socket is 1 the Q-bit of the corresponding outgoing data "
17410 "packets will be set.  If the first byte is 0 the Q-bit will not be set."
17411 msgstr ""
17412
17413 #. type: Plain text
17414 #: build/C/man7/x25.7:102
17415 msgid "The AF_X25 protocol family is a new feature of Linux 2.2."
17416 msgstr ""
17417
17418 #. type: Plain text
17419 #: build/C/man7/x25.7:105
17420 msgid "Plenty, as the X.25 PLP implementation is B<CONFIG_EXPERIMENTAL>."
17421 msgstr ""
17422
17423 #. type: Plain text
17424 #: build/C/man7/x25.7:107
17425 msgid "This man page is incomplete."
17426 msgstr ""
17427
17428 #. type: Plain text
17429 #: build/C/man7/x25.7:114
17430 msgid ""
17431 "There is no dedicated application programmer's header file yet; you need to "
17432 "include the kernel header file I<E<lt>linux/x25.hE<gt>>.  "
17433 "B<CONFIG_EXPERIMENTAL> might also imply that future versions of the "
17434 "interface are not binary compatible."
17435 msgstr ""
17436
17437 #. type: Plain text
17438 #: build/C/man7/x25.7:118
17439 msgid ""
17440 "X.25 N-Reset events are not propagated to the user process yet.  Thus, if a "
17441 "reset occurred, data might be lost without notice."
17442 msgstr ""
17443
17444 #. type: Plain text
17445 #: build/C/man7/x25.7:121
17446 msgid "B<socket>(2), B<socket>(7)"
17447 msgstr ""
17448
17449 #. type: Plain text
17450 #: build/C/man7/x25.7:127
17451 msgid ""
17452 "Jonathan Simon Naylor: \\(lqThe Re-Analysis and Re-Implementation of "
17453 "X.25.\\(rq The URL is E<.UR "
17454 "ftp://ftp.pspt.fi\\:/pub\\:/ham\\:/linux\\:/ax25\\:/x25doc.tgz> E<.UE .>"
17455 msgstr ""