Module testutil

Module testutil 

Source
Expand description

IP layer test utilities.

Structs§

FakeIpHeaderInfo
A fake implementation of IpHeaderInfo.

Enums§

DualStackSendIpPacketMeta
A SendIpPacketMeta for dual stack contextx.

Functions§

add_route
Add a route directly to the routing table, instead of merely dispatching an event requesting that the route be added.
del_device_routes
Deletes all routes referencing del_device from the routing table.
del_routes_to_subnet
Delete all routes to a subnet, returning Err if no route was found to be deleted.
set_rules
Install and replace any existing rules.

Type Aliases§

IpCounterExpectations
Expected values of IpCounters<I>.