iPXE
|
An IPv4 address/routing table entry. More...
#include <ip.h>
Data Fields | |
struct list_head | list |
List of miniroutes. More... | |
struct net_device * | netdev |
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... | |
struct list_head ipv4_miniroute::list |
List of miniroutes.
Definition at line 60 of file ip.h.
Referenced by add_ipv4_miniroute(), del_ipv4_miniroute(), ipv4_create_routes(), ipv4_has_addr(), ipv4_has_any_addr(), ipv4_route(), and route_ipv4_print().
struct net_device* ipv4_miniroute::netdev |
Network device.
Definition at line 63 of file ip.h.
Referenced by add_ipv4_miniroute(), del_ipv4_miniroute(), ipv4_has_addr(), ipv4_has_any_addr(), ipv4_netdev(), ipv4_route(), ipv4_tx(), and route_ipv4_print().
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().
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().
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().
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().