Logo

The Linux Kernel

6.8.0-rc2-6.8.0-rc2-sbm+

Quick search

Contents

  • A guide to the Kernel Development Process
  • Submitting patches: the essential guide to getting your code into the kernel
  • Code of conduct
  • Kernel Maintainer Handbook
  • All development-process docs
  • Core API Documentation
  • Driver implementer's API guide
  • Kernel subsystem documentation
    • Core subsystems
    • Human interfaces
    • Networking interfaces
      • Networking
      • NetLabel
      • InfiniBand
      • ISDN
      • MHI
    • Storage interfaces
  • Locking in the kernel
  • Linux kernel licensing rules
  • How to write kernel documentation
  • Development tools for the kernel
  • Kernel Testing Guide
  • Kernel Hacking Guides
  • Linux Tracing Technologies
  • fault-injection
  • Kernel Livepatching
  • Rust
  • The Linux kernel user's and administrator's guide
  • The kernel build system
  • Reporting issues
  • User-space tools
  • The Linux kernel user-space API guide
  • The Linux kernel firmware guide
  • Open Firmware and Devicetree
  • CPU Architectures
  • Unsorted Documentation
  • Reliability, Availability and Serviceability features
  • Translations

This Page

  • Show Source

Family rt-addr netlink specification¶

Contents

  • Family rt-addr netlink specification

    • Summary

    • Operations

      • newaddr

      • deladdr

      • getaddr

    • Multicast groups

    • Definitions

      • ifaddrmsg

      • ifa-cacheinfo

      • ifa-flags

    • Attribute sets

      • addr-attrs

        • ifa-address (binary)

        • ifa-local (binary)

        • ifa-label (string)

        • ifa-broadcast (binary)

        • ifa-anycast (binary)

        • ifa-cacheinfo (binary)

        • ifa-multicast (binary)

        • ifa-flags (u32)

        • ifa-rt-priority (u32)

        • ifa-target-netnsid (binary)

        • ifa-proto (u8)

Summary¶

Address configuration over rtnetlink.

Operations¶

newaddr¶

Add new address

attribute-set:

addr-attrs

do:
request
attributes:

[ifa-family, ifa-flags, ifa-prefixlen, ifa-scope, ifa-index, ifa-address, ifa-label, ifa-local, ifa-cacheinfo]

deladdr¶

Remove address

attribute-set:

addr-attrs

do:
request
attributes:

[ifa-family, ifa-flags, ifa-prefixlen, ifa-scope, ifa-index, ifa-address, ifa-local]

getaddr¶

Dump address information.

attribute-set:

addr-attrs

dump:
request
attributes:

[ifa-index]

reply
attributes:

[ifa-family, ifa-flags, ifa-prefixlen, ifa-scope, ifa-index, ifa-address, ifa-label, ifa-local, ifa-cacheinfo]

Multicast groups¶

  • rtnlgrp-ipv4-ifaddr

  • rtnlgrp-ipv6-ifaddr

Definitions¶

ifaddrmsg¶

type:

struct

members:
ifa-family:

ifa-prefixlen:

ifa-flags:

ifa-scope:

ifa-index:

ifa-cacheinfo¶

type:

struct

members:
ifa-prefered:

ifa-valid:

cstamp:

tstamp:

ifa-flags¶

type:

flags

entries:
secondary:

nodad:

optimistic:

dadfailed:

homeaddress:

deprecated:

tentative:

permanent:

managetempaddr:

noprefixroute:

mcautojoin:

stable-privacy:

Attribute sets¶

addr-attrs¶

ifa-address (binary)¶

display-hint:

ipv4

ifa-local (binary)¶

display-hint:

ipv4

ifa-label (string)¶

ifa-broadcast (binary)¶

display-hint:

ipv4

ifa-anycast (binary)¶

ifa-cacheinfo (binary)¶

struct:

ifa-cacheinfo

ifa-multicast (binary)¶

ifa-flags (u32)¶

enum:

ifa-flags

enum-as-flags:

True

ifa-rt-priority (u32)¶

ifa-target-netnsid (binary)¶

ifa-proto (u8)¶

©The kernel development community. | Powered by Sphinx 7.2.6 & Alabaster 0.7.16 | Page source