Family rt-addr netlink specification

Summary #

Address configuration over rtnetlink.

Operations #

newaddr #

Add new address

  • attribute-set:

    addr-attrs

  • do:

    request

    • attributes:

      [address, label, local, cacheinfo]

deladdr #

Remove address

  • attribute-set:

    addr-attrs

  • do:

    request

    • attributes:

      [address, local]

getaddr #

Dump address information.

  • attribute-set:

    addr-attrs

  • dump:

    request

    • attributes:

      []

    reply

    • attributes:

      [address, label, local, cacheinfo]

getmulticast #

Get / dump IPv4/IPv6 multicast addresses.

  • attribute-set:

    addr-attrs

  • fixed-header:

    ifaddrmsg

  • do:

    request

    • attributes:

      []

    reply

    • attributes:

      [multicast, cacheinfo]

  • dump:

    request

    • attributes:

      []

    reply

    • attributes:

      [multicast, cacheinfo]

Multicast groups #

  • rtnlgrp-ipv4-ifaddr

  • rtnlgrp-ipv6-ifaddr

Definitions #

ifaddrmsg #

  • type:

    struct

  • members:

    • ifa-family (u8)

    • ifa-prefixlen (u8)

    • ifa-flags (u8)

    • ifa-scope (u8)

    • ifa-index (u32)

ifa-cacheinfo #

  • type:

    struct

  • members:

    • ifa-prefered (u32)

    • ifa-valid (u32)

    • cstamp (u32)

    • tstamp (u32)

ifa-flags #

  • type:

    flags

  • name-prefix:

    ifa-f-

  • enum-name:

    None

  • entries:

    • secondary

    • nodad

    • optimistic

    • dadfailed

    • homeaddress

    • deprecated

    • tentative

    • permanent

    • managetempaddr

    • noprefixroute

    • mcautojoin

    • stable-privacy

Attribute sets #

addr-attrs #

address (binary) #

  • display-hint:

    ipv4-or-v6

local (binary) #

  • display-hint:

    ipv4-or-v6

label (string) #

broadcast (u32) #

  • byte-order:

    big-endian

  • display-hint:

    ipv4

anycast (binary) #

cacheinfo (binary) #

multicast (binary) #

flags (u32) #

rt-priority (u32) #

target-netnsid (binary) #

proto (u8) #

Edit this page