diff options
Diffstat (limited to 'src/fib_linux.erl')
-rw-r--r-- | src/fib_linux.erl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fib_linux.erl b/src/fib_linux.erl new file mode 100644 index 0000000..f87e885 --- /dev/null +++ b/src/fib_linux.erl @@ -0,0 +1,18 @@ +-module(fib_linux). +-behaviour(fib_behaviour). +-export([default_table/0, current_table/0, tables/0]). +-export([list/1]). + +%% Linux has 255 routing tables. + +default_table() -> + 254. + +current_table() -> + default_table(). + +tables() -> + lists:seq(1, 255). + +list(_Table) -> + todo. |