Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/netifrc:master commit in: net/, doc/
Date: Wed, 28 Aug 2013 16:02:33
Message-Id: 1377705633.732a9a4999f479ee97a404252f6a0eba4a86e338.robbat2@OpenRC
1 commit: 732a9a4999f479ee97a404252f6a0eba4a86e338
2 Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 28 16:00:33 2013 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 28 16:00:33 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=732a9a49
7
8 net/iproute2: increase default dad_timeout to 10s
9
10 If you have a NIC that takes a long time to come up, the previous
11 default of 5 seconds is too low, because the card might not be available
12 yet. Increase the default to 10 seconds.
13
14 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
15 X-Gentoo-Bug: 482300
16
17 ---
18 doc/net.example.BSD.in | 12 +++++++-----
19 doc/net.example.Linux.in | 10 ++++++----
20 net/iproute2.sh | 2 +-
21 3 files changed, 14 insertions(+), 10 deletions(-)
22
23 diff --git a/doc/net.example.BSD.in b/doc/net.example.BSD.in
24 index 2509c9f..d3bd15b 100644
25 --- a/doc/net.example.BSD.in
26 +++ b/doc/net.example.BSD.in
27 @@ -86,12 +86,14 @@
28
29 # IPv6 addresses usually must complete a duplicate address detection process
30 # before they can be bound to by daemons; they are held in a 'tentative' state
31 -# until this completes. Setting the 'nodad' flag (see config_eth0 above) is
32 +# until this completes. Setting the 'nodad' flag (see config_eth0 above) is
33 # one way to avoid this tentative state, otherwise the service will wait
34 -# dad_timeout seconds (defaults to 5) for tentative state to clear on all IPv6
35 -# addresses set on the interface. As usual, dad_timeout can be adjusted on a
36 -# per-interface basis. Set to 0 to disable the wait entirely.
37 -#dad_timeout_eth0=5
38 +# dad_timeout seconds (defaults to 10) for tentative state to clear on all IPv6
39 +# addresses set on the interface. As usual, dad_timeout can be adjusted on a
40 +# per-interface basis. If your interface takes a long time to establish
41 +# carrier, you may wish to use a higher value.
42 +# Set to 0 to disable the wait entirely.
43 +#dad_timeout_eth0=10
44
45 # You may wish to disable the interface being brought down when stopping.
46 # This is only of use for WakeOnLan.
47
48 diff --git a/doc/net.example.Linux.in b/doc/net.example.Linux.in
49 index caffed7..e838f28 100644
50 --- a/doc/net.example.Linux.in
51 +++ b/doc/net.example.Linux.in
52 @@ -137,10 +137,12 @@
53 # before they can be bound to by daemons; they are held in a 'tentative' state
54 # until this completes. Setting the 'nodad' flag (see config_eth0 above) is
55 # one way to avoid this tentative state, otherwise the service will wait
56 -# dad_timeout seconds (defaults to 5) for tentative state to clear on all IPv6
57 -# addresses set on the interface. As usual, dad_timeout can be adjusted on a
58 -# per-interface basis. Set to 0 to disable the wait entirely.
59 -#dad_timeout_eth0=5
60 +# dad_timeout seconds (defaults to 10) for tentative state to clear on all IPv6
61 +# addresses set on the interface. As usual, dad_timeout can be adjusted on a
62 +# per-interface basis. If your interface takes a long time to establish
63 +# carrier, you may wish to use a higher value.
64 +# Set to 0 to disable the wait entirely.
65 +#dad_timeout_eth0=10
66
67 # You may wish to disable the interface being brought down when stopping.
68 # This is only of use for WakeOnLan.
69
70 diff --git a/net/iproute2.sh b/net/iproute2.sh
71 index 58b7bc4..096e724 100644
72 --- a/net/iproute2.sh
73 +++ b/net/iproute2.sh
74 @@ -332,7 +332,7 @@ iproute2_post_start()
75 {
76 local n=
77 eval n=\$dad_timeout_${IFVAR}
78 - [ -z "$n" ] && n=${dad_timeout:-5}
79 + [ -z "$n" ] && n=${dad_timeout:-10}
80
81 local policyroute_order=
82 eval policyroute_order=\$policy_rules_before_routes_${IFVAR}