| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# aereiae <[email protected]>, 2014. |
| 5 |
# Azamat Hackimov <[email protected]>, 2013-2014, 2016. |
| 6 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 7 |
# Katrin Kutepova <[email protected]>, 2018. |
| 8 |
# Lockal <[email protected]>, 2013. |
| 9 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 10 |
# Баринов Владимир, 2016. |
| 11 |
# Иван Павлов <[email protected]>, 2017,2019. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:40+0200\n" |
| 16 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 17 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 18 |
"Language-Team: Russian <[email protected]>\n" |
| 19 |
"Language: ru\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 24 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 25 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 26 |
"X-Generator: Lokalize 2.0\n" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 30 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "rtnetlink" |
| 33 |
msgstr "" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 37 |
#: opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "2026-02-08" |
| 40 |
msgstr "8 февраля 2026 г." |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable |
| 44 |
#, fuzzy, no-wrap |
| 45 |
#| msgid "Linux man-pages 6.17" |
| 46 |
msgid "Linux man-pages 6.18" |
| 47 |
msgstr "Справочные страницы Linux 6.17" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, no-wrap |
| 53 |
msgid "NAME" |
| 54 |
msgstr "НАИМЕНОВАНИЕ" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
msgid "rtnetlink - macros to manipulate rtnetlink messages" |
| 60 |
msgstr "rtnetlink - макросы для обработки сообщений rtnetlink" |
| 61 |
|
| 62 |
#. type: SH |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
#, no-wrap |
| 66 |
msgid "LIBRARY" |
| 67 |
msgstr "БИБЛИОТЕКА" |
| 68 |
|
| 69 |
#. type: Plain text |
| 70 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 71 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 73 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 74 |
|
| 75 |
#. type: SH |
| 76 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 77 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
#, no-wrap |
| 79 |
msgid "SYNOPSIS" |
| 80 |
msgstr "СИНТАКСИС" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, no-wrap |
| 86 |
msgid "" |
| 87 |
"B<#include E<lt>asm/types.hE<gt>>\n" |
| 88 |
"B<#include E<lt>linux/netlink.hE<gt>>\n" |
| 89 |
"B<#include E<lt>linux/rtnetlink.hE<gt>>\n" |
| 90 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 91 |
msgstr "" |
| 92 |
"B<#include E<lt>asm/types.hE<gt>>\n" |
| 93 |
"B<#include E<lt>linux/netlink.hE<gt>>\n" |
| 94 |
"B<#include E<lt>linux/rtnetlink.hE<gt>>\n" |
| 95 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 99 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
#, no-wrap |
| 101 |
msgid "B<rtnetlink_socket = socket(AF_NETLINK, int >I<socket_type>B<, NETLINK_ROUTE);>\n" |
| 102 |
msgstr "B<rtnetlink_socket = socket(AF_NETLINK, int >I<socket_type>B<, NETLINK_ROUTE);>\n" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 106 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
#, fuzzy, no-wrap |
| 108 |
#| msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>" |
| 109 |
msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<size>B<);>\n" |
| 110 |
msgstr "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>" |
| 111 |
|
| 112 |
#. type: Plain text |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, fuzzy, no-wrap |
| 116 |
#| msgid "B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>" |
| 117 |
msgid "" |
| 118 |
"B<void *RTA_DATA(struct rtattr *>I<rta>B<);>\n" |
| 119 |
"B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>\n" |
| 120 |
msgstr "B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>" |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 124 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, fuzzy, no-wrap |
| 126 |
#| msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>" |
| 127 |
msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<size>B<);>\n" |
| 128 |
msgstr "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>" |
| 129 |
|
| 130 |
#. type: Plain text |
| 131 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 132 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 133 |
#, fuzzy, no-wrap |
| 134 |
#| msgid "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>" |
| 135 |
msgid "" |
| 136 |
"B<unsigned int RTA_LENGTH(unsigned int >I<size>B<);>\n" |
| 137 |
"B<unsigned int RTA_SPACE(unsigned int >I<size>B<);>\n" |
| 138 |
msgstr "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>" |
| 139 |
|
| 140 |
#. type: SH |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
#, no-wrap |
| 144 |
msgid "DESCRIPTION" |
| 145 |
msgstr "ОПИСАНИЕ" |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
msgid "" |
| 151 |
"All B<rtnetlink>(7) messages consist of a B<netlink>(7) message header and " |
| 152 |
"appended attributes. The attributes should be manipulated only using the " |
| 153 |
"macros provided here." |
| 154 |
msgstr "" |
| 155 |
"Все сообщения B<rtnetlink>(7) состоят из заголовка сообщений B<netlink>(7) и " |
| 156 |
"дополнительных атрибутов. Атрибуты могут быть обработаны только описанными " |
| 157 |
"здесь макросами." |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 161 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
#, fuzzy |
| 163 |
#| msgid "" |
| 164 |
#| "B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> returns true if I<rta> points to a " |
| 165 |
#| "valid routing attribute; I<attrlen> is the running length of the " |
| 166 |
#| "attribute buffer. When not true then you must assume there are no more " |
| 167 |
#| "attributes in the message, even if I<attrlen> is nonzero." |
| 168 |
msgid "" |
| 169 |
"B<RTA_OK(>I<rta>B<, >I<size>B<)> returns true if I<rta> points to a valid " |
| 170 |
"routing attribute; I<size> is the running size of the attribute buffer. " |
| 171 |
"When not true then you must assume there are no more attributes in the " |
| 172 |
"message, even if I<size> is nonzero." |
| 173 |
msgstr "" |
| 174 |
"B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> возвращает истинное значение в случае, " |
| 175 |
"если I<rta> указывает на правильный атрибут маршрутизации; I<attrlen> — " |
| 176 |
"рабочая длина буфера атрибутов. Если возвращаемое значение ложно, то в " |
| 177 |
"сообщении больше нет атрибутов, даже если I<attrlen> не равно нулю." |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"B<RTA_DATA(>I<rta>B<)> returns a pointer to the start of this attribute's " |
| 184 |
"data." |
| 185 |
msgstr "B<RTA_DATA(>I<rta>B<)> возвращает указатель на начало данных атрибута." |
| 186 |
|
| 187 |
#. type: Plain text |
| 188 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 189 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
#, fuzzy |
| 191 |
#| msgid "" |
| 192 |
#| "B<RTA_PAYLOAD(>I<rta>B<)> returns the length of this attribute's data." |
| 193 |
msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the size of this attribute's data." |
| 194 |
msgstr "B<RTA_PAYLOAD(>I<rta>B<)> возвращает длину данных атрибута." |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 198 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
#, fuzzy |
| 200 |
#| msgid "" |
| 201 |
#| "B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> gets the next attribute after " |
| 202 |
#| "I<rta>. Calling this macro will update I<attrlen>. You should use " |
| 203 |
#| "B<RTA_OK> to check the validity of the returned pointer." |
| 204 |
msgid "" |
| 205 |
"B<RTA_NEXT(>I<rta>B<, >I<size>B<)> gets the next attribute after I<rta>. " |
| 206 |
"Calling this macro will update I<size>. You should use B<RTA_OK> to check " |
| 207 |
"the validity of the returned pointer." |
| 208 |
msgstr "" |
| 209 |
"B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> считывает следующий за I<rta> атрибут. " |
| 210 |
"Вызов этого макроса обновит I<attrlen>. Для проверки правильности " |
| 211 |
"полученного указателя используйте B<RTA_OK>." |
| 212 |
|
| 213 |
#. type: Plain text |
| 214 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 215 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, fuzzy |
| 217 |
#| msgid "" |
| 218 |
#| "B<RTA_LENGTH(>I<len>B<)> returns the length which is required for I<len> " |
| 219 |
#| "bytes of data plus the header." |
| 220 |
msgid "" |
| 221 |
"B<RTA_LENGTH(>I<size>B<)> returns the size which is required for I<size> " |
| 222 |
"bytes of data plus the header." |
| 223 |
msgstr "" |
| 224 |
"B<RTA_LENGTH(>I<len>B<)> возвращает длину, которая требуется для I<len> " |
| 225 |
"байтов данных плюс заголовок." |
| 226 |
|
| 227 |
#. type: Plain text |
| 228 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 229 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, fuzzy |
| 231 |
#| msgid "" |
| 232 |
#| "B<RTA_SPACE(>I<len>B<)> returns the amount of space which will be needed " |
| 233 |
#| "in a message with I<len> bytes of data." |
| 234 |
msgid "" |
| 235 |
"B<RTA_SPACE(>I<size>B<)> returns the amount of space which will be needed in " |
| 236 |
"a message with I<size> bytes of data." |
| 237 |
msgstr "" |
| 238 |
"B<RTA_SPACE(>I<len>B<)> возвращает количество места, которое требуется для " |
| 239 |
"сообщения с данными длиной I<len> байт." |
| 240 |
|
| 241 |
#. type: SH |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "STANDARDS" |
| 246 |
msgstr "СТАНДАРТЫ" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
msgid "Linux." |
| 252 |
msgstr "Linux." |
| 253 |
|
| 254 |
#. type: SH |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
#, no-wrap |
| 258 |
msgid "BUGS" |
| 259 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 260 |
|
| 261 |
#. type: Plain text |
| 262 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 263 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 264 |
msgid "This manual page is incomplete." |
| 265 |
msgstr "Данная справочная страница не полна." |
| 266 |
|
| 267 |
#. type: SH |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
#, no-wrap |
| 271 |
msgid "EXAMPLES" |
| 272 |
msgstr "ПРИМЕРЫ" |
| 273 |
|
| 274 |
#. FIXME . ? would be better to use libnetlink in the EXAMPLE code here |
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "Creating a rtnetlink message to set the MTU of a device:" |
| 279 |
msgstr "Создание сообщения rtnetlink для установки MTU устройства:" |
| 280 |
|
| 281 |
#. type: Plain text |
| 282 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 283 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, fuzzy, no-wrap |
| 285 |
#| msgid "" |
| 286 |
#| "memset(&req, 0, sizeof(req));\n" |
| 287 |
#| "req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));\n" |
| 288 |
#| "req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 289 |
#| "req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 290 |
#| "req.if.ifi_family = AF_UNSPEC;\n" |
| 291 |
#| "req.if.ifi_index = INTERFACE_INDEX;\n" |
| 292 |
#| "req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 293 |
#| "rta = (struct rtattr *)(((char *) &req) +\n" |
| 294 |
#| " NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 295 |
#| "rta-E<gt>rta_type = IFLA_MTU;\n" |
| 296 |
#| "rta-E<gt>rta_len = RTA_LENGTH(sizeof(unsigned int));\n" |
| 297 |
#| "req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 298 |
#| " RTA_LENGTH(sizeof(mtu));\n" |
| 299 |
#| "memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 300 |
#| "send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 301 |
msgid "" |
| 302 |
"#include E<lt>linux/rtnetlink.hE<gt>\n" |
| 303 |
"\\&\n" |
| 304 |
"\\&...\n" |
| 305 |
"\\&\n" |
| 306 |
"struct {\n" |
| 307 |
" struct nlmsghdr nh;\n" |
| 308 |
" struct ifinfomsg if;\n" |
| 309 |
" char attrbuf[512];\n" |
| 310 |
"} req;\n" |
| 311 |
"\\&\n" |
| 312 |
"struct rtattr *rta;\n" |
| 313 |
"unsigned int mtu = 1000;\n" |
| 314 |
"\\&\n" |
| 315 |
"int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\n" |
| 316 |
"\\&\n" |
| 317 |
"memset(&req, 0, sizeof(req));\n" |
| 318 |
"req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n" |
| 319 |
"req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 320 |
"req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 321 |
"req.if.ifi_family = AF_UNSPEC;\n" |
| 322 |
"req.if.ifi_index = INTERFACE_INDEX;\n" |
| 323 |
"req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 324 |
"rta = (struct rtattr *) ((char *) &req +\n" |
| 325 |
" NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 326 |
"rta-E<gt>rta_type = IFLA_MTU;\n" |
| 327 |
"rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n" |
| 328 |
"req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 329 |
" RTA_LENGTH(sizeof(mtu));\n" |
| 330 |
"memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 331 |
"send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 332 |
msgstr "" |
| 333 |
"memset(&req, 0, sizeof(req));\n" |
| 334 |
"req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));\n" |
| 335 |
"req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 336 |
"req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 337 |
"req.if.ifi_family = AF_UNSPEC;\n" |
| 338 |
"req.if.ifi_index = INTERFACE_INDEX;\n" |
| 339 |
"req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 340 |
"rta = (struct rtattr *)(((char *) &req) +\n" |
| 341 |
" NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 342 |
"rta-E<gt>rta_type = IFLA_MTU;\n" |
| 343 |
"rta-E<gt>rta_len = RTA_LENGTH(sizeof(unsigned int));\n" |
| 344 |
"req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 345 |
" RTA_LENGTH(sizeof(mtu));\n" |
| 346 |
"memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 347 |
"send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 348 |
|
| 349 |
#. type: SH |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
#, no-wrap |
| 353 |
msgid "SEE ALSO" |
| 354 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 355 |
|
| 356 |
#. type: Plain text |
| 357 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 358 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 359 |
msgid "B<netlink>(3), B<netlink>(7), B<rtnetlink>(7)" |
| 360 |
msgstr "B<netlink>(3), B<netlink>(7), B<rtnetlink>(7)" |
| 361 |
|
| 362 |
#. type: TH |
| 363 |
#: debian-trixie |
| 364 |
#, no-wrap |
| 365 |
msgid "2024-05-02" |
| 366 |
msgstr "2 мая 2024 г." |
| 367 |
|
| 368 |
#. type: TH |
| 369 |
#: debian-trixie |
| 370 |
#, no-wrap |
| 371 |
msgid "Linux man-pages 6.9.1" |
| 372 |
msgstr "Страницы руководства Linux 6.9.1" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: debian-trixie |
| 376 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 377 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: debian-trixie |
| 381 |
#, fuzzy, no-wrap |
| 382 |
#| msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>" |
| 383 |
msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>\n" |
| 384 |
msgstr "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>" |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: debian-trixie |
| 388 |
#, fuzzy, no-wrap |
| 389 |
#| msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>" |
| 390 |
msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>\n" |
| 391 |
msgstr "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>" |
| 392 |
|
| 393 |
#. type: Plain text |
| 394 |
#: debian-trixie |
| 395 |
#, fuzzy, no-wrap |
| 396 |
#| msgid "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>" |
| 397 |
msgid "" |
| 398 |
"B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>\n" |
| 399 |
"B<unsigned int RTA_SPACE(unsigned int >I<length>B<);>\n" |
| 400 |
msgstr "B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>" |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: debian-trixie |
| 404 |
msgid "" |
| 405 |
"B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> returns true if I<rta> points to a valid " |
| 406 |
"routing attribute; I<attrlen> is the running length of the attribute " |
| 407 |
"buffer. When not true then you must assume there are no more attributes in " |
| 408 |
"the message, even if I<attrlen> is nonzero." |
| 409 |
msgstr "" |
| 410 |
"B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> возвращает истинное значение в случае, " |
| 411 |
"если I<rta> указывает на правильный атрибут маршрутизации; I<attrlen> — " |
| 412 |
"рабочая длина буфера атрибутов. Если возвращаемое значение ложно, то в " |
| 413 |
"сообщении больше нет атрибутов, даже если I<attrlen> не равно нулю." |
| 414 |
|
| 415 |
#. type: Plain text |
| 416 |
#: debian-trixie |
| 417 |
msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the length of this attribute's data." |
| 418 |
msgstr "B<RTA_PAYLOAD(>I<rta>B<)> возвращает длину данных атрибута." |
| 419 |
|
| 420 |
#. type: Plain text |
| 421 |
#: debian-trixie |
| 422 |
msgid "" |
| 423 |
"B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> gets the next attribute after I<rta>. " |
| 424 |
"Calling this macro will update I<attrlen>. You should use B<RTA_OK> to " |
| 425 |
"check the validity of the returned pointer." |
| 426 |
msgstr "" |
| 427 |
"B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> считывает следующий за I<rta> атрибут. " |
| 428 |
"Вызов этого макроса обновит I<attrlen>. Для проверки правильности " |
| 429 |
"полученного указателя используйте B<RTA_OK>." |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: debian-trixie |
| 433 |
msgid "" |
| 434 |
"B<RTA_LENGTH(>I<len>B<)> returns the length which is required for I<len> " |
| 435 |
"bytes of data plus the header." |
| 436 |
msgstr "" |
| 437 |
"B<RTA_LENGTH(>I<len>B<)> возвращает длину, которая требуется для I<len> " |
| 438 |
"байтов данных плюс заголовок." |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: debian-trixie |
| 442 |
msgid "" |
| 443 |
"B<RTA_SPACE(>I<len>B<)> returns the amount of space which will be needed in " |
| 444 |
"a message with I<len> bytes of data." |
| 445 |
msgstr "" |
| 446 |
"B<RTA_SPACE(>I<len>B<)> возвращает количество места, которое требуется для " |
| 447 |
"сообщения с данными длиной I<len> байт." |
| 448 |
|
| 449 |
#. type: Plain text |
| 450 |
#: debian-trixie |
| 451 |
#, fuzzy, no-wrap |
| 452 |
#| msgid "" |
| 453 |
#| "memset(&req, 0, sizeof(req));\n" |
| 454 |
#| "req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));\n" |
| 455 |
#| "req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 456 |
#| "req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 457 |
#| "req.if.ifi_family = AF_UNSPEC;\n" |
| 458 |
#| "req.if.ifi_index = INTERFACE_INDEX;\n" |
| 459 |
#| "req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 460 |
#| "rta = (struct rtattr *)(((char *) &req) +\n" |
| 461 |
#| " NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 462 |
#| "rta-E<gt>rta_type = IFLA_MTU;\n" |
| 463 |
#| "rta-E<gt>rta_len = RTA_LENGTH(sizeof(unsigned int));\n" |
| 464 |
#| "req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 465 |
#| " RTA_LENGTH(sizeof(mtu));\n" |
| 466 |
#| "memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 467 |
#| "send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 468 |
msgid "" |
| 469 |
"#include E<lt>linux/rtnetlink.hE<gt>\n" |
| 470 |
"\\&\n" |
| 471 |
"\\&...\n" |
| 472 |
"\\&\n" |
| 473 |
"struct {\n" |
| 474 |
" struct nlmsghdr nh;\n" |
| 475 |
" struct ifinfomsg if;\n" |
| 476 |
" char attrbuf[512];\n" |
| 477 |
"} req;\n" |
| 478 |
"\\&\n" |
| 479 |
"struct rtattr *rta;\n" |
| 480 |
"unsigned int mtu = 1000;\n" |
| 481 |
"\\&\n" |
| 482 |
"int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\n" |
| 483 |
"\\&\n" |
| 484 |
"memset(&req, 0, sizeof(req));\n" |
| 485 |
"req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n" |
| 486 |
"req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 487 |
"req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 488 |
"req.if.ifi_family = AF_UNSPEC;\n" |
| 489 |
"req.if.ifi_index = INTERFACE_INDEX;\n" |
| 490 |
"req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 491 |
"rta = (struct rtattr *)(((char *) &req) +\n" |
| 492 |
" NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 493 |
"rta-E<gt>rta_type = IFLA_MTU;\n" |
| 494 |
"rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n" |
| 495 |
"req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 496 |
" RTA_LENGTH(sizeof(mtu));\n" |
| 497 |
"memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 498 |
"send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 499 |
msgstr "" |
| 500 |
"memset(&req, 0, sizeof(req));\n" |
| 501 |
"req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));\n" |
| 502 |
"req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 503 |
"req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 504 |
"req.if.ifi_family = AF_UNSPEC;\n" |
| 505 |
"req.if.ifi_index = INTERFACE_INDEX;\n" |
| 506 |
"req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 507 |
"rta = (struct rtattr *)(((char *) &req) +\n" |
| 508 |
" NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 509 |
"rta-E<gt>rta_type = IFLA_MTU;\n" |
| 510 |
"rta-E<gt>rta_len = RTA_LENGTH(sizeof(unsigned int));\n" |
| 511 |
"req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 512 |
" RTA_LENGTH(sizeof(mtu));\n" |
| 513 |
"memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 514 |
"send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 515 |
|
| 516 |
#. type: TH |
| 517 |
#: fedora-44 fedora-rawhide |
| 518 |
#, no-wrap |
| 519 |
msgid "2025-01-05" |
| 520 |
msgstr "5 января 2025 г." |
| 521 |
|
| 522 |
#. type: TH |
| 523 |
#: fedora-44 fedora-rawhide |
| 524 |
#, no-wrap |
| 525 |
msgid "Linux man-pages 6.13" |
| 526 |
msgstr "Страницы руководства Linux 6.13" |
| 527 |
|
| 528 |
#. type: TH |
| 529 |
#: mageia-cauldron |
| 530 |
#, no-wrap |
| 531 |
msgid "Linux man-pages 6.17" |
| 532 |
msgstr "Страницы руководства Linux 6.17" |
| 533 |
|
| 534 |
#. type: TH |
| 535 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
#, no-wrap |
| 537 |
msgid "Linux man-pages (unreleased)" |
| 538 |
msgstr "Страницы руководства Linux (не выпущены)" |