# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.1\n" "POT-Creation-Date: 2026-06-05 06:44+0200\n" "PO-Revision-Date: 2026-05-12 18:30+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "sock_diag" msgstr "sock_diag" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "sock_diag - obtaining information about sockets" msgstr "sock_diag - الحصول على معلومات حول المقابس" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B<#include Esys/socket.hE>\n" "B<#include Elinux/sock_diag.hE>\n" "B<#include Elinux/unix_diag.hE> /* for UNIX domain sockets */\n" "B<#include Elinux/inet_diag.hE> /* for IPv4 and IPv6 sockets */\n" msgstr "" "B<#include Esys/socket.hE>\n" "B<#include Elinux/sock_diag.hE>\n" "B<#include Elinux/unix_diag.hE> /* for UNIX domain sockets */\n" "B<#include Elinux/inet_diag.hE> /* for IPv4 and IPv6 sockets */\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, NETLINK_SOCK_DIAG);>\n" msgstr "BIB<, NETLINK_SOCK_DIAG);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The sock_diag netlink subsystem provides a mechanism for obtaining " "information about sockets of various address families from the kernel. This " "subsystem can be used to obtain information about individual sockets or " "request a list of sockets." msgstr "" "النظام الفرعي sock_diag netlink يوفر آلية للحصول على معلومات حول مقابس من " "عائلات عناوين مختلفة من النواة. يمكن استخدام هذا النظام الفرعي للحصول على " "معلومات حول مقابس فردية أو طلب قائمة بالمقابس." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In the request, the caller can specify additional information it would like " "to obtain about the socket, for example, memory information or information " "specific to the address family." msgstr "" "في الطلب، يمكن للمتصل تحديد معلومات إضافية يرغب في الحصول عليها حول المقبس، " "على سبيل المثال، معلومات الذاكرة أو معلومات خاصة بعائلة العنوان." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When requesting a list of sockets, the caller can specify filters that would " "be applied by the kernel to select a subset of sockets to report. For now, " "there is only the ability to filter sockets by state (connected, listening, " "and so on.)" msgstr "" "عند طلب قائمة بالمقابس، يمكن للمتصل تحديد مرشحات تطبقها النواة لاختيار " "مجموعة فرعية من المقابس للإبلاغ عنها. حالياً، توجد فقط القدرة على تصفية " "المقابس حسب الحالة (متصل، مستمع، وهكذا)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Note that sock_diag reports only those sockets that have a name; that is, " "either sockets bound explicitly with B(2) or sockets that were " "automatically bound to an address (e.g., by B(2)). This is the " "same set of sockets that is available via I, I, I, and so on." msgstr "" "لاحظ أن sock_diag يبلغ فقط عن تلك المقابس التي لها اسم؛ أي إما مقابس مربوطة " "صراحةً بـ B(2) أو مقابس رُبطت آلياً بعنوان (مثلاً، بواسطة B(2)). " "هذه هي نفس مجموعة المقابس المتاحة عبر I، I، " "I، وهكذا." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Request" msgstr "طلب" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The request starts with a I header described in " "B(7) with I field set to B. It " "is followed by a header specific to the address family that starts with a " "common part shared by all address families:" msgstr "" "يبدأ الطلب برأس I الموصوف في B(7) مع حقل " "I مضبوط على B. يتبعه رأس خاص بعائلة العنوان " "يبدأ بجزء مشترك بين جميع عائلات العناوين:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct sock_diag_req {\n" " __u8 sdiag_family;\n" " __u8 sdiag_protocol;\n" "};\n" msgstr "" "struct sock_diag_req {\n" " __u8 sdiag_family;\n" " __u8 sdiag_protocol;\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The fields of this structure are as follows:" msgstr "حقول هذا الهيكل هي كالتالي:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An address family. It should be set to the appropriate B constant." msgstr "عائلة عنوان. يجب ضبطها على الثابت B المناسب." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Depends on I. It should be set to the appropriate " "B constant for B and B, and to 0 otherwise." msgstr "" "يعتمد على I. يجب ضبطه على الثابت B المناسب لـ " "B و B، وإلى 0 خلاف ذلك." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the I field of the I header has the " "B flag set, it means that a list of sockets is being requested; " "otherwise it is a query about an individual socket." msgstr "" "إذا كان حقل I لرأس I يحتوي على العلم " "B مضبوطاً، فهذا يعني أن قائمة بالمقابس تُطلب؛ وإلا فهو استعلام عن " "مقبس فردي." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Response" msgstr "استجابة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The response starts with a I header and is followed by an " "array of objects specific to the address family. The array is to be " "accessed with the standard B macros from the B(3) API." msgstr "" "تبدأ الاستجابة برأس I ويتبعها مصفوفة من الكائنات الخاصة " "بعائلة العنوان. يتم الوصول إلى المصفوفة باستخدام وحدات الماكرو القياسية " "B من واجهة برمجة التطبيقات B(3)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Each object is the NLA (netlink attributes) list that is to be accessed with " "the B macros from B(3) API." msgstr "" "كل كائن هو قائمة NLA (سمات netlink) يتم الوصول إليها باستخدام وحدات الماكرو " "B من واجهة برمجة التطبيقات B(3)." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "UNIX domain sockets" msgstr "مقابس نطاق UNIX" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For UNIX domain sockets the request is represented in the following " "structure:" msgstr "بالنسبة لمقابس نطاق UNIX، يتم تمثيل الطلب في البنية التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct unix_diag_req {\n" " __u8 sdiag_family;\n" " __u8 sdiag_protocol;\n" " __u16 pad;\n" " __u32 udiag_states;\n" " __u32 udiag_ino;\n" " __u32 udiag_show;\n" " __u32 udiag_cookie[2];\n" "};\n" msgstr "" "struct unix_diag_req {\n" " __u8 sdiag_family;\n" " __u8 sdiag_protocol;\n" " __u16 pad;\n" " __u32 udiag_states;\n" " __u32 udiag_ino;\n" " __u32 udiag_show;\n" " __u32 udiag_cookie[2];\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The address family; it should be set to B." msgstr "عائلة العنوان؛ يجب ضبطها على B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "These fields should be set to 0." msgstr "يجب ضبط هذه الحقول على 0." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is a bit mask that defines a filter of sockets states. Only those " "sockets whose states are in this mask will be reported. Ignored when " "querying for an individual socket. Supported values are:" msgstr "" "هذه قناع بتات يحدد مرشحًا لحالات المقابس. سيتم الإبلاغ فقط عن المقابس التي " "تكون حالاتها ضمن هذا القناع. يُتجاهل عند الاستعلام عن مقبس فردي. القيم " "المدعومة هي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "1 EE B" msgstr "1 EE B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "1 EE B" msgstr "1 EE B" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is an inode number when querying for an individual socket. Ignored " "when querying for a list of sockets." msgstr "" "هذا رقم عقدة (inode) عند الاستعلام عن مقبس فردي. يُتجاهل عند الاستعلام عن " "قائمة مقابس." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is a set of flags defining what kind of information to report. Each " "requested kind of information is reported back as a netlink attribute as " "described below:" msgstr "" "هذه مجموعة من الأعلام تحدد نوع المعلومات المراد الإبلاغ عنها. يُبلغ عن كل نوع " "مطلوب من المعلومات كخاصية netlink كما هو موضح أدناه:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The attribute reported in answer to this request is B. The " "payload associated with this attribute is the pathname to which the socket " "was bound (a sequence of bytes up to B size)." msgstr "" "الخاصية المبلغ عنها ردًا على هذا الطلب هي B. المحتوى المرتبط " "بهذه الخاصية هو اسم المسار الذي رُبط به المقبس (سلسلة من البايتات يصل حجمها " "إلى B)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The attribute reported in answer to this request is B. The " "payload associated with this attribute is represented in the following " "structure:" msgstr "" "الخاصية المبلغ عنها ردًا على هذا الطلب هي B. المحتوى المرتبط " "بهذه الخاصية ممثل في البنية التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct unix_diag_vfs {\n" " __u32 udiag_vfs_dev;\n" " __u32 udiag_vfs_ino;\n" "};\n" msgstr "" "struct unix_diag_vfs {\n" " __u32 udiag_vfs_dev;\n" " __u32 udiag_vfs_ino;\n" "};\n" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The device number of the corresponding on-disk socket inode." msgstr "رقم الجهاز لعقدة المقبس المقابلة على القرص." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The inode number of the corresponding on-disk socket inode." msgstr "رقم عقدة المقبس المقابلة على القرص." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The attribute reported in answer to this request is B. The " "payload associated with this attribute is a __u32 value which is the peer's " "inode number. This attribute is reported for connected sockets only." msgstr "" "الخاصية المبلغ عنها ردًا على هذا الطلب هي B. المحتوى المرتبط " "بهذه الخاصية هو قيمة __u32 تمثل رقم عقدة النظير. تُبلغ هذه الخاصية للمقابس " "المتصلة فقط." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The attribute reported in answer to this request is B. The " "payload associated with this attribute is an array of __u32 values which are " "inode numbers of sockets that has passed the B(2) call, but hasn't " "been processed with B(2) yet. This attribute is reported for " "listening sockets only." msgstr "" "الخاصية المبلغ عنها ردًا على هذا الطلب هي B. المحتوى المرتبط " "بهذه الخاصية هو مصفوفة من قيم __u32 تمثل أرقام عقد المقابس التي مرت باستدعاء " "B(2) ولكن لم تُعالج بعد باستخدام B(2). تُبلغ هذه الخاصية " "لمقابس الاستماع فقط." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The attribute reported in answer to this request is B. The " "payload associated with this attribute is represented in the following " "structure:" msgstr "" "الخاصية المبلغ عنها ردًا على هذا الطلب هي B. المحتوى المرتبط " "بهذه الخاصية ممثل في البنية التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct unix_diag_rqlen {\n" " __u32 udiag_rqueue;\n" " __u32 udiag_wqueue;\n" "};\n" msgstr "" "struct unix_diag_rqlen {\n" " __u32 udiag_rqueue;\n" " __u32 udiag_wqueue;\n" "};\n" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For listening sockets: the number of pending connections. The size of the " "array associated with the B response attribute is equal to " "this value." msgstr "" "لمقابس الاستماع: عدد الاتصالات المعلقة. حجم المصفوفة المرتبطة بخاصية " "الاستجابة B يساوي هذه القيمة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "For established sockets: the amount of data in incoming queue." msgstr "للمقابس المنشأة: كمية البيانات في قائمة الانتظار الواردة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For listening sockets: the backlog size which equals to the value passed as " "the second argument to B(2)." msgstr "" "للمقابس المستمعة: حجم التراكم الذي يساوي القيمة الممررة كوسيط ثانٍ إلى " "B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "For established sockets: the amount of memory available for sending." msgstr "للمقابس المنشأة: كمية الذاكرة المتاحة للإرسال." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The attribute reported in answer to this request is B. " "The payload associated with this attribute is an array of __u32 values " "described below in the subsection \"Socket memory information\"." msgstr "" "السمة المبلغ عنها ردًا على هذا الطلب هي B. الحمولة " "المرتبطة بهذه السمة هي مصفوفة من قيم __u32 الموصوفة أدناه في القسم الفرعي " "\"معلومات ذاكرة المقبس\"." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following attributes are reported back without any specific request:" msgstr "السمات التالية تُبلغ دون أي طلب محدد:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with this attribute is __u8 value which represents " "bits of B(2) state." msgstr "" "الحمولة المرتبطة بهذه السمة هي قيمة __u8 تمثل بتات حالة B(2)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is an array of opaque identifiers that could be used along with " "I to specify an individual socket. It is ignored when querying " "for a list of sockets, as well as when all its elements are set to -1." msgstr "" "هذه مصفوفة من معرفات غير شفافة يمكن استخدامها مع I لتحديد مقبس " "فردي. تُتجاهل عند الاستعلام عن قائمة مقابس، وكذلك عندما تُضبط جميع عناصرها على " "-1." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The response to a query for UNIX domain sockets is represented as an array of" msgstr "الاستجابة لاستعلام عن مقابس نطاق UNIX تمثل كمصفوفة من" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct unix_diag_msg {\n" " __u8 udiag_family;\n" " __u8 udiag_type;\n" " __u8 udiag_state;\n" " __u8 pad;\n" " __u32 udiag_ino;\n" " __u32 udiag_cookie[2];\n" "};\n" msgstr "" "struct unix_diag_msg {\n" " __u8 udiag_family;\n" " __u8 udiag_type;\n" " __u8 udiag_state;\n" " __u8 pad;\n" " __u32 udiag_ino;\n" " __u32 udiag_cookie[2];\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "followed by netlink attributes." msgstr "متبوعة بسمات netlink." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This field has the same meaning as in I." msgstr "لهذا الحقل نفس المعنى كما في I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is set to one of B, B, or B." msgstr "" "يُضبط هذا على واحد من B أو B أو B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This is set to one of B or B." msgstr "يُضبط هذا على واحد من B أو B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This field is set to 0." msgstr "يُضبط هذا الحقل على 0." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This is the socket inode number." msgstr "هذا هو رقم inode للمقبس." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is an array of opaque identifiers that could be used in subsequent " "queries." msgstr "هذه مصفوفة من معرفات غير شفافة يمكن استخدامها في استعلامات لاحقة." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "IPv4 and IPv6 sockets" msgstr "مقابس IPv4 و IPv6" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For IPv4 and IPv6 sockets, the request is represented in the following " "structure:" msgstr "لمقابس IPv4 و IPv6، يُعرض الطلب في البنية التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct inet_diag_req_v2 {\n" " __u8 sdiag_family;\n" " __u8 sdiag_protocol;\n" " __u8 idiag_ext;\n" " __u8 pad;\n" " __u32 idiag_states;\n" " struct inet_diag_sockid id;\n" "};\n" msgstr "" "struct inet_diag_req_v2 {\n" " __u8 sdiag_family;\n" " __u8 sdiag_protocol;\n" " __u8 idiag_ext;\n" " __u8 pad;\n" " __u32 idiag_states;\n" " struct inet_diag_sockid id;\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "where I is defined as follows:" msgstr "حيث يُعرّف I كالتالي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct inet_diag_sockid {\n" " __be16 idiag_sport;\n" " __be16 idiag_dport;\n" " __be32 idiag_src[4];\n" " __be32 idiag_dst[4];\n" " __u32 idiag_if;\n" " __u32 idiag_cookie[2];\n" "};\n" msgstr "" "struct inet_diag_sockid {\n" " __be16 idiag_sport;\n" " __be16 idiag_dport;\n" " __be32 idiag_src[4];\n" " __be32 idiag_dst[4];\n" " __u32 idiag_if;\n" " __u32 idiag_cookie[2];\n" "};\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The fields of I are as follows:" msgstr "حقول I هي كالتالي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This should be set to either B or B for IPv4 or IPv6 " "sockets respectively." msgstr "" "يجب ضبط هذا على B أو B لمقابس IPv4 أو IPv6 على التوالي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This should be set to one of B, B, or " "B." msgstr "" "يجب ضبط هذا على أحد B أو B أو B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is a set of flags defining what kind of extended information to " "report. Each requested kind of information is reported back as a netlink " "attribute as described below:" msgstr "" "هذه مجموعة من الأعلام تُعرّف نوع المعلومات الموسعة المطلوب الإبلاغ عنها. يُبلَغ " "عن كل نوع مطلوب من المعلومات كخاصية netlink كما هو موصوف أدناه:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with this attribute is a __u8 value which is the TOS " "of the socket." msgstr "الحمولة المرتبطة بهذه الخاصية هي قيمة __u8 تمثل TOS للمقبس." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with this attribute is a __u8 value which is the " "TClass of the socket. IPv6 sockets only. For LISTEN and CLOSE sockets, " "this is followed by B attribute with associated __u8 " "payload value meaning whether the socket is IPv6-only or not." msgstr "" "الحمولة المرتبطة بهذه الخاصية هي قيمة __u8 تمثل TClass للمقبس. مقابس IPv6 " "فقط. بالنسبة لمقابس LISTEN و CLOSE، يتبع ذلك خاصية B مع " "قيمة حمولة __u8 تشير إلى ما إذا كان المقبس مخصصًا لـ IPv6 فقط أم لا." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with this attribute is represented in the following " "structure:" msgstr "الحمولة المرتبطة بهذه الخاصية ممثلة في الهيكل التالي:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct inet_diag_meminfo {\n" " __u32 idiag_rmem;\n" " __u32 idiag_wmem;\n" " __u32 idiag_fmem;\n" " __u32 idiag_tmem;\n" "};\n" msgstr "" "struct inet_diag_meminfo {\n" " __u32 idiag_rmem;\n" " __u32 idiag_wmem;\n" " __u32 idiag_fmem;\n" " __u32 idiag_tmem;\n" "};\n" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The amount of data in the receive queue." msgstr "كمية البيانات في طابور الاستقبال." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The amount of data that is queued by TCP but not yet sent." msgstr "كمية البيانات المُصطفة بواسطة TCP ولكن لم تُرسَل بعد." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The amount of memory scheduled for future use (TCP only)." msgstr "كمية الذاكرة المُجدوَلة للاستخدام المستقبلي (TCP فقط)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The amount of data in send queue." msgstr "كمية البيانات في طابور الإرسال." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with this attribute is an array of __u32 values " "described below in the subsection \"Socket memory information\"." msgstr "" "الحمولة المرتبطة بهذه الخاصية هي مصفوفة من قيم __u32 موصوفة أدناه في القسم " "الفرعي \"معلومات ذاكرة المقبس\"." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with this attribute is specific to the address " "family. For TCP sockets, it is an object of type I." msgstr "" "الحمولة المرتبطة بهذه السمة خاصة بعائلة العنوان. لمقابس TCP، هي كائن من " "النوع I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with this attribute is a string that describes the " "congestion control algorithm used. For TCP sockets only." msgstr "" "الحمولة المرتبطة بهذه السمة هي سلسلة تصف خوارزمية التحكم في الازدحام " "المستخدمة. لمقابس TCP فقط." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This should be set to 0." msgstr "يجب ضبط هذا على 0." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is a bit mask that defines a filter of socket states. Only those " "sockets whose states are in this mask will be reported. Ignored when " "querying for an individual socket." msgstr "" "هذه قناع بتات يعرّف مرشحًا لحالات المقبس. فقط تلك المقابس التي حالاتها ضمن " "هذا القناع سيتم الإبلاغ عنها. يتم تجاهله عند الاستعلام عن مقبس فردي." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is a socket ID object that is used in dump requests, in queries about " "individual sockets, and is reported back in each response. Unlike UNIX " "domain sockets, IPv4 and IPv6 sockets are identified using addresses and " "ports. All values are in network byte order." msgstr "" "هذا كائن معرف مقبس يُستخدم في طلبات التفريغ، وفي الاستعلامات عن مقابس فردية، " "ويُبلغ عنه في كل استجابة. على عكس مقابس نطاق UNIX، يتم تعريف مقابس IPv4 و " "IPv6 باستخدام العناوين والمنافذ. جميع القيم بترتيب بايت الشبكة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The fields of I are as follows:" msgstr "حقول I هي كما يلي:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The source port." msgstr "منفذ المصدر." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The destination port." msgstr "منفذ الوجهة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The source address." msgstr "عنوان المصدر." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The destination address." msgstr "عنوان الوجهة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The interface number the socket is bound to." msgstr "رقم الواجهة الذي يرتبط به المقبس." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This is an array of opaque identifiers that could be used along with other " "fields of this structure to specify an individual socket. It is ignored " "when querying for a list of sockets, as well as when all its elements are " "set to -1." msgstr "" "هذه مصفوفة من المعرفات المعتمة التي يمكن استخدامها مع حقول أخرى من هذه " "البنية لتحديد مقبس فردي. يتم تجاهلها عند الاستعلام عن قائمة مقابس، وكذلك " "عندما تكون جميع عناصرها مضبوطة على -1." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The response to a query for IPv4 or IPv6 sockets is represented as an array " "of" msgstr "الاستجابة لاستعلام عن مقابس IPv4 أو IPv6 ممثلة كمصفوفة من" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "struct inet_diag_msg {\n" " __u8 idiag_family;\n" " __u8 idiag_state;\n" " __u8 idiag_timer;\n" " __u8 idiag_retrans;\n" "\\&\n" " struct inet_diag_sockid id;\n" "\\&\n" " __u32 idiag_expires;\n" " __u32 idiag_rqueue;\n" " __u32 idiag_wqueue;\n" " __u32 idiag_uid;\n" " __u32 idiag_inode;\n" "};\n" msgstr "" "struct inet_diag_msg {\n" " __u8 idiag_family;\n" " __u8 idiag_state;\n" " __u8 idiag_timer;\n" " __u8 idiag_retrans;\n" "\\&\n" " struct inet_diag_sockid id;\n" "\\&\n" " __u32 idiag_expires;\n" " __u32 idiag_rqueue;\n" " __u32 idiag_wqueue;\n" " __u32 idiag_uid;\n" " __u32 idiag_inode;\n" "};\n" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This is the same field as in I." msgstr "هذا هو نفس الحقل الموجود في I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This denotes socket state as in I." msgstr "يشير هذا إلى حالة المقبس كما في I." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For TCP sockets, this field describes the type of timer that is currently " "active for the socket. It is set to one of the following constants:" msgstr "" "بالنسبة لمقابس TCP، يصف هذا الحقل نوع المؤقت النشط حالياً للمقبس. يُضبط على " "أحد الثوابت التالية:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<0>" msgstr "B<0>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "no timer is active" msgstr "لا يوجد مؤقت نشط" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<1>" msgstr "B<1>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "a retransmit timer" msgstr "مؤقت إعادة إرسال" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<2>" msgstr "B<2>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "a keep-alive timer" msgstr "مؤقت البقاء على قيد الحياة" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<3>" msgstr "B<3>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "a TIME_WAIT timer" msgstr "مؤقت TIME_WAIT" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<4>" msgstr "B<4>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "a zero window probe timer" msgstr "مؤقت استقصاء النافذة الصفرية" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "For non-TCP sockets, this field is set to 0." msgstr "بالنسبة للمقابس غير TCP، يُضبط هذا الحقل على 0." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For I values 1, 2, and 4, this field contains the number of " "retransmits. For other I values, this field is set to 0." msgstr "" "بالنسبة لقيم I 1 و2 و4، يحتوي هذا الحقل على عدد عمليات إعادة " "الإرسال. بالنسبة لقيم I الأخرى، يُضبط هذا الحقل على 0." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For TCP sockets that have an active timer, this field describes its " "expiration time in milliseconds. For other sockets, this field is set to 0." msgstr "" "بالنسبة لمقابس TCP التي تحتوي على مؤقت نشط، يصف هذا الحقل وقت انتهاء صلاحيته " "بالمللي ثانية. بالنسبة للمقابس الأخرى، يُضبط هذا الحقل على 0." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "For listening sockets: the number of pending connections." msgstr "بالنسبة لمقابس الاستماع: عدد الاتصالات المعلقة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "For other sockets: the amount of data in the incoming queue." msgstr "بالنسبة للمقابس الأخرى: كمية البيانات في قائمة الانتظار الواردة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "For listening sockets: the backlog size." msgstr "بالنسبة لمقابس الاستماع: حجم التراكم." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "For other sockets: the amount of memory available for sending." msgstr "بالنسبة للمقابس الأخرى: مقدار الذاكرة المتاحة للإرسال." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "This is the socket owner UID." msgstr "هذا هو UID مالك المقبس." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "I" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Socket memory information" msgstr "معلومات ذاكرة المقبس" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The payload associated with B and B " "netlink attributes is an array of the following __u32 values:" msgstr "" "الحمولة المرتبطة بسمات netlink B و B " "هي مصفوفة من قيم __u32 التالية:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The amount of data in receive queue." msgstr "كمية البيانات في طابور الاستقبال." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The receive socket buffer as set by B." msgstr "مخزن المقبس المؤقت للاستقبال كما هو مضبوط بواسطة B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The send socket buffer as set by B." msgstr "مخزن المقبس المؤقت للإرسال كما هو مضبوط بواسطة B." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The amount of data queued by TCP, but not yet sent." msgstr "كمية البيانات المصفوفة بواسطة TCP، ولكن لم تُرسل بعد." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The amount of memory allocated for the socket's service needs (e.g., socket " "filter)." msgstr "كمية الذاكرة المخصصة لاحتياجات خدمة المقبس (مثل، مرشح المقبس)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The amount of packets in the backlog (not yet processed)." msgstr "كمية الحزم في backlog (لم تُعالج بعد)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "الإصدارات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B was introduced in Linux 2.6.14 and supported B " "and B sockets only. In Linux 3.3, it was renamed to " "B and extended to support B sockets." msgstr "" "B أُدخل في Linux 2.6.14 ودعم مقابس B و " "B فقط. في Linux 3.3، أُعيدت تسميته إلى B ووُسع " "لدعم مقابس B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B and B were introduced in Linux 3.6." msgstr "B و B أُدخلا في Linux 3.6." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux." msgstr "لينكس." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following example program prints inode number, peer's inode number, and " "name of all UNIX domain sockets in the current namespace." msgstr "" "يطبع برنامج المثال التالي رقم inode، ورقم inode النظير، واسم جميع مقابس نطاق " "UNIX في مساحة الأسماء الحالية." #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#include Eerrno.hE\n" "#include Estdio.hE\n" "#include Estring.hE\n" "#include Eunistd.hE\n" "#include Esys/socket.hE\n" "#include Esys/un.hE\n" "#include Elinux/netlink.hE\n" "#include Elinux/rtnetlink.hE\n" "#include Elinux/sock_diag.hE\n" "#include Elinux/unix_diag.hE\n" "\\&\n" "static int\n" "send_query(int fd)\n" "{\n" " struct sockaddr_nl nladdr = {\n" " .nl_family = AF_NETLINK\n" " };\n" " struct\n" " {\n" " struct nlmsghdr nlh;\n" " struct unix_diag_req udr;\n" " } req = {\n" " .nlh = {\n" " .nlmsg_len = sizeof(req),\n" " .nlmsg_type = SOCK_DIAG_BY_FAMILY,\n" " .nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP\n" " },\n" " .udr = {\n" " .sdiag_family = AF_UNIX,\n" " .udiag_states = -1,\n" " .udiag_show = UDIAG_SHOW_NAME | UDIAG_SHOW_PEER\n" " }\n" " };\n" " struct iovec iov = {\n" " .iov_base = &req,\n" " .iov_len = sizeof(req)\n" " };\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " for (;;) {\n" " if (sendmsg(fd, &msg, 0) E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"sendmsg\");\n" " return -1;\n" " }\n" "\\&\n" " return 0;\n" " }\n" "}\n" "\\&\n" "static int\n" "print_diag(const struct unix_diag_msg *diag, unsigned int size)\n" "{\n" " if (size E NLMSG_LENGTH(sizeof(*diag))) {\n" " fputs(\"short response\\[rs]n\", stderr);\n" " return -1;\n" " }\n" " if (diag-Eudiag_family != AF_UNIX) {\n" " fprintf(stderr, \"unexpected family %u\\[rs]n\", diag-Eudiag_family);\n" " return -1;\n" " }\n" "\\&\n" " unsigned int rta_len = size - NLMSG_LENGTH(sizeof(*diag));\n" " unsigned int peer = 0;\n" " size_t path_len = 0;\n" " char path[sizeof(((struct sockaddr_un *) 0)-Esun_path) + 1];\n" "\\&\n" " for (struct rtattr *attr = (struct rtattr *) (diag + 1);\n" " RTA_OK(attr, rta_len); attr = RTA_NEXT(attr, rta_len)) {\n" " switch (attr-Erta_type) {\n" " case UNIX_DIAG_NAME:\n" " if (!path_len) {\n" " path_len = RTA_PAYLOAD(attr);\n" " if (path_len E sizeof(path) - 1)\n" " path_len = sizeof(path) - 1;\n" " memcpy(path, RTA_DATA(attr), path_len);\n" " path[path_len] = \\[aq]\\[rs]0\\[aq];\n" " }\n" " break;\n" "\\&\n" " case UNIX_DIAG_PEER:\n" " if (RTA_PAYLOAD(attr) E= sizeof(peer))\n" " peer = *(unsigned int *) RTA_DATA(attr);\n" " break;\n" " }\n" " }\n" "\\&\n" " printf(\"inode=%u\", diag-Eudiag_ino);\n" "\\&\n" " if (peer)\n" " printf(\", peer=%u\", peer);\n" "\\&\n" " if (path_len)\n" " printf(\", name=%s%s\", *path ? \"\" : \"@\",\n" " *path ? path : path + 1);\n" "\\&\n" " putchar(\\[aq]\\[rs]n\\[aq]);\n" " return 0;\n" "}\n" "\\&\n" "static int\n" "receive_responses(int fd)\n" "{\n" " long buf[8192 / sizeof(long)];\n" " struct sockaddr_nl nladdr;\n" " struct iovec iov = {\n" " .iov_base = buf,\n" " .iov_len = sizeof(buf)\n" " };\n" " int flags = 0;\n" "\\&\n" " for (;;) {\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " ssize_t ret = recvmsg(fd, &msg, flags);\n" "\\&\n" " if (ret E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"recvmsg\");\n" " return -1;\n" " }\n" " if (ret == 0)\n" " return 0;\n" "\\&\n" " if (nladdr.nl_family != AF_NETLINK) {\n" " fputs(\"!AF_NETLINK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " const struct nlmsghdr *h = (struct nlmsghdr *) buf;\n" "\\&\n" " if (!NLMSG_OK(h, ret)) {\n" " fputs(\"!NLMSG_OK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " for (; NLMSG_OK(h, ret); h = NLMSG_NEXT(h, ret)) {\n" " if (h-Enlmsg_type == NLMSG_DONE)\n" " return 0;\n" "\\&\n" " if (h-Enlmsg_type == NLMSG_ERROR) {\n" " const struct nlmsgerr *err = NLMSG_DATA(h);\n" "\\&\n" " if (h-Enlmsg_len E NLMSG_LENGTH(sizeof(*err))) {\n" " fputs(\"NLMSG_ERROR\\[rs]n\", stderr);\n" " } else {\n" " errno = -err-Eerror;\n" " perror(\"NLMSG_ERROR\");\n" " }\n" "\\&\n" " return -1;\n" " }\n" "\\&\n" " if (h-Enlmsg_type != SOCK_DIAG_BY_FAMILY) {\n" " fprintf(stderr, \"unexpected nlmsg_type %u\\[rs]n\",\n" " (unsigned) h-Enlmsg_type);\n" " return -1;\n" " }\n" "\\&\n" " if (print_diag(NLMSG_DATA(h), h-Enlmsg_len))\n" " return -1;\n" " }\n" " }\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);\n" "\\&\n" " if (fd E 0) {\n" " perror(\"socket\");\n" " return 1;\n" " }\n" "\\&\n" " int ret = send_query(fd) || receive_responses(fd);\n" "\\&\n" " close(fd);\n" " return ret;\n" "}\n" msgstr "" "#include Eerrno.hE\n" "#include Estdio.hE\n" "#include Estring.hE\n" "#include Eunistd.hE\n" "#include Esys/socket.hE\n" "#include Esys/un.hE\n" "#include Elinux/netlink.hE\n" "#include Elinux/rtnetlink.hE\n" "#include Elinux/sock_diag.hE\n" "#include Elinux/unix_diag.hE\n" "\\&\n" "static int\n" "send_query(int fd)\n" "{\n" " struct sockaddr_nl nladdr = {\n" " .nl_family = AF_NETLINK\n" " };\n" " struct\n" " {\n" " struct nlmsghdr nlh;\n" " struct unix_diag_req udr;\n" " } req = {\n" " .nlh = {\n" " .nlmsg_len = sizeof(req),\n" " .nlmsg_type = SOCK_DIAG_BY_FAMILY,\n" " .nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP\n" " },\n" " .udr = {\n" " .sdiag_family = AF_UNIX,\n" " .udiag_states = -1,\n" " .udiag_show = UDIAG_SHOW_NAME | UDIAG_SHOW_PEER\n" " }\n" " };\n" " struct iovec iov = {\n" " .iov_base = &req,\n" " .iov_len = sizeof(req)\n" " };\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " for (;;) {\n" " if (sendmsg(fd, &msg, 0) E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"sendmsg\");\n" " return -1;\n" " }\n" "\\&\n" " return 0;\n" " }\n" "}\n" "\\&\n" "static int\n" "print_diag(const struct unix_diag_msg *diag, unsigned int size)\n" "{\n" " if (size E NLMSG_LENGTH(sizeof(*diag))) {\n" " fputs(\"short response\\[rs]n\", stderr);\n" " return -1;\n" " }\n" " if (diag-Eudiag_family != AF_UNIX) {\n" " fprintf(stderr, \"unexpected family %u\\[rs]n\", diag-Eudiag_family);\n" " return -1;\n" " }\n" "\\&\n" " unsigned int rta_len = size - NLMSG_LENGTH(sizeof(*diag));\n" " unsigned int peer = 0;\n" " size_t path_len = 0;\n" " char path[sizeof(((struct sockaddr_un *) 0)-Esun_path) + 1];\n" "\\&\n" " for (struct rtattr *attr = (struct rtattr *) (diag + 1);\n" " RTA_OK(attr, rta_len); attr = RTA_NEXT(attr, rta_len)) {\n" " switch (attr-Erta_type) {\n" " case UNIX_DIAG_NAME:\n" " if (!path_len) {\n" " path_len = RTA_PAYLOAD(attr);\n" " if (path_len E sizeof(path) - 1)\n" " path_len = sizeof(path) - 1;\n" " memcpy(path, RTA_DATA(attr), path_len);\n" " path[path_len] = \\[aq]\\[rs]0\\[aq];\n" " }\n" " break;\n" "\\&\n" " case UNIX_DIAG_PEER:\n" " if (RTA_PAYLOAD(attr) E= sizeof(peer))\n" " peer = *(unsigned int *) RTA_DATA(attr);\n" " break;\n" " }\n" " }\n" "\\&\n" " printf(\"inode=%u\", diag-Eudiag_ino);\n" "\\&\n" " if (peer)\n" " printf(\", peer=%u\", peer);\n" "\\&\n" " if (path_len)\n" " printf(\", name=%s%s\", *path ? \"\" : \"@\",\n" " *path ? path : path + 1);\n" "\\&\n" " putchar(\\[aq]\\[rs]n\\[aq]);\n" " return 0;\n" "}\n" "\\&\n" "static int\n" "receive_responses(int fd)\n" "{\n" " long buf[8192 / sizeof(long)];\n" " struct sockaddr_nl nladdr;\n" " struct iovec iov = {\n" " .iov_base = buf,\n" " .iov_len = sizeof(buf)\n" " };\n" " int flags = 0;\n" "\\&\n" " for (;;) {\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " ssize_t ret = recvmsg(fd, &msg, flags);\n" "\\&\n" " if (ret E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"recvmsg\");\n" " return -1;\n" " }\n" " if (ret == 0)\n" " return 0;\n" "\\&\n" " if (nladdr.nl_family != AF_NETLINK) {\n" " fputs(\"!AF_NETLINK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " const struct nlmsghdr *h = (struct nlmsghdr *) buf;\n" "\\&\n" " if (!NLMSG_OK(h, ret)) {\n" " fputs(\"!NLMSG_OK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " for (; NLMSG_OK(h, ret); h = NLMSG_NEXT(h, ret)) {\n" " if (h-Enlmsg_type == NLMSG_DONE)\n" " return 0;\n" "\\&\n" " if (h-Enlmsg_type == NLMSG_ERROR) {\n" " const struct nlmsgerr *err = NLMSG_DATA(h);\n" "\\&\n" " if (h-Enlmsg_len E NLMSG_LENGTH(sizeof(*err))) {\n" " fputs(\"NLMSG_ERROR\\[rs]n\", stderr);\n" " } else {\n" " errno = -err-Eerror;\n" " perror(\"NLMSG_ERROR\");\n" " }\n" "\\&\n" " return -1;\n" " }\n" "\\&\n" " if (h-Enlmsg_type != SOCK_DIAG_BY_FAMILY) {\n" " fprintf(stderr, \"unexpected nlmsg_type %u\\[rs]n\",\n" " (unsigned) h-Enlmsg_type);\n" " return -1;\n" " }\n" "\\&\n" " if (print_diag(NLMSG_DATA(h), h-Enlmsg_len))\n" " return -1;\n" " }\n" " }\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);\n" "\\&\n" " if (fd E 0) {\n" " perror(\"socket\");\n" " return 1;\n" " }\n" "\\&\n" " int ret = send_query(fd) || receive_responses(fd);\n" "\\&\n" " close(fd);\n" " return ret;\n" "}\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(3), B(3), B(7), B(7)" msgstr "B(3)، B(3)، B(7)، B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "" "The attribute reported in answer to this request is B. The " "payload associated with this attribute is the pathname to which the socket " "was bound (a sequence of bytes up to B length)." msgstr "" "السمة المُبلغ عنها استجابةً لهذا الطلب هي B. الحمولة المرتبطة " "بهذه السمة هي مسار الملف الذي تم ربط المأخذ به (تسلسل من البايتات يصل طوله " "إلى B)." #. type: Plain text #: debian-trixie msgid "" "For listening sockets: the number of pending connections. The length of the " "array associated with the B response attribute is equal to " "this value." msgstr "" "بالنسبة لمنافذ الاستماع: عدد الاتصالات المعلقة. ويساوي طول المصفوفة " "المرتبطة بسمة الاستجابة B هذه القيمة." #. type: Plain text #: debian-trixie msgid "" "For listening sockets: the backlog length which equals to the value passed " "as the second argument to B(2)." msgstr "" "بالنسبة لمنافذ الاستماع: طول قائمة الانتظار التي تعادل القيمة المررة كحجة " "ثانية إلى B(2)." #. type: Plain text #: debian-trixie msgid "For listening sockets: the backlog length." msgstr "بالنسبة لمقابس الاستماع: طول التراكم." #. type: Plain text #: debian-trixie #, no-wrap msgid "" "#include Eerrno.hE\n" "#include Estdio.hE\n" "#include Estring.hE\n" "#include Eunistd.hE\n" "#include Esys/socket.hE\n" "#include Esys/un.hE\n" "#include Elinux/netlink.hE\n" "#include Elinux/rtnetlink.hE\n" "#include Elinux/sock_diag.hE\n" "#include Elinux/unix_diag.hE\n" "\\&\n" "static int\n" "send_query(int fd)\n" "{\n" " struct sockaddr_nl nladdr = {\n" " .nl_family = AF_NETLINK\n" " };\n" " struct\n" " {\n" " struct nlmsghdr nlh;\n" " struct unix_diag_req udr;\n" " } req = {\n" " .nlh = {\n" " .nlmsg_len = sizeof(req),\n" " .nlmsg_type = SOCK_DIAG_BY_FAMILY,\n" " .nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP\n" " },\n" " .udr = {\n" " .sdiag_family = AF_UNIX,\n" " .udiag_states = -1,\n" " .udiag_show = UDIAG_SHOW_NAME | UDIAG_SHOW_PEER\n" " }\n" " };\n" " struct iovec iov = {\n" " .iov_base = &req,\n" " .iov_len = sizeof(req)\n" " };\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " for (;;) {\n" " if (sendmsg(fd, &msg, 0) E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"sendmsg\");\n" " return -1;\n" " }\n" "\\&\n" " return 0;\n" " }\n" "}\n" "\\&\n" "static int\n" "print_diag(const struct unix_diag_msg *diag, unsigned int len)\n" "{\n" " if (len E NLMSG_LENGTH(sizeof(*diag))) {\n" " fputs(\"short response\\[rs]n\", stderr);\n" " return -1;\n" " }\n" " if (diag-Eudiag_family != AF_UNIX) {\n" " fprintf(stderr, \"unexpected family %u\\[rs]n\", diag-Eudiag_family);\n" " return -1;\n" " }\n" "\\&\n" " unsigned int rta_len = len - NLMSG_LENGTH(sizeof(*diag));\n" " unsigned int peer = 0;\n" " size_t path_len = 0;\n" " char path[sizeof(((struct sockaddr_un *) 0)-Esun_path) + 1];\n" "\\&\n" " for (struct rtattr *attr = (struct rtattr *) (diag + 1);\n" " RTA_OK(attr, rta_len); attr = RTA_NEXT(attr, rta_len)) {\n" " switch (attr-Erta_type) {\n" " case UNIX_DIAG_NAME:\n" " if (!path_len) {\n" " path_len = RTA_PAYLOAD(attr);\n" " if (path_len E sizeof(path) - 1)\n" " path_len = sizeof(path) - 1;\n" " memcpy(path, RTA_DATA(attr), path_len);\n" " path[path_len] = \\[aq]\\[rs]0\\[aq];\n" " }\n" " break;\n" "\\&\n" " case UNIX_DIAG_PEER:\n" " if (RTA_PAYLOAD(attr) E= sizeof(peer))\n" " peer = *(unsigned int *) RTA_DATA(attr);\n" " break;\n" " }\n" " }\n" "\\&\n" " printf(\"inode=%u\", diag-Eudiag_ino);\n" "\\&\n" " if (peer)\n" " printf(\", peer=%u\", peer);\n" "\\&\n" " if (path_len)\n" " printf(\", name=%s%s\", *path ? \"\" : \"@\",\n" " *path ? path : path + 1);\n" "\\&\n" " putchar(\\[aq]\\[rs]n\\[aq]);\n" " return 0;\n" "}\n" "\\&\n" "static int\n" "receive_responses(int fd)\n" "{\n" " long buf[8192 / sizeof(long)];\n" " struct sockaddr_nl nladdr;\n" " struct iovec iov = {\n" " .iov_base = buf,\n" " .iov_len = sizeof(buf)\n" " };\n" " int flags = 0;\n" "\\&\n" " for (;;) {\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " ssize_t ret = recvmsg(fd, &msg, flags);\n" "\\&\n" " if (ret E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"recvmsg\");\n" " return -1;\n" " }\n" " if (ret == 0)\n" " return 0;\n" "\\&\n" " if (nladdr.nl_family != AF_NETLINK) {\n" " fputs(\"!AF_NETLINK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " const struct nlmsghdr *h = (struct nlmsghdr *) buf;\n" "\\&\n" " if (!NLMSG_OK(h, ret)) {\n" " fputs(\"!NLMSG_OK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " for (; NLMSG_OK(h, ret); h = NLMSG_NEXT(h, ret)) {\n" " if (h-Enlmsg_type == NLMSG_DONE)\n" " return 0;\n" "\\&\n" " if (h-Enlmsg_type == NLMSG_ERROR) {\n" " const struct nlmsgerr *err = NLMSG_DATA(h);\n" "\\&\n" " if (h-Enlmsg_len E NLMSG_LENGTH(sizeof(*err))) {\n" " fputs(\"NLMSG_ERROR\\[rs]n\", stderr);\n" " } else {\n" " errno = -err-Eerror;\n" " perror(\"NLMSG_ERROR\");\n" " }\n" "\\&\n" " return -1;\n" " }\n" "\\&\n" " if (h-Enlmsg_type != SOCK_DIAG_BY_FAMILY) {\n" " fprintf(stderr, \"unexpected nlmsg_type %u\\[rs]n\",\n" " (unsigned) h-Enlmsg_type);\n" " return -1;\n" " }\n" "\\&\n" " if (print_diag(NLMSG_DATA(h), h-Enlmsg_len))\n" " return -1;\n" " }\n" " }\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);\n" "\\&\n" " if (fd E 0) {\n" " perror(\"socket\");\n" " return 1;\n" " }\n" "\\&\n" " int ret = send_query(fd) || receive_responses(fd);\n" "\\&\n" " close(fd);\n" " return ret;\n" "}\n" msgstr "" "#include Eerrno.hE\n" "#include Estdio.hE\n" "#include Estring.hE\n" "#include Eunistd.hE\n" "#include Esys/socket.hE\n" "#include Esys/un.hE\n" "#include Elinux/netlink.hE\n" "#include Elinux/rtnetlink.hE\n" "#include Elinux/sock_diag.hE\n" "#include Elinux/unix_diag.hE\n" "\\&\n" "static int\n" "send_query(int fd)\n" "{\n" " struct sockaddr_nl nladdr = {\n" " .nl_family = AF_NETLINK\n" " };\n" " struct\n" " {\n" " struct nlmsghdr nlh;\n" " struct unix_diag_req udr;\n" " } req = {\n" " .nlh = {\n" " .nlmsg_len = sizeof(req),\n" " .nlmsg_type = SOCK_DIAG_BY_FAMILY,\n" " .nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP\n" " },\n" " .udr = {\n" " .sdiag_family = AF_UNIX,\n" " .udiag_states = -1,\n" " .udiag_show = UDIAG_SHOW_NAME | UDIAG_SHOW_PEER\n" " }\n" " };\n" " struct iovec iov = {\n" " .iov_base = &req,\n" " .iov_len = sizeof(req)\n" " };\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " for (;;) {\n" " if (sendmsg(fd, &msg, 0) E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"sendmsg\");\n" " return -1;\n" " }\n" "\\&\n" " return 0;\n" " }\n" "}\n" "\\&\n" "static int\n" "print_diag(const struct unix_diag_msg *diag, unsigned int len)\n" "{\n" " if (len E NLMSG_LENGTH(sizeof(*diag))) {\n" " fputs(\"short response\\[rs]n\", stderr);\n" " return -1;\n" " }\n" " if (diag-Eudiag_family != AF_UNIX) {\n" " fprintf(stderr, \"unexpected family %u\\[rs]n\", diag-Eudiag_family);\n" " return -1;\n" " }\n" "\\&\n" " unsigned int rta_len = len - NLMSG_LENGTH(sizeof(*diag));\n" " unsigned int peer = 0;\n" " size_t path_len = 0;\n" " char path[sizeof(((struct sockaddr_un *) 0)-Esun_path) + 1];\n" "\\&\n" " for (struct rtattr *attr = (struct rtattr *) (diag + 1);\n" " RTA_OK(attr, rta_len); attr = RTA_NEXT(attr, rta_len)) {\n" " switch (attr-Erta_type) {\n" " case UNIX_DIAG_NAME:\n" " if (!path_len) {\n" " path_len = RTA_PAYLOAD(attr);\n" " if (path_len E sizeof(path) - 1)\n" " path_len = sizeof(path) - 1;\n" " memcpy(path, RTA_DATA(attr), path_len);\n" " path[path_len] = \\[aq]\\[rs]0\\[aq];\n" " }\n" " break;\n" "\\&\n" " case UNIX_DIAG_PEER:\n" " if (RTA_PAYLOAD(attr) E= sizeof(peer))\n" " peer = *(unsigned int *) RTA_DATA(attr);\n" " break;\n" " }\n" " }\n" "\\&\n" " printf(\"inode=%u\", diag-Eudiag_ino);\n" "\\&\n" " if (peer)\n" " printf(\", peer=%u\", peer);\n" "\\&\n" " if (path_len)\n" " printf(\", name=%s%s\", *path ? \"\" : \"@\",\n" " *path ? path : path + 1);\n" "\\&\n" " putchar(\\[aq]\\[rs]n\\[aq]);\n" " return 0;\n" "}\n" "\\&\n" "static int\n" "receive_responses(int fd)\n" "{\n" " long buf[8192 / sizeof(long)];\n" " struct sockaddr_nl nladdr;\n" " struct iovec iov = {\n" " .iov_base = buf,\n" " .iov_len = sizeof(buf)\n" " };\n" " int flags = 0;\n" "\\&\n" " for (;;) {\n" " struct msghdr msg = {\n" " .msg_name = &nladdr,\n" " .msg_namelen = sizeof(nladdr),\n" " .msg_iov = &iov,\n" " .msg_iovlen = 1\n" " };\n" "\\&\n" " ssize_t ret = recvmsg(fd, &msg, flags);\n" "\\&\n" " if (ret E 0) {\n" " if (errno == EINTR)\n" " continue;\n" "\\&\n" " perror(\"recvmsg\");\n" " return -1;\n" " }\n" " if (ret == 0)\n" " return 0;\n" "\\&\n" " if (nladdr.nl_family != AF_NETLINK) {\n" " fputs(\"!AF_NETLINK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " const struct nlmsghdr *h = (struct nlmsghdr *) buf;\n" "\\&\n" " if (!NLMSG_OK(h, ret)) {\n" " fputs(\"!NLMSG_OK\\[rs]n\", stderr);\n" " return -1;\n" " }\n" "\\&\n" " for (; NLMSG_OK(h, ret); h = NLMSG_NEXT(h, ret)) {\n" " if (h-Enlmsg_type == NLMSG_DONE)\n" " return 0;\n" "\\&\n" " if (h-Enlmsg_type == NLMSG_ERROR) {\n" " const struct nlmsgerr *err = NLMSG_DATA(h);\n" "\\&\n" " if (h-Enlmsg_len E NLMSG_LENGTH(sizeof(*err))) {\n" " fputs(\"NLMSG_ERROR\\[rs]n\", stderr);\n" " } else {\n" " errno = -err-Eerror;\n" " perror(\"NLMSG_ERROR\");\n" " }\n" "\\&\n" " return -1;\n" " }\n" "\\&\n" " if (h-Enlmsg_type != SOCK_DIAG_BY_FAMILY) {\n" " fprintf(stderr, \"unexpected nlmsg_type %u\\[rs]n\",\n" " (unsigned) h-Enlmsg_type);\n" " return -1;\n" " }\n" "\\&\n" " if (print_diag(NLMSG_DATA(h), h-Enlmsg_len))\n" " return -1;\n" " }\n" " }\n" "}\n" "\\&\n" "int\n" "main(void)\n" "{\n" " int fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_SOCK_DIAG);\n" "\\&\n" " if (fd E 0) {\n" " perror(\"socket\");\n" " return 1;\n" " }\n" "\\&\n" " int ret = send_query(fd) || receive_responses(fd);\n" "\\&\n" " close(fd);\n" " return ret;\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-11-17" msgstr "17 نوفمبر 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"