Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Network Interface unicast IP addresses. More...

#include <net_if.h>

Data Fields

struct net_addr address
 IP address.
 
atomic_t atomic_ref
 Reference counter.
 
enum net_addr_type addr_type
 How the IP address was set.
 
enum net_addr_state addr_state
 What is the current state of the address.
 
uint8_t is_infinite: 1
 Is the IP address valid forever.
 
uint8_t is_used: 1
 Is this IP address used or not.
 
uint8_t is_mesh_local: 1
 Is this IP address usage limited to the subnet (mesh) or not.
 
uint8_t is_temporary: 1
 Is this IP address temporary and generated for example by IPv6 privacy extension (RFC 8981)
 

Detailed Description

Network Interface unicast IP addresses.

Stores the unicast IP addresses assigned to this network interface.

Field Documentation

◆ addr_state

enum net_addr_state net_if_addr::addr_state

What is the current state of the address.

◆ addr_type

enum net_addr_type net_if_addr::addr_type

How the IP address was set.

◆ address

struct net_addr net_if_addr::address

IP address.

◆ atomic_ref

atomic_t net_if_addr::atomic_ref

Reference counter.

This is used to prevent address removal if there are sockets that have bound the local endpoint to this address.

◆ is_infinite

uint8_t net_if_addr::is_infinite

Is the IP address valid forever.

◆ is_mesh_local

uint8_t net_if_addr::is_mesh_local

Is this IP address usage limited to the subnet (mesh) or not.

◆ is_temporary

uint8_t net_if_addr::is_temporary

Is this IP address temporary and generated for example by IPv6 privacy extension (RFC 8981)

◆ is_used

uint8_t net_if_addr::is_used

Is this IP address used or not.


The documentation for this struct was generated from the following file: