iPXE
Data Fields
ipv4_miniroute Struct Reference

An IPv4 address/routing table entry. More...

#include <ip.h>

Data Fields

struct list_head list
 List of miniroutes. More...
 
struct net_devicenetdev
 Network device. More...
 
struct in_addr address
 IPv4 address. More...
 
struct in_addr netmask
 Subnet mask. More...
 
struct in_addr hostmask
 Host mask. More...
 
struct in_addr gateway
 Gateway address, or zero for no gateway. More...
 

Detailed Description

An IPv4 address/routing table entry.

Definition at line 58 of file ip.h.

Field Documentation

◆ list

struct list_head ipv4_miniroute::list

◆ netdev

struct net_device* ipv4_miniroute::netdev

◆ address

struct in_addr ipv4_miniroute::address

IPv4 address.

Definition at line 66 of file ip.h.

Referenced by add_ipv4_miniroute(), del_ipv4_miniroute(), ipv4_has_addr(), ipv4_route(), ipv4_tx(), and route_ipv4_print().

◆ netmask

struct in_addr ipv4_miniroute::netmask

Subnet mask.

An address with all of these bits in common with our IPv4 address is in the local subnet.

Definition at line 72 of file ip.h.

Referenced by add_ipv4_miniroute(), del_ipv4_miniroute(), ipv4_route(), and route_ipv4_print().

◆ hostmask

struct in_addr ipv4_miniroute::hostmask

Host mask.

An address in the local subnet with all of these bits set to zero represents the network address, and an address in the local subnet with all of these bits set to one represents the directed broadcast address. All other addresses in the local subnet are valid host addresses.

For most subnets, this is the inverse of the subnet mask. In a small subnet (/31 or /32) there is no network address or directed broadcast address, and all addresses in the subnet are valid host addresses.

Definition at line 86 of file ip.h.

Referenced by add_ipv4_miniroute(), and ipv4_tx().

◆ gateway

struct in_addr ipv4_miniroute::gateway

Gateway address, or zero for no gateway.

Definition at line 88 of file ip.h.

Referenced by add_ipv4_miniroute(), del_ipv4_miniroute(), ipv4_route(), and route_ipv4_print().


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