hans-3.0.2: Network Stack

Safe HaskellNone
LanguageHaskell2010

Hans.IP4.RoutingTable

Synopsis

Documentation

data Route Source #

Constructors

Route 

data RoutingTable Source #

Simple routing.

isLocal :: IP4 -> RoutingTable -> Maybe Route Source #

If the address given is the source address for a rule in the table, return the associated Device.

routesForDev :: Device -> RoutingTable -> [Route] Source #

Give back routes that involve this device.