File: RouteTable.hs

package info (click to toggle)
haskell-iproute 1.7.15-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 152 kB
  • sloc: haskell: 1,299; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
-- |
--   IP routing table is a tree of 'IPRange'
--   to search one of them on the longest
--   match base. It is a kind of TRIE with one
--   way branching removed. Both IPv4 and IPv6
--   are supported.
--
--   For more information, see:
--       <http://www.mew.org/~kazu/proj/iproute/>
module Data.IP.RouteTable (
    -- * Documentation

    -- ** Routable class
    Routable (..),

    -- ** Type for IP routing table
    IPRTable,

    -- ** Functions to manipulate an IP routing table
    empty,
    insert,
    delete,
    I.lookup,
    I.lookupKeyValue,
    I.lookupAll,
    findMatch,
    fromList,
    toList,
    foldlWithKey,
    foldrWithKey,
) where

import Data.IP.RouteTable.Internal as I