| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:40+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "rtnetlink" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "rtnetlink - macros to manipulate rtnetlink messages" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "" |
| 77 |
"B<#include E<lt>asm/types.hE<gt>>\n" |
| 78 |
"B<#include E<lt>linux/netlink.hE<gt>>\n" |
| 79 |
"B<#include E<lt>linux/rtnetlink.hE<gt>>\n" |
| 80 |
"B<#include E<lt>sys/socket.hE<gt>>\n" |
| 81 |
msgstr "" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "B<rtnetlink_socket = socket(AF_NETLINK, int >I<socket_type>B<, NETLINK_ROUTE);>\n" |
| 88 |
msgstr "" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 92 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 93 |
#, no-wrap |
| 94 |
msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<size>B<);>\n" |
| 95 |
msgstr "" |
| 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 "" |
| 102 |
"B<void *RTA_DATA(struct rtattr *>I<rta>B<);>\n" |
| 103 |
"B<unsigned int RTA_PAYLOAD(struct rtattr *>I<rta>B<);>\n" |
| 104 |
msgstr "" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 108 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
#, no-wrap |
| 110 |
msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<size>B<);>\n" |
| 111 |
msgstr "" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 115 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
#, no-wrap |
| 117 |
msgid "" |
| 118 |
"B<unsigned int RTA_LENGTH(unsigned int >I<size>B<);>\n" |
| 119 |
"B<unsigned int RTA_SPACE(unsigned int >I<size>B<);>\n" |
| 120 |
msgstr "" |
| 121 |
|
| 122 |
#. type: SH |
| 123 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 124 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 125 |
#, no-wrap |
| 126 |
msgid "DESCRIPTION" |
| 127 |
msgstr "" |
| 128 |
|
| 129 |
#. type: Plain text |
| 130 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 131 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 132 |
msgid "" |
| 133 |
"All B<rtnetlink>(7) messages consist of a B<netlink>(7) message header and " |
| 134 |
"appended attributes. The attributes should be manipulated only using the " |
| 135 |
"macros provided here." |
| 136 |
msgstr "" |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 140 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
msgid "" |
| 142 |
"B<RTA_OK(>I<rta>B<, >I<size>B<)> returns true if I<rta> points to a valid " |
| 143 |
"routing attribute; I<size> is the running size of the attribute buffer. " |
| 144 |
"When not true then you must assume there are no more attributes in the " |
| 145 |
"message, even if I<size> is nonzero." |
| 146 |
msgstr "" |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
msgid "" |
| 152 |
"B<RTA_DATA(>I<rta>B<)> returns a pointer to the start of this attribute's " |
| 153 |
"data." |
| 154 |
msgstr "" |
| 155 |
|
| 156 |
#. type: Plain text |
| 157 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 158 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 159 |
msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the size of this attribute's data." |
| 160 |
msgstr "" |
| 161 |
|
| 162 |
#. type: Plain text |
| 163 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 164 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
msgid "" |
| 166 |
"B<RTA_NEXT(>I<rta>B<, >I<size>B<)> gets the next attribute after I<rta>. " |
| 167 |
"Calling this macro will update I<size>. You should use B<RTA_OK> to check " |
| 168 |
"the validity of the returned pointer." |
| 169 |
msgstr "" |
| 170 |
|
| 171 |
#. type: Plain text |
| 172 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 173 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 174 |
msgid "" |
| 175 |
"B<RTA_LENGTH(>I<size>B<)> returns the size which is required for I<size> " |
| 176 |
"bytes of data plus the header." |
| 177 |
msgstr "" |
| 178 |
|
| 179 |
#. type: Plain text |
| 180 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 181 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
msgid "" |
| 183 |
"B<RTA_SPACE(>I<size>B<)> returns the amount of space which will be needed in " |
| 184 |
"a message with I<size> bytes of data." |
| 185 |
msgstr "" |
| 186 |
|
| 187 |
#. type: SH |
| 188 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 189 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 190 |
#, no-wrap |
| 191 |
msgid "STANDARDS" |
| 192 |
msgstr "" |
| 193 |
|
| 194 |
#. type: Plain text |
| 195 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 196 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 197 |
msgid "Linux." |
| 198 |
msgstr "" |
| 199 |
|
| 200 |
#. type: SH |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
#, no-wrap |
| 204 |
msgid "BUGS" |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "This manual page is incomplete." |
| 211 |
msgstr "" |
| 212 |
|
| 213 |
#. type: SH |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, no-wrap |
| 217 |
msgid "EXAMPLES" |
| 218 |
msgstr "" |
| 219 |
|
| 220 |
#. FIXME . ? would be better to use libnetlink in the EXAMPLE code here |
| 221 |
#. type: Plain text |
| 222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
msgid "Creating a rtnetlink message to set the MTU of a device:" |
| 225 |
msgstr "" |
| 226 |
|
| 227 |
#. type: Plain text |
| 228 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 229 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "" |
| 232 |
"#include E<lt>linux/rtnetlink.hE<gt>\n" |
| 233 |
"\\&\n" |
| 234 |
"\\&...\n" |
| 235 |
"\\&\n" |
| 236 |
"struct {\n" |
| 237 |
" struct nlmsghdr nh;\n" |
| 238 |
" struct ifinfomsg if;\n" |
| 239 |
" char attrbuf[512];\n" |
| 240 |
"} req;\n" |
| 241 |
"\\&\n" |
| 242 |
"struct rtattr *rta;\n" |
| 243 |
"unsigned int mtu = 1000;\n" |
| 244 |
"\\&\n" |
| 245 |
"int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\n" |
| 246 |
"\\&\n" |
| 247 |
"memset(&req, 0, sizeof(req));\n" |
| 248 |
"req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n" |
| 249 |
"req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 250 |
"req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 251 |
"req.if.ifi_family = AF_UNSPEC;\n" |
| 252 |
"req.if.ifi_index = INTERFACE_INDEX;\n" |
| 253 |
"req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 254 |
"rta = (struct rtattr *) ((char *) &req +\n" |
| 255 |
" NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 256 |
"rta-E<gt>rta_type = IFLA_MTU;\n" |
| 257 |
"rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n" |
| 258 |
"req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 259 |
" RTA_LENGTH(sizeof(mtu));\n" |
| 260 |
"memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 261 |
"send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 262 |
msgstr "" |
| 263 |
|
| 264 |
#. type: SH |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
#, no-wrap |
| 268 |
msgid "SEE ALSO" |
| 269 |
msgstr "" |
| 270 |
|
| 271 |
#. type: Plain text |
| 272 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 273 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 274 |
msgid "B<netlink>(3), B<netlink>(7), B<rtnetlink>(7)" |
| 275 |
msgstr "" |
| 276 |
|
| 277 |
#. type: TH |
| 278 |
#: debian-trixie |
| 279 |
#, no-wrap |
| 280 |
msgid "2024-05-02" |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#. type: TH |
| 284 |
#: debian-trixie |
| 285 |
#, no-wrap |
| 286 |
msgid "Linux man-pages 6.9.1" |
| 287 |
msgstr "" |
| 288 |
|
| 289 |
#. type: Plain text |
| 290 |
#: debian-trixie |
| 291 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#. type: Plain text |
| 295 |
#: debian-trixie |
| 296 |
#, no-wrap |
| 297 |
msgid "B<int RTA_OK(struct rtattr *>I<rta>B<, int >I<rtabuflen>B<);>\n" |
| 298 |
msgstr "" |
| 299 |
|
| 300 |
#. type: Plain text |
| 301 |
#: debian-trixie |
| 302 |
#, no-wrap |
| 303 |
msgid "B<struct rtattr *RTA_NEXT(struct rtattr *>I<rta>B<, unsigned int >I<rtabuflen>B<);>\n" |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#. type: Plain text |
| 307 |
#: debian-trixie |
| 308 |
#, no-wrap |
| 309 |
msgid "" |
| 310 |
"B<unsigned int RTA_LENGTH(unsigned int >I<length>B<);>\n" |
| 311 |
"B<unsigned int RTA_SPACE(unsigned int >I<length>B<);>\n" |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#. type: Plain text |
| 315 |
#: debian-trixie |
| 316 |
msgid "" |
| 317 |
"B<RTA_OK(>I<rta>B<, >I<attrlen>B<)> returns true if I<rta> points to a valid " |
| 318 |
"routing attribute; I<attrlen> is the running length of the attribute " |
| 319 |
"buffer. When not true then you must assume there are no more attributes in " |
| 320 |
"the message, even if I<attrlen> is nonzero." |
| 321 |
msgstr "" |
| 322 |
|
| 323 |
#. type: Plain text |
| 324 |
#: debian-trixie |
| 325 |
msgid "B<RTA_PAYLOAD(>I<rta>B<)> returns the length of this attribute's data." |
| 326 |
msgstr "" |
| 327 |
|
| 328 |
#. type: Plain text |
| 329 |
#: debian-trixie |
| 330 |
msgid "" |
| 331 |
"B<RTA_NEXT(>I<rta>B<, >I<attrlen>B<)> gets the next attribute after I<rta>. " |
| 332 |
"Calling this macro will update I<attrlen>. You should use B<RTA_OK> to " |
| 333 |
"check the validity of the returned pointer." |
| 334 |
msgstr "" |
| 335 |
|
| 336 |
#. type: Plain text |
| 337 |
#: debian-trixie |
| 338 |
msgid "" |
| 339 |
"B<RTA_LENGTH(>I<len>B<)> returns the length which is required for I<len> " |
| 340 |
"bytes of data plus the header." |
| 341 |
msgstr "" |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: debian-trixie |
| 345 |
msgid "" |
| 346 |
"B<RTA_SPACE(>I<len>B<)> returns the amount of space which will be needed in " |
| 347 |
"a message with I<len> bytes of data." |
| 348 |
msgstr "" |
| 349 |
|
| 350 |
#. type: Plain text |
| 351 |
#: debian-trixie |
| 352 |
#, no-wrap |
| 353 |
msgid "" |
| 354 |
"#include E<lt>linux/rtnetlink.hE<gt>\n" |
| 355 |
"\\&\n" |
| 356 |
"\\&...\n" |
| 357 |
"\\&\n" |
| 358 |
"struct {\n" |
| 359 |
" struct nlmsghdr nh;\n" |
| 360 |
" struct ifinfomsg if;\n" |
| 361 |
" char attrbuf[512];\n" |
| 362 |
"} req;\n" |
| 363 |
"\\&\n" |
| 364 |
"struct rtattr *rta;\n" |
| 365 |
"unsigned int mtu = 1000;\n" |
| 366 |
"\\&\n" |
| 367 |
"int rtnetlink_sk = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE);\n" |
| 368 |
"\\&\n" |
| 369 |
"memset(&req, 0, sizeof(req));\n" |
| 370 |
"req.nh.nlmsg_len = NLMSG_LENGTH(sizeof(req.if));\n" |
| 371 |
"req.nh.nlmsg_flags = NLM_F_REQUEST;\n" |
| 372 |
"req.nh.nlmsg_type = RTM_NEWLINK;\n" |
| 373 |
"req.if.ifi_family = AF_UNSPEC;\n" |
| 374 |
"req.if.ifi_index = INTERFACE_INDEX;\n" |
| 375 |
"req.if.ifi_change = 0xffffffff; /* ??? */\n" |
| 376 |
"rta = (struct rtattr *)(((char *) &req) +\n" |
| 377 |
" NLMSG_ALIGN(req.nh.nlmsg_len));\n" |
| 378 |
"rta-E<gt>rta_type = IFLA_MTU;\n" |
| 379 |
"rta-E<gt>rta_len = RTA_LENGTH(sizeof(mtu));\n" |
| 380 |
"req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) +\n" |
| 381 |
" RTA_LENGTH(sizeof(mtu));\n" |
| 382 |
"memcpy(RTA_DATA(rta), &mtu, sizeof(mtu));\n" |
| 383 |
"send(rtnetlink_sk, &req, req.nh.nlmsg_len, 0);\n" |
| 384 |
msgstr "" |
| 385 |
|
| 386 |
#. type: TH |
| 387 |
#: fedora-44 fedora-rawhide |
| 388 |
#, no-wrap |
| 389 |
msgid "2025-01-05" |
| 390 |
msgstr "" |
| 391 |
|
| 392 |
#. type: TH |
| 393 |
#: fedora-44 fedora-rawhide |
| 394 |
#, no-wrap |
| 395 |
msgid "Linux man-pages 6.13" |
| 396 |
msgstr "" |
| 397 |
|
| 398 |
#. type: TH |
| 399 |
#: mageia-cauldron |
| 400 |
#, no-wrap |
| 401 |
msgid "Linux man-pages 6.17" |
| 402 |
msgstr "" |
| 403 |
|
| 404 |
#. type: TH |
| 405 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 406 |
#, no-wrap |
| 407 |
msgid "Linux man-pages (unreleased)" |
| 408 |
msgstr "" |