Debian Codegraph @

po/ar/man3/getifaddrs.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:25+0200\n"
9 "PO-Revision-Date: 2026-06-01 18:48+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron
23 #, no-wrap
24 msgid "getifaddrs"
25 msgstr "getifaddrs"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr "8 فبراير 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "صفحات دليل لينكس 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron
42 #, no-wrap
43 msgid "NAME"
44 msgstr "الاسم"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron
49 msgid "getifaddrs, freeifaddrs - get interface addresses"
50 msgstr "getifaddrs, freeifaddrs - الحصول على عناوين الواجهات"
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr "المكتبة"
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr "موجز"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron
74 #, no-wrap
75 msgid ""
76 "B<#include E<lt>sys/types.hE<gt>>\n"
77 "B<#include E<lt>ifaddrs.hE<gt>>\n"
78 msgstr ""
79 "B<#include E<lt>sys/types.hE<gt>>\n"
80 "B<#include E<lt>ifaddrs.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron
85 #, no-wrap
86 msgid ""
87 "B<int getifaddrs(struct ifaddrs **>I<ifap>B<);>\n"
88 "B<void freeifaddrs(struct ifaddrs *>I<ifa>B<);>\n"
89 msgstr ""
90 "B<int getifaddrs(struct ifaddrs **>I<ifap>B<);>\n"
91 "B<void freeifaddrs(struct ifaddrs *>I<ifa>B<);>\n"
92
93 #. type: SH
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron
96 #, no-wrap
97 msgid "DESCRIPTION"
98 msgstr "الوصف"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron
103 msgid ""
104 "The B<getifaddrs>() function creates a linked list of structures describing "
105 "the network interfaces of the local system, and stores the address of the "
106 "first item of the list in I<*ifap>. The list consists of I<ifaddrs> "
107 "structures, defined as follows:"
108 msgstr ""
109 "تنشئ الدالة B<getifaddrs>() قائمة مترابطة من البنى تصف واجهات الشبكة للنظام "
110 "المحلي، وتخزن عنوان أول عنصر من القائمة في I<*ifap>. تتكون القائمة من بنى "
111 "I<ifaddrs>، المُعرَّفة كما يلي:"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron
116 #, no-wrap
117 msgid ""
118 "struct ifaddrs {\n"
119 " struct ifaddrs *ifa_next; /* Next item in list */\n"
120 " char *ifa_name; /* Name of interface */\n"
121 " unsigned int ifa_flags; /* Flags from SIOCGIFFLAGS */\n"
122 " struct sockaddr *ifa_addr; /* Address of interface */\n"
123 " struct sockaddr *ifa_netmask; /* Netmask of interface */\n"
124 " union {\n"
125 " struct sockaddr *ifu_broadaddr;\n"
126 " /* Broadcast address of interface */\n"
127 " struct sockaddr *ifu_dstaddr;\n"
128 " /* Point-to-point destination address */\n"
129 " } ifa_ifu;\n"
130 "#define ifa_broadaddr ifa_ifu.ifu_broadaddr\n"
131 "#define ifa_dstaddr ifa_ifu.ifu_dstaddr\n"
132 " void *ifa_data; /* Address-specific data */\n"
133 "};\n"
134 msgstr ""
135 "struct ifaddrs {\n"
136 " struct ifaddrs *ifa_next; /* العنصر التالي في القائمة */\n"
137 " char *ifa_name; /* اسم الواجهة */\n"
138 " unsigned int ifa_flags; /* الأعلام القادمة من SIOCGIFFLAGS */\n"
139 " struct sockaddr *ifa_addr; /* عنوان الواجهة */\n"
140 " struct sockaddr *ifa_netmask; /* قناع الشبكة (netmask) للواجهة */\n"
141 " union {\n"
142 " struct sockaddr *ifu_broadaddr;\n"
143 " /* عنوان البث (broadcast) للواجهة */\n"
144 " struct sockaddr *ifu_dstaddr;\n"
145 " /* عنوان الوجهة لنقطة إلى نقطة (point-to-point) */\n"
146 " } ifa_ifu;\n"
147 "#define ifa_broadaddr ifa_ifu.ifu_broadaddr\n"
148 "#define ifa_dstaddr ifa_ifu.ifu_dstaddr\n"
149 " void *ifa_data; /* بيانات خاصة بالعنوان */\n"
150 "};\n"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron
155 msgid ""
156 "The I<ifa_next> field contains a pointer to the next structure on the list, "
157 "or NULL if this is the last item of the list."
158 msgstr ""
159 "يحتوي الحقل I<ifa_next> على مؤشر إلى البنية التالية في القائمة، أو NULL إذا "
160 "كان هذا هو العنصر الأخير في القائمة."
161
162 #. The constant
163 #. .B IF NAMESIZE
164 #. indicates the maximum length of this field.
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron
168 msgid "The I<ifa_name> points to the null-terminated interface name."
169 msgstr "يشير I<ifa_name> إلى اسم الواجهة المنتهي بقيمة خالية."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron
174 msgid ""
175 "The I<ifa_flags> field contains the interface flags, as returned by the "
176 "B<SIOCGIFFLAGS> B<ioctl>(2) operation (see B<netdevice>(7) for a list of "
177 "these flags)."
178 msgstr ""
179 "يحتوي الحقل I<ifa_flags> على أعلام الواجهة، كما تُرجعها عملية B<SIOCGIFFLAGS> "
180 "B<ioctl>(2) (انظر B<netdevice>(7) للحصول على قائمة بهذه الأعلام)."
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron
185 msgid ""
186 "The I<ifa_addr> field points to a structure containing the interface "
187 "address. (The I<sa_family> subfield should be consulted to determine the "
188 "format of the address structure.) This field may contain a null pointer."
189 msgstr ""
190 "يشير الحقل I<ifa_addr> إلى بنية تحتوي على عنوان الواجهة. (يجب الرجوع إلى "
191 "الحقل الفرعي I<sa_family> لتحديد تنسيق بنية العنوان.) قد يحتوي هذا الحقل على "
192 "مؤشر فارغ."
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron
197 msgid ""
198 "The I<ifa_netmask> field points to a structure containing the netmask "
199 "associated with I<ifa_addr>, if applicable for the address family. This "
200 "field may contain a null pointer."
201 msgstr ""
202 "يشير الحقل I<ifa_netmask> إلى بنية تحتوي على قناع الشبكة المرتبط بـ "
203 "I<ifa_addr>، إذا كان ذلك مناسبًا لعائلة العنوان. قد يحتوي هذا الحقل على مؤشر "
204 "فارغ."
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron
209 msgid ""
210 "Depending on whether the bit B<IFF_BROADCAST> or B<IFF_POINTOPOINT> is set "
211 "in I<ifa_flags> (only one can be set at a time), either I<ifa_broadaddr> "
212 "will contain the broadcast address associated with I<ifa_addr> (if "
213 "applicable for the address family) or I<ifa_dstaddr> will contain the "
214 "destination address of the point-to-point interface."
215 msgstr ""
216 "اعتمادًا على ما إذا كان البت B<IFF_BROADCAST> أو B<IFF_POINTOPOINT> مضبوطًا في "
217 "I<ifa_flags> (يمكن ضبط واحد فقط في كل مرة)، إما أن يحتوي I<ifa_broadaddr> "
218 "على عنوان البث المرتبط بـ I<ifa_addr> (إذا كان مناسبًا لعائلة العنوان) أو "
219 "يحتوي I<ifa_dstaddr> على عنوان الوجهة للواجهة من نقطة إلى نقطة."
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron
224 msgid ""
225 "The I<ifa_data> field points to a buffer containing address-family-specific "
226 "data; this field may be NULL if there is no such data for this interface."
227 msgstr ""
228 "يشير الحقل I<ifa_data> إلى مخزن مؤقت يحتوي على بيانات خاصة بعائلة العنوان؛ "
229 "قد يكون هذا الحقل NULL إذا لم توجد مثل هذه البيانات لهذه الواجهة."
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron
234 msgid ""
235 "The data returned by B<getifaddrs>() is dynamically allocated and should be "
236 "freed using B<freeifaddrs>() when no longer needed."
237 msgstr ""
238 "البيانات التي تُرجعها B<getifaddrs>() مُخصصة ديناميكيًا ويجب تحريرها باستخدام "
239 "B<freeifaddrs>() عند عدم الحاجة إليها."
240
241 #. type: SH
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron
244 #, no-wrap
245 msgid "RETURN VALUE"
246 msgstr "قيمة الإرجاع"
247
248 #. type: Plain text
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron
251 msgid ""
252 "On success, B<getifaddrs>() returns zero; on error, -1 is returned, and "
253 "I<errno> is set to indicate the error."
254 msgstr ""
255 "عند النجاح، تُرجع B<getifaddrs>() صفرًا؛ عند الخطأ، تُرجع -1، ويُضبط I<errno> "
256 "للإشارة إلى الخطأ."
257
258 #. type: SH
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron
261 #, no-wrap
262 msgid "ERRORS"
263 msgstr "الأخطاء"
264
265 #. type: Plain text
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron
268 msgid ""
269 "B<getifaddrs>() may fail and set I<errno> for any of the errors specified "
270 "for B<socket>(2), B<bind>(2), B<getsockname>(2), B<recvmsg>(2), "
271 "B<sendto>(2), B<malloc>(3), or B<realloc>(3)."
272 msgstr ""
273 "قد تفشل B<getifaddrs>() وتُضبط I<errno> لأي من الأخطاء المُحددة لـ "
274 "B<socket>(2)، B<bind>(2)، B<getsockname>(2)، B<recvmsg>(2)، B<sendto>(2)، "
275 "B<malloc>(3)، أو B<realloc>(3)."
276
277 #. type: SH
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron
280 #, no-wrap
281 msgid "ATTRIBUTES"
282 msgstr "السمات"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron
287 msgid ""
288 "For an explanation of the terms used in this section, see B<attributes>(7)."
289 msgstr ""
290 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
291
292 #. type: tbl table
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron
295 #, no-wrap
296 msgid "Interface"
297 msgstr "الواجهة"
298
299 #. type: tbl table
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron
302 #, no-wrap
303 msgid "Attribute"
304 msgstr "السمة"
305
306 #. type: tbl table
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron
309 #, no-wrap
310 msgid "Value"
311 msgstr "القيمة"
312
313 #. type: tbl table
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron
316 #, no-wrap
317 msgid ".na\n"
318 msgstr ".na\n"
319
320 #. type: tbl table
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron
323 #, no-wrap
324 msgid ".nh\n"
325 msgstr ".nh\n"
326
327 #. type: tbl table
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron
330 #, no-wrap
331 msgid ""
332 "B<getifaddrs>(),\n"
333 "B<freeifaddrs>()"
334 msgstr ""
335 "B<getifaddrs>(),\n"
336 "B<freeifaddrs>()"
337
338 #. type: tbl table
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron
341 #, no-wrap
342 msgid "Thread safety"
343 msgstr "سلامة الخيوط"
344
345 #. type: tbl table
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron
348 #, no-wrap
349 msgid "MT-Safe"
350 msgstr "MT-Safe"
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron
355 #, no-wrap
356 msgid "STANDARDS"
357 msgstr "المعايير"
358
359 #. type: Plain text
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron
362 msgid "None."
363 msgstr "لا شيء."
364
365 #. type: SH
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron
368 #, no-wrap
369 msgid "HISTORY"
370 msgstr "التاريخ"
371
372 #. , but the BSD-derived documentation generally
373 #. appears to be confused and obsolete on this point.
374 #. i.e., commonly it still says one of them will be NULL, even if
375 #. the ifa_ifu union is already present
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron
379 msgid ""
380 "This function first appeared in BSDi and is present on the BSD systems, but "
381 "with slightly different semantics documented\\[em]returning one entry per "
382 "interface, not per address. This means I<ifa_addr> and other fields can "
383 "actually be NULL if the interface has no address, and no link-level address "
384 "is returned if the interface has an IP address assigned. Also, the way of "
385 "choosing either I<ifa_broadaddr> or I<ifa_dstaddr> differs on various "
386 "systems."
387 msgstr ""
388 "ظهرت هذه الدالة لأول مرة في BSDi وهي موجودة على أنظمة BSD، ولكن بدلالات "
389 "مختلفة قليلاً موثقة\\[em]تُرجع إدخالاً واحدًا لكل واجهة، وليس لكل عنوان. هذا "
390 "يعني أن I<ifa_addr> والحقول الأخرى يمكن أن تكون NULL فعليًا إذا لم يكن "
391 "للواجهة عنوان، ولا يُرجع عنوان مستوى الارتباط إذا كانت الواجهة تحتوي على "
392 "عنوان IP مُخصص. أيضًا، تختلف طريقة اختيار إما I<ifa_broadaddr> أو "
393 "I<ifa_dstaddr> على الأنظمة المختلفة."
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron
398 msgid ""
399 "B<getifaddrs>() first appeared in glibc 2.3, but before glibc 2.3.3, the "
400 "implementation supported only IPv4 addresses; IPv6 support was added in "
401 "glibc 2.3.3. Support of address families other than IPv4 is available only "
402 "on kernels that support netlink."
403 msgstr ""
404 "ظهرت B<getifaddrs>() لأول مرة في glibc 2.3، ولكن قبل glibc 2.3.3، دعم "
405 "التنفيذ عناوين IPv4 فقط؛ أُضيف دعم IPv6 في glibc 2.3.3. دعم عائلات العناوين "
406 "غير IPv4 متاح فقط على النوى التي تدعم netlink."
407
408 #. type: SH
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron
411 #, no-wrap
412 msgid "NOTES"
413 msgstr "ملاحظات"
414
415 #. type: Plain text
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron
418 msgid ""
419 "The addresses returned on Linux will usually be the IPv4 and IPv6 addresses "
420 "assigned to the interface, but also one B<AF_PACKET> address per interface "
421 "containing lower-level details about the interface and its physical layer. "
422 "In this case, the I<ifa_data> field may contain a pointer to a I<struct "
423 "rtnl_link_stats>, defined in I<E<lt>linux/if_link.hE<gt>> (in Linux 2.4 and "
424 "earlier, I<struct net_device_stats>, defined in I<E<lt>linux/netdevice."
425 "hE<gt>>), which contains various interface attributes and statistics."
426 msgstr ""
427 "العناوين التي تُرجع على لينكس ستكون عادةً عناوين IPv4 و IPv6 المُخصصة للواجهة، "
428 "ولكن أيضًا عنوان B<AF_PACKET> واحد لكل واجهة يحتوي على تفاصيل منخفضة المستوى "
429 "حول الواجهة وطبقتها المادية. في هذه الحالة، قد يحتوي الحقل I<ifa_data> على "
430 "مؤشر إلى I<struct rtnl_link_stats>، المُعرَّف في I<E<lt>linux/if_link.hE<gt>> "
431 "(في لينكس 2.4 والإصدارات الأقدم، I<struct net_device_stats>، المُعرَّف في "
432 "I<E<lt>linux/netdevice.hE<gt>>)، والذي يحتوي على سمات وإحصائيات واجهة متنوعة."
433
434 #. type: SH
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron
437 #, no-wrap
438 msgid "EXAMPLES"
439 msgstr "أمثلة"
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron
444 msgid ""
445 "The program below demonstrates the use of B<getifaddrs>(), B<freeifaddrs>(), "
446 "and B<getnameinfo>(3). Here is what we see when running this program on one "
447 "system:"
448 msgstr ""
449 "البرنامج أدناه يوضح استخدام B<getifaddrs>() و B<freeifaddrs>() و "
450 "B<getnameinfo>(3). إليك ما نراه عند تشغيل هذا البرنامج على أحد الأنظمة:"
451
452 #. type: Plain text
453 #: archlinux debian-unstable mageia-cauldron
454 #, no-wrap
455 msgid ""
456 "$B< ./a.out>;\n"
457 "lo AF_PACKET (17)\n"
458 " tx_packets = 524; rx_packets = 524\n"
459 " tx_bytes = 38788; rx_bytes = 38788\n"
460 "wlp3s0 AF_PACKET (17)\n"
461 " tx_packets = 108391; rx_packets = 130245\n"
462 " tx_bytes = 30420659; rx_bytes = 94230014\n"
463 "em1 AF_PACKET (17)\n"
464 " tx_packets = 0; rx_packets = 0\n"
465 " tx_bytes = 0; rx_bytes = 0\n"
466 "lo AF_INET (2)\n"
467 " address: E<lt>127.0.0.1E<gt>\n"
468 "wlp3s0 AF_INET (2)\n"
469 " address: E<lt>192.168.235.137E<gt>\n"
470 "lo AF_INET6 (10)\n"
471 " address: E<lt>::1E<gt>\n"
472 "wlp3s0 AF_INET6 (10)\n"
473 " address: E<lt>fe80::7ee9:d3ff:fef5:1a91%wlp3s0E<gt>\n"
474 msgstr ""
475 "$B< ./a.out>;\n"
476 "lo AF_PACKET (17)\n"
477 " tx_packets = 524; rx_packets = 524\n"
478 " tx_bytes = 38788; rx_bytes = 38788\n"
479 "wlp3s0 AF_PACKET (17)\n"
480 " tx_packets = 108391; rx_packets = 130245\n"
481 " tx_bytes = 30420659; rx_bytes = 94230014\n"
482 "em1 AF_PACKET (17)\n"
483 " tx_packets = 0; rx_packets = 0\n"
484 " tx_bytes = 0; rx_bytes = 0\n"
485 "lo AF_INET (2)\n"
486 " address: E<lt>127.0.0.1E<gt>\n"
487 "wlp3s0 AF_INET (2)\n"
488 " address: E<lt>192.168.235.137E<gt>\n"
489 "lo AF_INET6 (10)\n"
490 " address: E<lt>::1E<gt>\n"
491 "wlp3s0 AF_INET6 (10)\n"
492 " address: E<lt>fe80::7ee9:d3ff:fef5:1a91%wlp3s0E<gt>\n"
493
494 #. type: SS
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron
497 #, no-wrap
498 msgid "Program source"
499 msgstr "مصدر البرنامج"
500
501 #. type: Plain text
502 #: archlinux debian-unstable mageia-cauldron
503 #, no-wrap
504 msgid ""
505 "#define _GNU_SOURCE /* To get defns of NI_MAXSERV and NI_MAXHOST */\n"
506 "#include E<lt>arpa/inet.hE<gt>\n"
507 "#include E<lt>sys/socket.hE<gt>\n"
508 "#include E<lt>netdb.hE<gt>\n"
509 "#include E<lt>ifaddrs.hE<gt>\n"
510 "#include E<lt>stdio.hE<gt>\n"
511 "#include E<lt>stdlib.hE<gt>\n"
512 "#include E<lt>unistd.hE<gt>\n"
513 "#include E<lt>linux/if_link.hE<gt>\n"
514 "\\&\n"
515 "int main(int argc, char *argv[])\n"
516 "{\n"
517 " struct ifaddrs *ifaddr;\n"
518 " int family, s;\n"
519 " char host[NI_MAXHOST];\n"
520 "\\&\n"
521 " if (getifaddrs(&ifaddr) == -1) {\n"
522 " perror(\"getifaddrs\");\n"
523 " exit(EXIT_FAILURE);\n"
524 " }\n"
525 "\\&\n"
526 " /* Walk through linked list, maintaining head pointer so we\n"
527 " can free list later. */\n"
528 "\\&\n"
529 " for (struct ifaddrs *ifa = ifaddr; ifa != NULL;\n"
530 " ifa = ifa-E<gt>ifa_next) {\n"
531 " if (ifa-E<gt>ifa_addr == NULL)\n"
532 " continue;\n"
533 "\\&\n"
534 " family = ifa-E<gt>ifa_addr-E<gt>sa_family;\n"
535 "\\&\n"
536 " /* Display interface name and family (including symbolic\n"
537 " form of the latter for the common families). */\n"
538 "\\&\n"
539 " printf(\"%-8s %s (%d)\\[rs]n\",\n"
540 " ifa-E<gt>ifa_name,\n"
541 " (family == AF_PACKET) ? \"AF_PACKET\" :\n"
542 " (family == AF_INET) ? \"AF_INET\" :\n"
543 " (family == AF_INET6) ? \"AF_INET6\" : \"???\",\n"
544 " family);\n"
545 "\\&\n"
546 " /* For an AF_INET* interface address, display the address. */\n"
547 "\\&\n"
548 " if (family == AF_INET || family == AF_INET6) {\n"
549 " s = getnameinfo(ifa-E<gt>ifa_addr,\n"
550 " (family == AF_INET) ? sizeof(struct sockaddr_in) :\n"
551 " sizeof(struct sockaddr_in6),\n"
552 " host, NI_MAXHOST,\n"
553 " NULL, 0, NI_NUMERICHOST);\n"
554 " if (s != 0) {\n"
555 " printf(\"getnameinfo() failed: %s\\[rs]n\", gai_strerror(s));\n"
556 " exit(EXIT_FAILURE);\n"
557 " }\n"
558 "\\&\n"
559 " printf(\"\\[rs]t\\[rs]taddress: E<lt>%sE<gt>\\[rs]n\", host);\n"
560 "\\&\n"
561 " } else if (family == AF_PACKET && ifa-E<gt>ifa_data != NULL) {\n"
562 " struct rtnl_link_stats *stats = ifa-E<gt>ifa_data;\n"
563 "\\&\n"
564 " printf(\"\\[rs]t\\[rs]ttx_packets = %10u; rx_packets = %10u\\[rs]n\"\n"
565 " \"\\[rs]t\\[rs]ttx_bytes = %10u; rx_bytes = %10u\\[rs]n\",\n"
566 " stats-E<gt>tx_packets, stats-E<gt>rx_packets,\n"
567 " stats-E<gt>tx_bytes, stats-E<gt>rx_bytes);\n"
568 " }\n"
569 " }\n"
570 "\\&\n"
571 " freeifaddrs(ifaddr);\n"
572 " exit(EXIT_SUCCESS);\n"
573 "}\n"
574 msgstr ""
575 "#define _GNU_SOURCE /* To get defns of NI_MAXSERV and NI_MAXHOST */\n"
576 "#include E<lt>arpa/inet.hE<gt>\n"
577 "#include E<lt>sys/socket.hE<gt>\n"
578 "#include E<lt>netdb.hE<gt>\n"
579 "#include E<lt>ifaddrs.hE<gt>\n"
580 "#include E<lt>stdio.hE<gt>\n"
581 "#include E<lt>stdlib.hE<gt>\n"
582 "#include E<lt>unistd.hE<gt>\n"
583 "#include E<lt>linux/if_link.hE<gt>\n"
584 "\\&\n"
585 "int main(int argc, char *argv[])\n"
586 "{\n"
587 " struct ifaddrs *ifaddr;\n"
588 " int family, s;\n"
589 " char host[NI_MAXHOST];\n"
590 "\\&\n"
591 " if (getifaddrs(&ifaddr) == -1) {\n"
592 " perror(\"getifaddrs\");\n"
593 " exit(EXIT_FAILURE);\n"
594 " }\n"
595 "\\&\n"
596 " /* Walk through linked list, maintaining head pointer so we\n"
597 " can free list later. */\n"
598 "\\&\n"
599 " for (struct ifaddrs *ifa = ifaddr; ifa != NULL;\n"
600 " ifa = ifa-E<gt>ifa_next) {\n"
601 " if (ifa-E<gt>ifa_addr == NULL)\n"
602 " continue;\n"
603 "\\&\n"
604 " family = ifa-E<gt>ifa_addr-E<gt>sa_family;\n"
605 "\\&\n"
606 " /* Display interface name and family (including symbolic\n"
607 " form of the latter for the common families). */\n"
608 "\\&\n"
609 " printf(\"%-8s %s (%d)\\[rs]n\",\n"
610 " ifa-E<gt>ifa_name,\n"
611 " (family == AF_PACKET) ? \"AF_PACKET\" :\n"
612 " (family == AF_INET) ? \"AF_INET\" :\n"
613 " (family == AF_INET6) ? \"AF_INET6\" : \"???\",\n"
614 " family);\n"
615 "\\&\n"
616 " /* For an AF_INET* interface address, display the address. */\n"
617 "\\&\n"
618 " if (family == AF_INET || family == AF_INET6) {\n"
619 " s = getnameinfo(ifa-E<gt>ifa_addr,\n"
620 " (family == AF_INET) ? sizeof(struct sockaddr_in) :\n"
621 " sizeof(struct sockaddr_in6),\n"
622 " host, NI_MAXHOST,\n"
623 " NULL, 0, NI_NUMERICHOST);\n"
624 " if (s != 0) {\n"
625 " printf(\"getnameinfo() failed: %s\\[rs]n\", gai_strerror(s));\n"
626 " exit(EXIT_FAILURE);\n"
627 " }\n"
628 "\\&\n"
629 " printf(\"\\[rs]t\\[rs]taddress: E<lt>%sE<gt>\\[rs]n\", host);\n"
630 "\\&\n"
631 " } else if (family == AF_PACKET && ifa-E<gt>ifa_data != NULL) {\n"
632 " struct rtnl_link_stats *stats = ifa-E<gt>ifa_data;\n"
633 "\\&\n"
634 " printf(\"\\[rs]t\\[rs]ttx_packets = %10u; rx_packets = %10u\\[rs]n\"\n"
635 " \"\\[rs]t\\[rs]ttx_bytes = %10u; rx_bytes = %10u\\[rs]n\",\n"
636 " stats-E<gt>tx_packets, stats-E<gt>rx_packets,\n"
637 " stats-E<gt>tx_bytes, stats-E<gt>rx_bytes);\n"
638 " }\n"
639 " }\n"
640 "\\&\n"
641 " freeifaddrs(ifaddr);\n"
642 " exit(EXIT_SUCCESS);\n"
643 "}\n"
644
645 #. type: SH
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron
648 #, no-wrap
649 msgid "SEE ALSO"
650 msgstr "انظر أيضًا"
651
652 #. type: Plain text
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron
655 msgid ""
656 "B<bind>(2), B<getsockname>(2), B<socket>(2), B<packet>(7), B<ifconfig>(8)"
657 msgstr ""
658 "B<bind>(2), B<getsockname>(2), B<socket>(2), B<packet>(7), B<ifconfig>(8)"
659
660 #. type: TH
661 #: debian-trixie
662 #, no-wrap
663 msgid "2024-06-15"
664 msgstr "15 يونيو 2024"
665
666 #. type: TH
667 #: debian-trixie
668 #, no-wrap
669 msgid "Linux man-pages 6.9.1"
670 msgstr "صفحات دليل لينكس 6.9.1"
671
672 #. type: Plain text
673 #: debian-trixie
674 msgid "Standard C library (I<libc>, I<-lc>)"
675 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
676
677 #. type: Plain text
678 #: debian-trixie fedora-44 fedora-rawhide
679 #, no-wrap
680 msgid ""
681 "$ B<./a.out>\n"
682 "lo AF_PACKET (17)\n"
683 " tx_packets = 524; rx_packets = 524\n"
684 " tx_bytes = 38788; rx_bytes = 38788\n"
685 "wlp3s0 AF_PACKET (17)\n"
686 " tx_packets = 108391; rx_packets = 130245\n"
687 " tx_bytes = 30420659; rx_bytes = 94230014\n"
688 "em1 AF_PACKET (17)\n"
689 " tx_packets = 0; rx_packets = 0\n"
690 " tx_bytes = 0; rx_bytes = 0\n"
691 "lo AF_INET (2)\n"
692 " address: E<lt>127.0.0.1E<gt>\n"
693 "wlp3s0 AF_INET (2)\n"
694 " address: E<lt>192.168.235.137E<gt>\n"
695 "lo AF_INET6 (10)\n"
696 " address: E<lt>::1E<gt>\n"
697 "wlp3s0 AF_INET6 (10)\n"
698 " address: E<lt>fe80::7ee9:d3ff:fef5:1a91%wlp3s0E<gt>\n"
699 msgstr ""
700 "$ B<./a.out>\n"
701 "lo AF_PACKET (17)\n"
702 " tx_packets = 524; rx_packets = 524\n"
703 " tx_bytes = 38788; rx_bytes = 38788\n"
704 "wlp3s0 AF_PACKET (17)\n"
705 " tx_packets = 108391; rx_packets = 130245\n"
706 " tx_bytes = 30420659; rx_bytes = 94230014\n"
707 "em1 AF_PACKET (17)\n"
708 " tx_packets = 0; rx_packets = 0\n"
709 " tx_bytes = 0; rx_bytes = 0\n"
710 "lo AF_INET (2)\n"
711 " address: E<lt>127.0.0.1E<gt>\n"
712 "wlp3s0 AF_INET (2)\n"
713 " address: E<lt>192.168.235.137E<gt>\n"
714 "lo AF_INET6 (10)\n"
715 " address: E<lt>::1E<gt>\n"
716 "wlp3s0 AF_INET6 (10)\n"
717 " address: E<lt>fe80::7ee9:d3ff:fef5:1a91%wlp3s0E<gt>\n"
718
719 #. type: Plain text
720 #: debian-trixie fedora-44 fedora-rawhide
721 #, no-wrap
722 msgid ""
723 "#define _GNU_SOURCE /* To get defns of NI_MAXSERV and NI_MAXHOST */\n"
724 "#include E<lt>arpa/inet.hE<gt>\n"
725 "#include E<lt>sys/socket.hE<gt>\n"
726 "#include E<lt>netdb.hE<gt>\n"
727 "#include E<lt>ifaddrs.hE<gt>\n"
728 "#include E<lt>stdio.hE<gt>\n"
729 "#include E<lt>stdlib.hE<gt>\n"
730 "#include E<lt>unistd.hE<gt>\n"
731 "#include E<lt>linux/if_link.hE<gt>\n"
732 "\\&\n"
733 "int main(int argc, char *argv[])\n"
734 "{\n"
735 " struct ifaddrs *ifaddr;\n"
736 " int family, s;\n"
737 " char host[NI_MAXHOST];\n"
738 "\\&\n"
739 " if (getifaddrs(&ifaddr) == -1) {\n"
740 " perror(\"getifaddrs\");\n"
741 " exit(EXIT_FAILURE);\n"
742 " }\n"
743 "\\&\n"
744 " /* Walk through linked list, maintaining head pointer so we\n"
745 " can free list later. */\n"
746 "\\&\n"
747 " for (struct ifaddrs *ifa = ifaddr; ifa != NULL;\n"
748 " ifa = ifa-E<gt>ifa_next) {\n"
749 " if (ifa-E<gt>ifa_addr == NULL)\n"
750 " continue;\n"
751 "\\&\n"
752 " family = ifa-E<gt>ifa_addr-E<gt>sa_family;\n"
753 "\\&\n"
754 " /* Display interface name and family (including symbolic\n"
755 " form of the latter for the common families). */\n"
756 "\\&\n"
757 " printf(\"%-8s %s (%d)\\[rs]n\",\n"
758 " ifa-E<gt>ifa_name,\n"
759 " (family == AF_PACKET) ? \"AF_PACKET\" :\n"
760 " (family == AF_INET) ? \"AF_INET\" :\n"
761 " (family == AF_INET6) ? \"AF_INET6\" : \"???\",\n"
762 " family);\n"
763 "\\&\n"
764 " /* For an AF_INET* interface address, display the address. */\n"
765 "\\&\n"
766 " if (family == AF_INET || family == AF_INET6) {\n"
767 " s = getnameinfo(ifa-E<gt>ifa_addr,\n"
768 " (family == AF_INET) ? sizeof(struct sockaddr_in) :\n"
769 " sizeof(struct sockaddr_in6),\n"
770 " host, NI_MAXHOST,\n"
771 " NULL, 0, NI_NUMERICHOST);\n"
772 " if (s != 0) {\n"
773 " printf(\"getnameinfo() failed: %s\\[rs]n\", gai_strerror(s));\n"
774 " exit(EXIT_FAILURE);\n"
775 " }\n"
776 "\\&\n"
777 " printf(\"\\[rs]t\\[rs]taddress: E<lt>%sE<gt>\\[rs]n\", host);\n"
778 "\\&\n"
779 " } else if (family == AF_PACKET && ifa-E<gt>ifa_data != NULL) {\n"
780 " struct rtnl_link_stats *stats = ifa-E<gt>ifa_data;\n"
781 "\\&\n"
782 " printf(\"\\[rs]t\\[rs]ttx_packets = %10u; rx_packets = %10u\\[rs]n\"\n"
783 " \"\\[rs]t\\[rs]ttx_bytes = %10u; rx_bytes = %10u\\[rs]n\",\n"
784 " stats-E<gt>tx_packets, stats-E<gt>rx_packets,\n"
785 " stats-E<gt>tx_bytes, stats-E<gt>rx_bytes);\n"
786 " }\n"
787 " }\n"
788 "\\&\n"
789 " freeifaddrs(ifaddr);\n"
790 " exit(EXIT_SUCCESS);\n"
791 "}\n"
792 msgstr ""
793 "#define _GNU_SOURCE /* To get defns of NI_MAXSERV and NI_MAXHOST */\n"
794 "#include E<lt>arpa/inet.hE<gt>\n"
795 "#include E<lt>sys/socket.hE<gt>\n"
796 "#include E<lt>netdb.hE<gt>\n"
797 "#include E<lt>ifaddrs.hE<gt>\n"
798 "#include E<lt>stdio.hE<gt>\n"
799 "#include E<lt>stdlib.hE<gt>\n"
800 "#include E<lt>unistd.hE<gt>\n"
801 "#include E<lt>linux/if_link.hE<gt>\n"
802 "\\&\n"
803 "int main(int argc, char *argv[])\n"
804 "{\n"
805 " struct ifaddrs *ifaddr;\n"
806 " int family, s;\n"
807 " char host[NI_MAXHOST];\n"
808 "\\&\n"
809 " if (getifaddrs(&ifaddr) == -1) {\n"
810 " perror(\"getifaddrs\");\n"
811 " exit(EXIT_FAILURE);\n"
812 " }\n"
813 "\\&\n"
814 " /* Walk through linked list, maintaining head pointer so we\n"
815 " can free list later. */\n"
816 "\\&\n"
817 " for (struct ifaddrs *ifa = ifaddr; ifa != NULL;\n"
818 " ifa = ifa-E<gt>ifa_next) {\n"
819 " if (ifa-E<gt>ifa_addr == NULL)\n"
820 " continue;\n"
821 "\\&\n"
822 " family = ifa-E<gt>ifa_addr-E<gt>sa_family;\n"
823 "\\&\n"
824 " /* Display interface name and family (including symbolic\n"
825 " form of the latter for the common families). */\n"
826 "\\&\n"
827 " printf(\"%-8s %s (%d)\\[rs]n\",\n"
828 " ifa-E<gt>ifa_name,\n"
829 " (family == AF_PACKET) ? \"AF_PACKET\" :\n"
830 " (family == AF_INET) ? \"AF_INET\" :\n"
831 " (family == AF_INET6) ? \"AF_INET6\" : \"???\",\n"
832 " family);\n"
833 "\\&\n"
834 " /* For an AF_INET* interface address, display the address. */\n"
835 "\\&\n"
836 " if (family == AF_INET || family == AF_INET6) {\n"
837 " s = getnameinfo(ifa-E<gt>ifa_addr,\n"
838 " (family == AF_INET) ? sizeof(struct sockaddr_in) :\n"
839 " sizeof(struct sockaddr_in6),\n"
840 " host, NI_MAXHOST,\n"
841 " NULL, 0, NI_NUMERICHOST);\n"
842 " if (s != 0) {\n"
843 " printf(\"getnameinfo() failed: %s\\[rs]n\", gai_strerror(s));\n"
844 " exit(EXIT_FAILURE);\n"
845 " }\n"
846 "\\&\n"
847 " printf(\"\\[rs]t\\[rs]taddress: E<lt>%sE<gt>\\[rs]n\", host);\n"
848 "\\&\n"
849 " } else if (family == AF_PACKET && ifa-E<gt>ifa_data != NULL) {\n"
850 " struct rtnl_link_stats *stats = ifa-E<gt>ifa_data;\n"
851 "\\&\n"
852 " printf(\"\\[rs]t\\[rs]ttx_packets = %10u; rx_packets = %10u\\[rs]n\"\n"
853 " \"\\[rs]t\\[rs]ttx_bytes = %10u; rx_bytes = %10u\\[rs]n\",\n"
854 " stats-E<gt>tx_packets, stats-E<gt>rx_packets,\n"
855 " stats-E<gt>tx_bytes, stats-E<gt>rx_bytes);\n"
856 " }\n"
857 " }\n"
858 "\\&\n"
859 " freeifaddrs(ifaddr);\n"
860 " exit(EXIT_SUCCESS);\n"
861 "}\n"
862
863 #. type: TH
864 #: fedora-44 fedora-rawhide
865 #, no-wrap
866 msgid "2024-07-23"
867 msgstr "23 يوليو 2024"
868
869 #. type: TH
870 #: fedora-44 fedora-rawhide
871 #, no-wrap
872 msgid "Linux man-pages 6.13"
873 msgstr "صفحات دليل لينكس 6.13"
874
875 #. type: TH
876 #: mageia-cauldron
877 #, no-wrap
878 msgid "Linux man-pages 6.17"
879 msgstr "صفحات دليل لينكس 6.17"