Debian Codegraph @

po/fr/man3/inet_net_pton.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2013-2014.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010-2014.
18 # Jean-Pierre Giraud <[email protected]>, 2024-2025.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.21.0\n"
22 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
23 "PO-Revision-Date: 2025-05-30 12:23+0200\n"
24 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "inet_net_pton"
38 msgstr "inet_net_pton"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "inet_net_pton, inet_net_ntop - Internet network number conversion"
64 msgstr "inet_net_pton, inet_net_ntop - Conversion d'adresse réseau Internet"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "LIBRARY"
71 msgstr "BIBLIOTHÈQUE"
72
73 #. type: Plain text
74 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
75 #: opensuse-leap-16-1 opensuse-tumbleweed
76 msgid "Resolver library (I<libresolv>,\\ I<-lresolv>)"
77 msgstr "Bibliothèque resolver (I<libresolv>,\\ I<-lresolv>)"
78
79 #. type: SH
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "SYNOPSIS"
84 msgstr "SYNOPSIS"
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "B<#include E<lt>arpa/inet.hE<gt>>\n"
91 msgstr "B<#include E<lt>arpa/inet.hE<gt>>\n"
92
93 #. type: Plain text
94 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
95 #: opensuse-tumbleweed
96 #, fuzzy, no-wrap
97 #| msgid ""
98 #| "B<int inet_net_pton(int >I<af>B<, const char *>I<pres>B<,>\n"
99 #| "B< void >I<netp>B<[.>I<nsize>B<], size_t >I<nsize>B<);>\n"
100 #| "B<char *inet_net_ntop(int >I<af>B<,>\n"
101 #| "B< const void >I<netp>B<[(.>I<bits>B< - CHAR_BIT + 1) / CHAR_BIT],>\n"
102 #| "B< int >I<bits>B<,>\n"
103 #| "B< char >I<pres>B<[.>I<psize>B<], size_t >I<psize>B<);>\n"
104 msgid ""
105 "B<int inet_net_pton(>size_t nsize;\n"
106 "B< int >I<af>B<, const char *>I<pres>B<,>\n"
107 "B< void >I<netp>B<[>I<nsize>B<], size_t >I<nsize>B<);>\n"
108 "B<char *inet_net_ntop(>int bits, size_t psize;\n"
109 "B< int >I<af>B<,>\n"
110 "B< const void >I<netp>B<[(>I<bits>B< - CHAR_BIT + 1) / CHAR_BIT],>\n"
111 "B< int >I<bits>B<,>\n"
112 "B< char >I<pres>B<[>I<psize>B<], size_t >I<psize>B<);>\n"
113 msgstr ""
114 "B<int inet_net_pton(int >I<af>B<, const char *>I<pres>B<,>\n"
115 "B< void >I<netp>B<[.>I<nsize>B<], size_t >I<nsize>B<);>\n"
116 "B<char *inet_net_ntop(int >I<af>B<,>\n"
117 "B< const void >I<netp>B<[(.>I<bits>B< - CHAR_BIT + 1) / CHAR_BIT],>\n"
118 "B< int >I<bits>B<,>\n"
119 "B< char >I<pres>B<[.>I<psize>B<], size_t >I<psize>B<);>\n"
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 msgid ""
125 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
126 msgstr ""
127 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
128 "B<feature_test_macros>(7)) :"
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid "B<inet_net_pton>(), B<inet_net_ntop>():"
134 msgstr "B<inet_net_pton>(), B<inet_net_ntop>() :"
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 #, no-wrap
140 msgid ""
141 " Since glibc 2.20:\n"
142 " _DEFAULT_SOURCE\n"
143 " Before glibc 2.20:\n"
144 " _BSD_SOURCE || _SVID_SOURCE\n"
145 msgstr ""
146 " Depuis la glibc 2.20 :\n"
147 " _DEFAULT_SOURCE\n"
148 " Avant la glibc 2.20 :\n"
149 " _BSD_SOURCE || _SVID_SOURCE\n"
150
151 #. type: SH
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid "DESCRIPTION"
156 msgstr "DESCRIPTION"
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "These functions convert network numbers between presentation (i.e., "
163 "printable) format and network (i.e., binary) format."
164 msgstr ""
165 "Ces fonctions convertissent les adresses de réseau entre leur format de "
166 "représentation (c-à-d. textuelle) et leur format binaire pour le réseau."
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid ""
172 "For both functions, I<af> specifies the address family for the conversion; "
173 "the only supported value is B<AF_INET>."
174 msgstr ""
175 "Dans le cas des deux fonctions, I<af> indique la famille d'adresse à "
176 "utiliser lors de la conversion. Seule la valeur B<AF_INET> est prise en "
177 "charge."
178
179 #. type: SS
180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
182 #, no-wrap
183 msgid "inet_net_pton()"
184 msgstr "inet_net_pton()"
185
186 #. type: Plain text
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 msgid ""
190 "The B<inet_net_pton>() function converts I<pres>, a null-terminated string "
191 "containing an Internet network number in presentation format to network "
192 "format. The result of the conversion, which is in network byte order, is "
193 "placed in the buffer pointed to by I<netp>. (The I<netp> argument typically "
194 "points to an I<in_addr> structure.) The I<nsize> argument specifies the "
195 "number of bytes available in I<netp>."
196 msgstr ""
197 "La fonction B<inet_net_pton>() convertit I<pres>, une chaîne terminée par un "
198 "caractère nul et contenant la représentation d'une adresse réseau vers le "
199 "format réseau. Le résultat de la conversion, dans l'ordre du réseau, est "
200 "placé dans le tampon pointé par I<netp>. (Le paramètre I<netp> pointe "
201 "typiquement vers une structure I<in_addr>.) Le paramètre I<nsize> indique le "
202 "nombre d'octets disponibles dans I<netp>."
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "On success, B<inet_net_pton>() returns the number of bits in the network "
209 "number field of the result placed in I<netp>. For a discussion of the input "
210 "presentation format and the return value, see NOTES."
211 msgstr ""
212 "En cas de réussite, B<inet_net_pton>() renvoie le nombre de bits dans le "
213 "champ de numéro de réseau du résultat placé dans I<netp>. Pour une "
214 "discussion sur le format de présentation de l’entrée et la valeur de retour, "
215 "consultez B<NOTES>."
216
217 #. type: Plain text
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 msgid ""
221 "I<Note>: the buffer pointed to by I<netp> should be zeroed out before "
222 "calling B<inet_net_pton>(), since the call writes only as many bytes as are "
223 "required for the network number (or as are explicitly specified by I<pres>), "
224 "which may be less than the number of bytes in a complete network address."
225 msgstr ""
226 "I<Remarque> : le tampon pointé par I<netp> devrait être mis à zéro avant "
227 "d’appeler B<inet_net_pton>() puisque l’appel n’écrit que le nombre d’octets "
228 "nécessaire pour le numéro de réseau (ou qu’explicitement indiqué par "
229 "I<pres>), ce qui pourrait être moins que le nombre d’octets dans une adresse "
230 "de réseau complète."
231
232 #. type: SS
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 #, no-wrap
236 msgid "inet_net_ntop()"
237 msgstr "inet_net_ntop()"
238
239 #. type: Plain text
240 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
241 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
242 msgid ""
243 "The B<inet_net_ntop>() function converts the network number in the buffer "
244 "pointed to by I<netp> to presentation format; I<*netp> is interpreted as a "
245 "value in network byte order. The I<bits> argument specifies the number of "
246 "bits in the network number in I<*netp>."
247 msgstr ""
248 "La fonction B<inet_net_ntop>() convertit le numéro de réseau dans le tampon "
249 "pointé par I<netp> au format de présentation ; I<*netp> est interprété comme "
250 "une valeur dans l’ordre d’octets du réseau. L’argument I<bits> indique le "
251 "nombre de bits dans le numéro de réseau I<*netp>."
252
253 #. type: Plain text
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 msgid ""
257 "The null-terminated presentation-format string is placed in the buffer "
258 "pointed to by I<pres>. The I<psize> argument specifies the number of bytes "
259 "available in I<pres>. The presentation string is in CIDR format: a dotted-"
260 "decimal number representing the network address, followed by a slash, and "
261 "the size of the network number in bits."
262 msgstr ""
263 "La chaîne au format de présentation terminée par NULL est placée dans le "
264 "tampon pointé par I<pres>. L’argument I<psize> indique le nombre d’octets "
265 "disponibles dans I<pres>. La chaîne de présentation est au format CIDR : "
266 "notation décimale pointée représentant l’adresse réseau, suivie par une "
267 "barre oblique et la taille du numéro de réseau en bit."
268
269 #. type: SH
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "RETURN VALUE"
274 msgstr "VALEUR RENVOYÉE"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid ""
280 "On success, B<inet_net_pton>() returns the number of bits in the network "
281 "number. On error, it returns -1, and I<errno> is set to indicate the error."
282 msgstr ""
283 "Si elle réussit, B<inet_net_pton>() renvoie le nombre de bits de l'adresse "
284 "réseau. En cas d'erreur, B<-1> est renvoyé et I<errno> est défini pour "
285 "indiquer l'erreur."
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "On success, B<inet_net_ntop>() returns I<pres>. On error, it returns NULL, "
292 "and I<errno> is set to indicate the error."
293 msgstr ""
294 "Si elle réussit, B<inet_net_ntop>() renvoie I<pres>. En cas d'erreur, elle "
295 "renvoie NULL et I<errno> est défini pour indiquer l'erreur."
296
297 #. type: SH
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "ERRORS"
302 msgstr "ERREURS"
303
304 #. type: TP
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "B<EAFNOSUPPORT>"
309 msgstr "B<EAFNOSUPPORT>"
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid "I<af> specified a value other than B<AF_INET>."
315 msgstr "I<af> indique une valeur différente de B<AF_INET>."
316
317 #. type: TP
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "B<EMSGSIZE>"
322 msgstr "B<EMSGSIZE>"
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "The size of the output buffer was insufficient."
328 msgstr "La taille du tampon de sortie est insuffisante."
329
330 #. type: TP
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "B<ENOENT>"
335 msgstr "B<ENOENT>"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid "(B<inet_net_pton>()) I<pres> was not in correct presentation format."
341 msgstr ""
342 "(B<inet_net_pton>()) I<pres> n’était pas dans un format de présentation "
343 "correct."
344
345 #. type: SH
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "STANDARDS"
350 msgstr "NORMES"
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid "None."
356 msgstr "Aucun."
357
358 #. type: SH
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "NOTES"
363 msgstr "NOTES"
364
365 #. type: SS
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid "Input presentation format for inet_net_pton()"
370 msgstr "Format de présentation en entrée pour inet_net_pton()"
371
372 #. type: Plain text
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 msgid ""
376 "The network number may be specified either as a hexadecimal value or in "
377 "dotted-decimal notation."
378 msgstr ""
379 "L'adresse réseau peut être indiquée sous forme de valeur hexadécimale ou de "
380 "notation décimale pointée."
381
382 #. If the hexadecimal string is short, the remaining nibbles are zeroed.
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "Hexadecimal values are indicated by an initial \"0x\" or \"0X\". The "
388 "hexadecimal digits populate the nibbles (half octets) of the network number "
389 "from left to right in network byte order."
390 msgstr ""
391 "Les valeurs hexadécimales sont indiquées en préfixant par \"0x\" ou \"0X\". "
392 "Les symboles hexadécimaux remplissent les nibbles (semioctets) de l'adresse "
393 "réseau de gauche à droite dans l'ordre du réseau."
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid ""
399 "In dotted-decimal notation, up to four octets are specified, as decimal "
400 "numbers separated by dots. Thus, any of the following forms are accepted:"
401 msgstr ""
402 "Dans la notation décimale pointée, jusqu'à quatre octets sont indiqués sous "
403 "la forme de nombres décimaux séparées par des points. Ainsi, n'importe "
404 "laquelle des formes suivantes est acceptée :"
405
406 #. type: Plain text
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid ""
411 "a.b.c.d\n"
412 "a.b.c\n"
413 "a.b\n"
414 "a\n"
415 msgstr ""
416 "a.b.c.d\n"
417 "a.b.c\n"
418 "a.b\n"
419 "a\n"
420
421 #. #-#-#-#-# archlinux: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
422 #. Reading other man pages, some other implementations treat
423 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
424 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
425 #. type: Plain text
426 #. #-#-#-#-# debian-trixie: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
427 #. Reading other man pages, some other implementations treat
428 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
429 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
430 #. type: Plain text
431 #. #-#-#-#-# debian-unstable: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
432 #. Reading other man pages, some other implementations treat
433 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
434 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
435 #. type: Plain text
436 #. #-#-#-#-# fedora-44: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
437 #. Reading other man pages, some other implementations treat
438 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
439 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
440 #. type: Plain text
441 #. #-#-#-#-# fedora-rawhide: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
442 #. Reading other man pages, some other implementations treat
443 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
444 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
445 #. type: Plain text
446 #. #-#-#-#-# mageia-cauldron: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
447 #. Reading other man pages, some other implementations treat
448 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
449 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
450 #. type: Plain text
451 #. #-#-#-#-# opensuse-leap-16-1: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
452 #. Reading other man pages, some other implementations treat
453 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
454 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
455 #. type: Plain text
456 #. #-#-#-#-# opensuse-tumbleweed: inet_net_pton.3.pot (PACKAGE VERSION) #-#-#-#-#
457 #. Reading other man pages, some other implementations treat
458 #. 'c' in a.b.c as a 16-bit number that populates right-most two bytes
459 #. 'b' in a.b as a 24-bit number that populates right-most three bytes
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid ""
464 "Each part is a number in the range 0 to 255 that populates one byte of the "
465 "resulting network number, going from left to right, in network-byte (big "
466 "endian) order. Where a part is omitted, the resulting byte in the network "
467 "number is zero."
468 msgstr ""
469 "Chaque partie est un nombre dans l'intervalle 0 à 255 remplissant un octet "
470 "de l'adresse réseau, de gauche à droite, dans l'ordre des octets du réseau "
471 "(gros-boutisme). Si une partie est omise, l'octet correspondant dans "
472 "l'adresse réseau vaut zéro."
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid ""
478 "For either hexadecimal or dotted-decimal format, the network number can "
479 "optionally be followed by a slash and a number in the range 0 to 32, which "
480 "specifies the size of the network number in bits."
481 msgstr ""
482 "Pour la notation hexadécimale comme la notation décimale pointée, l'adresse "
483 "réseau peut être suivie d'une barre oblique et d'un nombre compris entre 0 "
484 "et 32, définissant la taille de l'adresse réseau en bits."
485
486 #. type: SS
487 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
488 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
489 #, no-wrap
490 msgid "Return value of inet_net_pton()"
491 msgstr "Valeur de retour de inet_net_pton()"
492
493 #. type: Plain text
494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
496 msgid ""
497 "The return value of B<inet_net_pton>() is the number of bits in the network "
498 "number field. If the input presentation string terminates with a slash and "
499 "an explicit size value, then that size becomes the return value of "
500 "B<inet_net_pton>(). Otherwise, the return value, I<bits>, is inferred as "
501 "follows:"
502 msgstr ""
503 "La valeur de retour de B<inet_net_pton>() est le nombre de bits dans le "
504 "champ de numéro de réseau. Si la chaîne de présentation se termine par une "
505 "barre oblique et une valeur de taille explicite, alors cette taille devient "
506 "la valeur de retour de B<inet_net_pton>(). Sinon, la valeur de retour, "
507 "B<bits>, est supposée comme suit."
508
509 #. type: IP
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "\\[bu]"
514 msgstr "-"
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid ""
520 "If the most significant byte of the network number is greater than or equal "
521 "to 240, then I<bits> is 32."
522 msgstr ""
523 "Si l'octet de poids fort de l'adresse réseau est supérieur ou égal à 240, "
524 "alors I<bits> vaut 32."
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 msgid ""
530 "Otherwise, if the most significant byte of the network number is greater "
531 "than or equal to 224, then I<bits> is 4."
532 msgstr ""
533 "Sinon, si l'octet de poids fort de l'adresse réseau est supérieur ou égal à "
534 "224, alors I<bits> vaut 4."
535
536 #. type: Plain text
537 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
538 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
539 msgid ""
540 "Otherwise, if the most significant byte of the network number is greater "
541 "than or equal to 192, then I<bits> is 24."
542 msgstr ""
543 "Sinon, si l'octet de poids fort de l'adresse réseau est supérieur ou égal à "
544 "192, alors I<bits> vaut 24."
545
546 #. type: Plain text
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 msgid ""
550 "Otherwise, if the most significant byte of the network number is greater "
551 "than or equal to 128, then I<bits> is 16."
552 msgstr ""
553 "Sinon, si l'octet de poids fort de l'adresse réseau est supérieur ou égal à "
554 "128, alors I<bits> vaut 16."
555
556 #. type: Plain text
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 msgid "Otherwise, I<bits> is 8."
560 msgstr "Sinon I<bits> vaut 8."
561
562 #. type: Plain text
563 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
564 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
565 msgid ""
566 "If the resulting I<bits> value from the above steps is greater than or equal "
567 "to 8, but the number of octets specified in the network number exceed I<bits/"
568 "8>, then I<bits> is set to 8 times the number of octets actually specified."
569 msgstr ""
570 "Si la valeur de I<bits> résultant des étapes précédentes est au moins égale "
571 "à 8, mais que le nombre d’octets indiqué dans le numéro de réseau dépasse "
572 "I<bits/8>, alors I<bits> est défini à huit fois le nombre d’octets vraiment "
573 "indiqué."
574
575 #. type: SH
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 #, no-wrap
579 msgid "EXAMPLES"
580 msgstr "EXEMPLES"
581
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid ""
586 "The program below demonstrates the use of B<inet_net_pton>() and "
587 "B<inet_net_ntop>(). It uses B<inet_net_pton>() to convert the presentation "
588 "format network address provided in its first command-line argument to binary "
589 "form, displays the return value from B<inet_net_pton>(). It then uses "
590 "B<inet_net_ntop>() to convert the binary form back to presentation format, "
591 "and displays the resulting string."
592 msgstr ""
593 "Le programme suivant montre l’utilisation de B<inet_net_pton>() et "
594 "B<inet_net_ntop>(). Il utilise B<inet_net_pton>() pour convertir une adresse "
595 "réseau au format de présentation fourni en premier argument de ligne de "
596 "commande vers sa forme binaire et affiche la valeur renvoyée par "
597 "B<inet_net_pton>(). Il utilise ensuite B<inet_net_ntop>() pour reconvertir "
598 "la forme binaire au format de présentation, et affiche la chaîne résultante."
599
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 msgid ""
604 "In order to demonstrate that B<inet_net_pton>() may not write to all bytes "
605 "of its I<netp> argument, the program allows an optional second command-line "
606 "argument, a number used to initialize the buffer before B<inet_net_pton>() "
607 "is called. As its final line of output, the program displays all of the "
608 "bytes of the buffer returned by B<inet_net_pton>() allowing the user to see "
609 "which bytes have not been touched by B<inet_net_pton>()."
610 msgstr ""
611 "De façon à démontrer que B<inet_net_pton>() peut ne pas écrire sur tous les "
612 "octets de son argument I<netp>, le programme permet un deuxième argument de "
613 "ligne de commande : un nombre utilisé pour initialiser le tampon avant "
614 "d’appeler B<inet_net_pton>(). Comme en dernière ligne de sa sortie, le "
615 "programme affiche tous les octets du tampon renvoyé par B<inet_net_pton>(), "
616 "cela permet à l’utilisateur de voir les octets qui n’ont pas été modifiés "
617 "par B<inet_net_pton>()."
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 msgid ""
623 "An example run, showing that B<inet_net_pton>() infers the number of bits "
624 "in the network number:"
625 msgstr ""
626 "Un exemple où B<inet_net_pton>() déduit le nombre de bits de l'adresse "
627 "réseau :"
628
629 #. type: Plain text
630 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
631 #: opensuse-tumbleweed
632 #, fuzzy, no-wrap
633 #| msgid ""
634 #| "$ B<./a.out 193.168>\n"
635 #| "inet_net_pton() returned: 24\n"
636 #| "inet_net_ntop() yielded: 193.168.0/24\n"
637 #| "Raw address: c1a80000\n"
638 msgid ""
639 "$B< ./a.out 193.168>;\n"
640 "inet_net_pton() returned: 24\n"
641 "inet_net_ntop() yielded: 193.168.0/24\n"
642 "Raw address: c1a80000\n"
643 msgstr ""
644 "$ B<./a.out 193.168>\n"
645 "inet_net_pton() a renvoyé : 24\n"
646 "inet_net_ntop() a produit : 193.168.0/24\n"
647 "Adresse brute : c1a80000\n"
648
649 #. type: Plain text
650 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
651 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
652 msgid ""
653 "Demonstrate that B<inet_net_pton>() does not zero out unused bytes in its "
654 "result buffer:"
655 msgstr ""
656 "Démontrer que B<inet_net_pton>() ne met pas à zéro les octets inutilisés du "
657 "tampon de résultat :"
658
659 #. type: Plain text
660 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
661 #: opensuse-tumbleweed
662 #, fuzzy, no-wrap
663 #| msgid ""
664 #| "$ B<./a.out 193.168 0xffffffff>\n"
665 #| "inet_net_pton() returned: 24\n"
666 #| "inet_net_ntop() yielded: 193.168.0/24\n"
667 #| "Raw address: c1a800ff\n"
668 msgid ""
669 "$B< ./a.out 193.168 0xffffffff>;\n"
670 "inet_net_pton() returned: 24\n"
671 "inet_net_ntop() yielded: 193.168.0/24\n"
672 "Raw address: c1a800ff\n"
673 msgstr ""
674 "$ B<./a.out 193.168 0xffffffff>\n"
675 "inet_net_pton() a renvoyé : 24\n"
676 "inet_net_ntop() a produit : 193.168.0/24\n"
677 "Adresse brute : c1a800ff\n"
678
679 #. type: Plain text
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 msgid ""
683 "Demonstrate that B<inet_net_pton>() will widen the inferred size of the "
684 "network number, if the supplied number of bytes in the presentation string "
685 "exceeds the inferred value:"
686 msgstr ""
687 "Démontrer que B<inet_net_pton>() élargira la taille supposée du numéro de "
688 "réseau si le nombre d’octets fournis dans la chaîne de présentation dépasse "
689 "la valeur supposée :"
690
691 #. type: Plain text
692 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
693 #: opensuse-tumbleweed
694 #, fuzzy, no-wrap
695 #| msgid ""
696 #| "$ B<./a.out 193.168.1.128>\n"
697 #| "inet_net_pton() returned: 32\n"
698 #| "inet_net_ntop() yielded: 193.168.1.128/32\n"
699 #| "Raw address: c1a80180\n"
700 msgid ""
701 "$B< ./a.out 193.168.1.128>;\n"
702 "inet_net_pton() returned: 32\n"
703 "inet_net_ntop() yielded: 193.168.1.128/32\n"
704 "Raw address: c1a80180\n"
705 msgstr ""
706 "$ B<./a.out 193.168.1.128>\n"
707 "inet_net_pton() a renvoyé : 32\n"
708 "inet_net_ntop() a produit : 193.168.1.128/32\n"
709 "Adresse brute : c1a80180\n"
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 msgid ""
715 "Explicitly specifying the size of the network number overrides any inference "
716 "about its size (but any extra bytes that are explicitly specified will still "
717 "be used by B<inet_net_pton>(): to populate the result buffer):"
718 msgstr ""
719 "Définir explicitement la taille de l'adresse réseau outrepasse toute "
720 "déduction au sujet de sa taille (mais tous les octets en trop explicitement "
721 "définis seront tout de même utilisés par B<inet_net_pton>() pour remplir le "
722 "tampon de résultat)."
723
724 #. type: Plain text
725 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
726 #: opensuse-tumbleweed
727 #, fuzzy, no-wrap
728 #| msgid ""
729 #| "$ B<./a.out 193.168.1.128/24>\n"
730 #| "inet_net_pton() returned: 24\n"
731 #| "inet_net_ntop() yielded: 193.168.1/24\n"
732 #| "Raw address: c1a80180\n"
733 msgid ""
734 "$B< ./a.out 193.168.1.128/24>;\n"
735 "inet_net_pton() returned: 24\n"
736 "inet_net_ntop() yielded: 193.168.1/24\n"
737 "Raw address: c1a80180\n"
738 msgstr ""
739 "$ B<./a.out 193.168.1.128/24>\n"
740 "inet_net_pton() a renvoyé : 24\n"
741 "inet_net_ntop() a produit : 193.168.1/24\n"
742 "Adresse brute : c1a80180\n"
743
744 #. type: SS
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 #, no-wrap
748 msgid "Program source"
749 msgstr "Source du programme"
750
751 #. type: Plain text
752 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
753 #: opensuse-tumbleweed
754 #, fuzzy, no-wrap
755 #| msgid ""
756 #| "/* Link with \"-lresolv\" */\n"
757 #| "\\&\n"
758 #| "#include E<lt>arpa/inet.hE<gt>\n"
759 #| "#include E<lt>stdio.hE<gt>\n"
760 #| "#include E<lt>stdlib.hE<gt>\n"
761 #| "\\&\n"
762 #| "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
763 #| " } while (0)\n"
764 #| "\\&\n"
765 #| "int\n"
766 #| "main(int argc, char *argv[])\n"
767 #| "{\n"
768 #| " char buf[100];\n"
769 #| " struct in_addr addr;\n"
770 #| " int bits;\n"
771 #| "\\&\n"
772 #| " if (argc E<lt> 2) {\n"
773 #| " fprintf(stderr,\n"
774 #| " \"Usage: %s presentation-form [addr-init-value]\\[rs]n\",\n"
775 #| " argv[0]);\n"
776 #| " exit(EXIT_FAILURE);\n"
777 #| " }\n"
778 #| "\\&\n"
779 #| " /* If argv[2] is supplied (a numeric value), use it to initialize\n"
780 #| " the output buffer given to inet_net_pton(), so that we can see\n"
781 #| " that inet_net_pton() initializes only those bytes needed for\n"
782 #| " the network number. If argv[2] is not supplied, then initialize\n"
783 #| " the buffer to zero (as is recommended practice). */\n"
784 #| "\\&\n"
785 #| " addr.s_addr = (argc E<gt> 2) ? strtod(argv[2], NULL) : 0;\n"
786 #| "\\&\n"
787 #| " /* Convert presentation network number in argv[1] to binary. */\n"
788 #| "\\&\n"
789 #| " bits = inet_net_pton(AF_INET, argv[1], &addr, sizeof(addr));\n"
790 #| " if (bits == -1)\n"
791 #| " errExit(\"inet_net_ntop\");\n"
792 #| "\\&\n"
793 #| " printf(\"inet_net_pton() returned: %d\\[rs]n\", bits);\n"
794 #| "\\&\n"
795 #| " /* Convert binary format back to presentation, using \\[aq]bits\\[aq]\n"
796 #| " returned by inet_net_pton(). */\n"
797 #| "\\&\n"
798 #| " if (inet_net_ntop(AF_INET, &addr, bits, buf, sizeof(buf)) == NULL)\n"
799 #| " errExit(\"inet_net_ntop\");\n"
800 #| "\\&\n"
801 #| " printf(\"inet_net_ntop() yielded: %s\\[rs]n\", buf);\n"
802 #| "\\&\n"
803 #| " /* Display \\[aq]addr\\[aq] in raw form (in network byte order), so we can\n"
804 #| " see bytes not displayed by inet_net_ntop(); some of those bytes\n"
805 #| " may not have been touched by inet_net_ntop(), and so will still\n"
806 #| " have any initial value that was specified in argv[2]. */\n"
807 #| "\\&\n"
808 #| " printf(\"Raw address: %x\\[rs]n\", htonl(addr.s_addr));\n"
809 #| "\\&\n"
810 #| " exit(EXIT_SUCCESS);\n"
811 #| "}\n"
812 msgid ""
813 "/* Link with \"-lresolv\" */\n"
814 "\\&\n"
815 "#include E<lt>arpa/inet.hE<gt>\n"
816 "#include E<lt>err.hE<gt>\n"
817 "#include E<lt>stdio.hE<gt>\n"
818 "#include E<lt>stdlib.hE<gt>\n"
819 "\\&\n"
820 "int\n"
821 "main(int argc, char *argv[])\n"
822 "{\n"
823 " char buf[100];\n"
824 " struct in_addr addr;\n"
825 " int bits;\n"
826 "\\&\n"
827 " if (argc E<lt> 2) {\n"
828 " fprintf(stderr,\n"
829 " \"Usage: %s presentation-form [addr-init-value]\\[rs]n\",\n"
830 " argv[0]);\n"
831 " exit(EXIT_FAILURE);\n"
832 " }\n"
833 "\\&\n"
834 " /* If argv[2] is supplied (a numeric value), use it to initialize\n"
835 " the output buffer given to inet_net_pton(), so that we can see\n"
836 " that inet_net_pton() initializes only those bytes needed for\n"
837 " the network number. If argv[2] is not supplied, then initialize\n"
838 " the buffer to zero (as is recommended practice). */\n"
839 "\\&\n"
840 " addr.s_addr = (argc E<gt> 2) ? strtod(argv[2], NULL) : 0;\n"
841 "\\&\n"
842 " /* Convert presentation network number in argv[1] to binary. */\n"
843 "\\&\n"
844 " bits = inet_net_pton(AF_INET, argv[1], &addr, sizeof(addr));\n"
845 " if (bits == -1)\n"
846 " err(EXIT_FAILURE, \"inet_net_ntop\");\n"
847 "\\&\n"
848 " printf(\"inet_net_pton() returned: %d\\[rs]n\", bits);\n"
849 "\\&\n"
850 " /* Convert binary format back to presentation, using \\[aq]bits\\[aq]\n"
851 " returned by inet_net_pton(). */\n"
852 "\\&\n"
853 " if (inet_net_ntop(AF_INET, &addr, bits, buf, sizeof(buf)) == NULL)\n"
854 " err(EXIT_FAILURE, \"inet_net_ntop\");\n"
855 "\\&\n"
856 " printf(\"inet_net_ntop() yielded: %s\\[rs]n\", buf);\n"
857 "\\&\n"
858 " /* Display \\[aq]addr\\[aq] in raw form (in network byte order), so we can\n"
859 " see bytes not displayed by inet_net_ntop(); some of those bytes\n"
860 " may not have been touched by inet_net_ntop(), and so will still\n"
861 " have any initial value that was specified in argv[2]. */\n"
862 "\\&\n"
863 " printf(\"Raw address: %x\\[rs]n\", htonl(addr.s_addr));\n"
864 "\\&\n"
865 " exit(EXIT_SUCCESS);\n"
866 "}\n"
867 msgstr ""
868 "/* Effectuer l'édition des liens avec \"-lresolv\" */\n"
869 "\\&\n"
870 "#include E<lt>arpa/inet.hE<gt>\n"
871 "#include E<lt>stdio.hE<gt>\n"
872 "#include E<lt>stdlib.hE<gt>\n"
873 "\\&\n"
874 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
875 " } while (0)\n"
876 "\\&\n"
877 "int\n"
878 "main(int argc, char *argv[])\n"
879 "{\n"
880 " char buf[100];\n"
881 " struct in_addr addr;\n"
882 " int bits;\n"
883 "\\&\n"
884 " if (argc E<lt> 2) {\n"
885 " fprintf(stderr,\n"
886 " \"Utilisation : %s forme-présentation [val-adr-init]\\[rs]n\",\n"
887 " argv[0]);\n"
888 " exit(EXIT_FAILURE);\n"
889 " }\n"
890 "\\&\n"
891 " /* Si argv[2] est fourni (une valeur numérique), l'utiliser pour\n"
892 " initialiser le tampon de sortie fourni à inet_net_pton(), afin\n"
893 " de montrer que inet_net_pton() n'initialise que les octets\n"
894 " nécessaires pour stocker l'adresse réseau.\n"
895 " Si argv[2] n'est pas fourni, alors initialiser le tampon à zéro\n"
896 " (ce qui est une bonne pratique). */\n"
897 "\\&\n"
898 " addr.s_addr = (argc E<gt> 2) ? strtod(argv[2], NULL) : 0;\n"
899 "\\&\n"
900 " /* Convertir le numéro de réseau sous forme de présentation\n"
901 " argv[1] sous forme binaire. */\n"
902 "\\&\n"
903 " bits = inet_net_pton(AF_INET, argv[1], &addr, sizeof(addr));\n"
904 " if (bits == -1)\n"
905 " errExit(\"inet_net_ntop\");\n"
906 "\\&\n"
907 " printf(\"inet_net_pton() a renvoyé : %d\\[rs]n\", bits);\n"
908 "\\&\n"
909 " /* Reconvertir de la forme binaire au format de présentation, en\n"
910 " utilisant « bits » renvoyé par inet_net_pton(). */\n"
911 "\\&\n"
912 " if (inet_net_ntop(AF_INET, &addr, bits, buf, sizeof(buf)) == NULL)\n"
913 " errExit(\"inet_net_ntop\");\n"
914 "\\&\n"
915 " printf(\"inet_net_ntop() a produit : %s\\[rs]n\", buf);\n"
916 "\\&\n"
917 " /* Afficher « aqaddr » sous forme brute (en ordre d’octets du\n"
918 " réseau), pour permettre de voir les octets non affichés par\n"
919 " inet_net_ntop() ; certains de ces octets pourraient ne pas\n"
920 " avoir été modifiés par inet_net_ntop(), et avoir toujours la\n"
921 " valeur initiale qui était indiquée argv[2]. */\n"
922 "\\&\n"
923 " printf(\"Adresse brute : %x\\[rs]n\", htonl(addr.s_addr));\n"
924 "\\&\n"
925 " exit(EXIT_SUCCESS);\n"
926 "}\n"
927
928 #. SRC END
929 #. type: SH
930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
932 #, no-wrap
933 msgid "SEE ALSO"
934 msgstr "VOIR AUSSI"
935
936 #. type: Plain text
937 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
938 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
939 msgid "B<inet>(3), B<networks>(5)"
940 msgstr "B<inet>(3), B<networks>(5)"
941
942 #. type: TH
943 #: debian-trixie
944 #, no-wrap
945 msgid "2024-06-15"
946 msgstr "15 juin 2024"
947
948 #. type: TH
949 #: debian-trixie
950 #, no-wrap
951 msgid "Linux man-pages 6.9.1"
952 msgstr "Pages du manuel de Linux 6.9.1"
953
954 #. type: Plain text
955 #: debian-trixie
956 msgid "Resolver library (I<libresolv>, I<-lresolv>)"
957 msgstr "Bibliothèque resolver (I<libresolv>, I<-lresolv>)"
958
959 #. type: Plain text
960 #: debian-trixie fedora-44 fedora-rawhide
961 #, no-wrap
962 msgid ""
963 "B<int inet_net_pton(int >I<af>B<, const char *>I<pres>B<,>\n"
964 "B< void >I<netp>B<[.>I<nsize>B<], size_t >I<nsize>B<);>\n"
965 "B<char *inet_net_ntop(int >I<af>B<,>\n"
966 "B< const void >I<netp>B<[(.>I<bits>B< - CHAR_BIT + 1) / CHAR_BIT],>\n"
967 "B< int >I<bits>B<,>\n"
968 "B< char >I<pres>B<[.>I<psize>B<], size_t >I<psize>B<);>\n"
969 msgstr ""
970 "B<int inet_net_pton(int >I<af>B<, const char *>I<pres>B<,>\n"
971 "B< void >I<netp>B<[.>I<nsize>B<], size_t >I<nsize>B<);>\n"
972 "B<char *inet_net_ntop(int >I<af>B<,>\n"
973 "B< const void >I<netp>B<[(.>I<bits>B< - CHAR_BIT + 1) / CHAR_BIT],>\n"
974 "B< int >I<bits>B<,>\n"
975 "B< char >I<pres>B<[.>I<psize>B<], size_t >I<psize>B<);>\n"
976
977 #. type: Plain text
978 #: debian-trixie fedora-44 fedora-rawhide
979 #, no-wrap
980 msgid ""
981 "$ B<./a.out 193.168>\n"
982 "inet_net_pton() returned: 24\n"
983 "inet_net_ntop() yielded: 193.168.0/24\n"
984 "Raw address: c1a80000\n"
985 msgstr ""
986 "$ B<./a.out 193.168>\n"
987 "inet_net_pton() a renvoyé : 24\n"
988 "inet_net_ntop() a produit : 193.168.0/24\n"
989 "Adresse brute : c1a80000\n"
990
991 #. type: Plain text
992 #: debian-trixie fedora-44 fedora-rawhide
993 #, no-wrap
994 msgid ""
995 "$ B<./a.out 193.168 0xffffffff>\n"
996 "inet_net_pton() returned: 24\n"
997 "inet_net_ntop() yielded: 193.168.0/24\n"
998 "Raw address: c1a800ff\n"
999 msgstr ""
1000 "$ B<./a.out 193.168 0xffffffff>\n"
1001 "inet_net_pton() a renvoyé : 24\n"
1002 "inet_net_ntop() a produit : 193.168.0/24\n"
1003 "Adresse brute : c1a800ff\n"
1004
1005 #. type: Plain text
1006 #: debian-trixie fedora-44 fedora-rawhide
1007 #, no-wrap
1008 msgid ""
1009 "$ B<./a.out 193.168.1.128>\n"
1010 "inet_net_pton() returned: 32\n"
1011 "inet_net_ntop() yielded: 193.168.1.128/32\n"
1012 "Raw address: c1a80180\n"
1013 msgstr ""
1014 "$ B<./a.out 193.168.1.128>\n"
1015 "inet_net_pton() a renvoyé : 32\n"
1016 "inet_net_ntop() a produit : 193.168.1.128/32\n"
1017 "Adresse brute : c1a80180\n"
1018
1019 #. type: Plain text
1020 #: debian-trixie fedora-44 fedora-rawhide
1021 #, no-wrap
1022 msgid ""
1023 "$ B<./a.out 193.168.1.128/24>\n"
1024 "inet_net_pton() returned: 24\n"
1025 "inet_net_ntop() yielded: 193.168.1/24\n"
1026 "Raw address: c1a80180\n"
1027 msgstr ""
1028 "$ B<./a.out 193.168.1.128/24>\n"
1029 "inet_net_pton() a renvoyé : 24\n"
1030 "inet_net_ntop() a produit : 193.168.1/24\n"
1031 "Adresse brute : c1a80180\n"
1032
1033 #. type: Plain text
1034 #: debian-trixie fedora-44 fedora-rawhide
1035 #, no-wrap
1036 msgid ""
1037 "/* Link with \"-lresolv\" */\n"
1038 "\\&\n"
1039 "#include E<lt>arpa/inet.hE<gt>\n"
1040 "#include E<lt>stdio.hE<gt>\n"
1041 "#include E<lt>stdlib.hE<gt>\n"
1042 "\\&\n"
1043 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
1044 " } while (0)\n"
1045 "\\&\n"
1046 "int\n"
1047 "main(int argc, char *argv[])\n"
1048 "{\n"
1049 " char buf[100];\n"
1050 " struct in_addr addr;\n"
1051 " int bits;\n"
1052 "\\&\n"
1053 " if (argc E<lt> 2) {\n"
1054 " fprintf(stderr,\n"
1055 " \"Usage: %s presentation-form [addr-init-value]\\[rs]n\",\n"
1056 " argv[0]);\n"
1057 " exit(EXIT_FAILURE);\n"
1058 " }\n"
1059 "\\&\n"
1060 " /* If argv[2] is supplied (a numeric value), use it to initialize\n"
1061 " the output buffer given to inet_net_pton(), so that we can see\n"
1062 " that inet_net_pton() initializes only those bytes needed for\n"
1063 " the network number. If argv[2] is not supplied, then initialize\n"
1064 " the buffer to zero (as is recommended practice). */\n"
1065 "\\&\n"
1066 " addr.s_addr = (argc E<gt> 2) ? strtod(argv[2], NULL) : 0;\n"
1067 "\\&\n"
1068 " /* Convert presentation network number in argv[1] to binary. */\n"
1069 "\\&\n"
1070 " bits = inet_net_pton(AF_INET, argv[1], &addr, sizeof(addr));\n"
1071 " if (bits == -1)\n"
1072 " errExit(\"inet_net_ntop\");\n"
1073 "\\&\n"
1074 " printf(\"inet_net_pton() returned: %d\\[rs]n\", bits);\n"
1075 "\\&\n"
1076 " /* Convert binary format back to presentation, using \\[aq]bits\\[aq]\n"
1077 " returned by inet_net_pton(). */\n"
1078 "\\&\n"
1079 " if (inet_net_ntop(AF_INET, &addr, bits, buf, sizeof(buf)) == NULL)\n"
1080 " errExit(\"inet_net_ntop\");\n"
1081 "\\&\n"
1082 " printf(\"inet_net_ntop() yielded: %s\\[rs]n\", buf);\n"
1083 "\\&\n"
1084 " /* Display \\[aq]addr\\[aq] in raw form (in network byte order), so we can\n"
1085 " see bytes not displayed by inet_net_ntop(); some of those bytes\n"
1086 " may not have been touched by inet_net_ntop(), and so will still\n"
1087 " have any initial value that was specified in argv[2]. */\n"
1088 "\\&\n"
1089 " printf(\"Raw address: %x\\[rs]n\", htonl(addr.s_addr));\n"
1090 "\\&\n"
1091 " exit(EXIT_SUCCESS);\n"
1092 "}\n"
1093 msgstr ""
1094 "/* Effectuer l'édition des liens avec \"-lresolv\" */\n"
1095 "\\&\n"
1096 "#include E<lt>arpa/inet.hE<gt>\n"
1097 "#include E<lt>stdio.hE<gt>\n"
1098 "#include E<lt>stdlib.hE<gt>\n"
1099 "\\&\n"
1100 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
1101 " } while (0)\n"
1102 "\\&\n"
1103 "int\n"
1104 "main(int argc, char *argv[])\n"
1105 "{\n"
1106 " char buf[100];\n"
1107 " struct in_addr addr;\n"
1108 " int bits;\n"
1109 "\\&\n"
1110 " if (argc E<lt> 2) {\n"
1111 " fprintf(stderr,\n"
1112 " \"Utilisation : %s forme-présentation [val-adr-init]\\[rs]n\",\n"
1113 " argv[0]);\n"
1114 " exit(EXIT_FAILURE);\n"
1115 " }\n"
1116 "\\&\n"
1117 " /* Si argv[2] est fourni (une valeur numérique), l'utiliser pour\n"
1118 " initialiser le tampon de sortie fourni à inet_net_pton(), afin\n"
1119 " de montrer que inet_net_pton() n'initialise que les octets\n"
1120 " nécessaires pour stocker l'adresse réseau.\n"
1121 " Si argv[2] n'est pas fourni, alors initialiser le tampon à zéro\n"
1122 " (ce qui est une bonne pratique). */\n"
1123 "\\&\n"
1124 " addr.s_addr = (argc E<gt> 2) ? strtod(argv[2], NULL) : 0;\n"
1125 "\\&\n"
1126 " /* Convertir le numéro de réseau sous forme de présentation\n"
1127 " argv[1] sous forme binaire. */\n"
1128 "\\&\n"
1129 " bits = inet_net_pton(AF_INET, argv[1], &addr, sizeof(addr));\n"
1130 " if (bits == -1)\n"
1131 " errExit(\"inet_net_ntop\");\n"
1132 "\\&\n"
1133 " printf(\"inet_net_pton() a renvoyé : %d\\[rs]n\", bits);\n"
1134 "\\&\n"
1135 " /* Reconvertir de la forme binaire au format de présentation, en\n"
1136 " utilisant « bits » renvoyé par inet_net_pton(). */\n"
1137 "\\&\n"
1138 " if (inet_net_ntop(AF_INET, &addr, bits, buf, sizeof(buf)) == NULL)\n"
1139 " errExit(\"inet_net_ntop\");\n"
1140 "\\&\n"
1141 " printf(\"inet_net_ntop() a produit : %s\\[rs]n\", buf);\n"
1142 "\\&\n"
1143 " /* Afficher « aqaddr » sous forme brute (en ordre d’octets du\n"
1144 " réseau), pour permettre de voir les octets non affichés par\n"
1145 " inet_net_ntop() ; certains de ces octets pourraient ne pas\n"
1146 " avoir été modifiés par inet_net_ntop(), et avoir toujours la\n"
1147 " valeur initiale qui était indiquée argv[2]. */\n"
1148 "\\&\n"
1149 " printf(\"Adresse brute : %x\\[rs]n\", htonl(addr.s_addr));\n"
1150 "\\&\n"
1151 " exit(EXIT_SUCCESS);\n"
1152 "}\n"
1153
1154 #. type: TH
1155 #: fedora-44 fedora-rawhide
1156 #, no-wrap
1157 msgid "2024-07-23"
1158 msgstr "23 juillet 2024"
1159
1160 #. type: TH
1161 #: fedora-44 fedora-rawhide
1162 #, no-wrap
1163 msgid "Linux man-pages 6.13"
1164 msgstr "Pages du manuel de Linux 6.13"
1165
1166 #. type: TH
1167 #: mageia-cauldron
1168 #, no-wrap
1169 msgid "Linux man-pages 6.17"
1170 msgstr "Pages du manuel de Linux 6.17"
1171
1172 #. type: TH
1173 #: opensuse-leap-16-1 opensuse-tumbleweed
1174 #, no-wrap
1175 msgid "Linux man-pages (unreleased)"
1176 msgstr "Pages du manuel de Linux (non publiées)"