Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type L ¶
type L []T
func List ¶
List parses routing table files and returns a list of routing table entries (L). It scans predefined file paths sequentially.
Extract from man ip-route:
Route tables: Linux-2.x can pack routes into several routing tables identified by a number in the range from 1 to 2^32-1 or by name from /usr/share/iproute2/rt_tables or /etc/iproute2/rt_tables (has precedence if exists).
TODO: add support for rt_tables.d ? (also use <CONF_USR_DIR>/iproute2/rt_tables.d/X.conf files unless <CONF_ETC_DIR>/iproute2/rt_tables.d/X.conf exists)
Click to show internal directories.
Click to hide internal directories.