From aa1394486792a5d6f3874d5d5b40ab8a4f03424f Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Sun, 18 Jan 2009 21:17:01 +0100 Subject: [PATCH] 'added iproute2 to environment' --- lib/initcpio/install/arch_net | 14 +++++++-- .../archboot/net/etc/iproute2/ematch_map | 5 ++++ .../archboot/net/etc/iproute2/rt_dsfield | 27 +++++++++++++++++ usr/share/archboot/net/etc/iproute2/rt_protos | 29 +++++++++++++++++++ usr/share/archboot/net/etc/iproute2/rt_realms | 13 +++++++++ usr/share/archboot/net/etc/iproute2/rt_scopes | 11 +++++++ usr/share/archboot/net/etc/iproute2/rt_tables | 11 +++++++ 7 files changed, 108 insertions(+), 2 deletions(-) create mode 100644 usr/share/archboot/net/etc/iproute2/ematch_map create mode 100644 usr/share/archboot/net/etc/iproute2/rt_dsfield create mode 100644 usr/share/archboot/net/etc/iproute2/rt_protos create mode 100644 usr/share/archboot/net/etc/iproute2/rt_realms create mode 100644 usr/share/archboot/net/etc/iproute2/rt_scopes create mode 100644 usr/share/archboot/net/etc/iproute2/rt_tables diff --git a/lib/initcpio/install/arch_net b/lib/initcpio/install/arch_net index a3000c758..ddf7e44a9 100644 --- a/lib/initcpio/install/arch_net +++ b/lib/initcpio/install/arch_net @@ -4,9 +4,9 @@ install () { MODULES=" $(checked_modules "/drivers/net/" | grep -ve "wireless") " - BINARIES="ping ping6 route nslookup telnet ssh" + BINARIES="ping ping6 route nslookup telnet ssh arpd genl ifcfg ifstat ip lnstat nstat routef routel rtacct rtmon rtpr ss tc" FILES="" - SCRIPT="" + SCRIPT="arch_net" add_file "/sbin/dhcpcd" add_file "/sbin/ifenslave" add_file "/usr/sbin/brctl" @@ -19,6 +19,16 @@ install () done add_file "/usr/share/archboot/net/etc/dhcpcd.conf" "/etc/dhcpcd.conf" add_dir "/var/lib/dhcpcd" + add_file "/lib/tc/experimental.dist" + add_file "/lib/tc/normal.dist" + add_file "/lib/tc/pareto.dist" + add_file "/lib/tc/paretonormal.dist" + add_file "/usr/share/archboot/net/etc/iproute2/ematch_map /etc/iproute2/ematch_map" + add_file "/usr/share/archboot/net/etc/iproute2/rt_dsfield /etc/iproute2/rt_dsfield" + add_file "/usr/share/archboot/net/etc/iproute2/etc/iproute2/rt_protos /etc/iproute2/rt_protos" + add_file "/usr/share/archboot/net/etc/iproute2/etc/iproute2/rt_realms /etc/iproute2/rt_realms" + add_file "/usr/share/archboot/net/etc/iproute2/etc/iproute2/rt_scopes /etc/iproute2/rt_scopes" + add_file "/usr/share/archboot/net/etc/iproute2/etc/iproute2/rt_tables /etc/iproute2/rt_tables" } help () diff --git a/usr/share/archboot/net/etc/iproute2/ematch_map b/usr/share/archboot/net/etc/iproute2/ematch_map new file mode 100644 index 000000000..7c6a28176 --- /dev/null +++ b/usr/share/archboot/net/etc/iproute2/ematch_map @@ -0,0 +1,5 @@ +# lookup table for ematch kinds +1 cmp +2 nbyte +3 u32 +4 meta diff --git a/usr/share/archboot/net/etc/iproute2/rt_dsfield b/usr/share/archboot/net/etc/iproute2/rt_dsfield new file mode 100644 index 000000000..496ef662e --- /dev/null +++ b/usr/share/archboot/net/etc/iproute2/rt_dsfield @@ -0,0 +1,27 @@ +0x00 default +0x10 lowdelay +0x08 throughput +0x04 reliability +# This value overlap with ECT, do not use it! +0x02 mincost +# These values seems do not want to die, Cisco likes them by a strange reason. +0x20 priority +0x40 immediate +0x60 flash +0x80 flash-override +0xa0 critical +0xc0 internet +0xe0 network +# Newer RFC2597 values +0x28 AF11 +0x30 AF12 +0x38 AF13 +0x48 AF21 +0x50 AF22 +0x58 AF23 +0x68 AF31 +0x70 AF32 +0x78 AF33 +0x88 AF41 +0x90 AF42 +0x98 AF43 diff --git a/usr/share/archboot/net/etc/iproute2/rt_protos b/usr/share/archboot/net/etc/iproute2/rt_protos new file mode 100644 index 000000000..53047707d --- /dev/null +++ b/usr/share/archboot/net/etc/iproute2/rt_protos @@ -0,0 +1,29 @@ +# +# Reserved protocols. +# +0 unspec +1 redirect +2 kernel +3 boot +4 static +8 gated +9 ra +10 mrt +11 zebra +12 bird +13 dnrouted +14 xorp +15 ntk + +# +# Used by me for gated +# +254 gated/aggr +253 gated/bgp +252 gated/ospf +251 gated/ospfase +250 gated/rip +249 gated/static +248 gated/conn +247 gated/inet +246 gated/default diff --git a/usr/share/archboot/net/etc/iproute2/rt_realms b/usr/share/archboot/net/etc/iproute2/rt_realms new file mode 100644 index 000000000..eedd76d23 --- /dev/null +++ b/usr/share/archboot/net/etc/iproute2/rt_realms @@ -0,0 +1,13 @@ +# +# reserved values +# +0 cosmos +# +# local +# +#1 inr.ac +#2 inr.ruhep +#3 freenet +#4 radio-msu +#5 russia +#6 internet diff --git a/usr/share/archboot/net/etc/iproute2/rt_scopes b/usr/share/archboot/net/etc/iproute2/rt_scopes new file mode 100644 index 000000000..8514bc11a --- /dev/null +++ b/usr/share/archboot/net/etc/iproute2/rt_scopes @@ -0,0 +1,11 @@ +# +# reserved values +# +0 global +255 nowhere +254 host +253 link +# +# pseudo-reserved +# +200 site diff --git a/usr/share/archboot/net/etc/iproute2/rt_tables b/usr/share/archboot/net/etc/iproute2/rt_tables new file mode 100644 index 000000000..541abfd27 --- /dev/null +++ b/usr/share/archboot/net/etc/iproute2/rt_tables @@ -0,0 +1,11 @@ +# +# reserved values +# +255 local +254 main +253 default +0 unspec +# +# local +# +#1 inr.ruhep