49error_t ipv4SelectSourceAddr(NetInterface **interface,
52error_t ipv4SelectDefaultGateway(NetInterface *interface,
Ipv4Addr srcAddr,
55bool_t ipv4IsOnLink(NetInterface *interface,
Ipv4Addr ipAddr);
56bool_t ipv4IsBroadcastAddr(NetInterface *interface,
Ipv4Addr ipAddr);
57bool_t ipv4IsTentativeAddr(NetInterface *interface,
Ipv4Addr ipAddr);
58bool_t ipv4IsLocalHostAddr(
Ipv4Addr ipAddr);
62uint_t ipv4GetAddrScope(
Ipv4Addr ipAddr);
63uint_t ipv4GetPrefixLength(
Ipv4Addr mask);
68bool_t ipv4TrapIgmpPacket(Ipv4Header *header);
70void ipv4UpdateInStats(NetInterface *interface,
Ipv4Addr destIpAddr,
73void ipv4UpdateOutStats(NetInterface *interface,
Ipv4Addr destIpAddr,
76void ipv4UpdateErrorStats(NetInterface *interface,
error_t error);
error_t
Error codes.
Definition error.h:43
IPv4 (Internet Protocol Version 4)
uint32_t Ipv4Addr
IPv4 network address.
Definition ipv4.h:267
Structure describing a buffer that spans multiple chunks.
Definition net_mem.h:89