View | Details | Raw Unified | Return to bug 10350
Collapse All | Expand All

(-)ifup-common (-16 / +16 lines)
Lines 115-178 Link Here
115
			case $VARNAME in
115
			case $VARNAME in
116
			# *** IPv4 conf ***
116
			# *** IPv4 conf ***
117
				force_igmp_version|disable_policy|disable_xfrm|arp_ignore|arp_announce)
117
				force_igmp_version|disable_policy|disable_xfrm|arp_ignore|arp_announce)
118
					VARPREFIX="net/ipv4/conf/$NAME."
118
					VARPREFIX="net/ipv4/conf/$NAME/"
119
				;;
119
				;;
120
				arp_filter|tag|log_martians|bootp_relay|medium_id|proxy_arp)
120
				arp_filter|tag|log_martians|bootp_relay|medium_id|proxy_arp)
121
					VARPREFIX="net/ipv4/conf/$NAME."
121
					VARPREFIX="net/ipv4/conf/$NAME/"
122
				;;
122
				;;
123
				accept_source_route|send_redirects|rp_filter|shared_media)
123
				accept_source_route|send_redirects|rp_filter|shared_media)
124
					VARPREFIX="net/ipv4/conf/$NAME."
124
					VARPREFIX="net/ipv4/conf/$NAME/"
125
				;;
125
				;;
126
				secure_redirects|mc_forwarding)
126
				secure_redirects|mc_forwarding)
127
					VARPREFIX="net/ipv4/conf/$NAME."
127
					VARPREFIX="net/ipv4/conf/$NAME/"
128
				;;
128
				;;
129
			# *** IPv4 neigh ***
129
			# *** IPv4 neigh ***
130
				ipv4_locktime|ipv4_proxy_delay|ipv4_anycast_delay|ipv4_proxy_qlen|ipv4_unres_qlen)
130
				ipv4_locktime|ipv4_proxy_delay|ipv4_anycast_delay|ipv4_proxy_qlen|ipv4_unres_qlen)
131
					VARNAME=${VARNAME#ipv4_}
131
					VARNAME=${VARNAME#ipv4_}
132
					VARPREFIX="net/ipv4/neigh/$NAME."
132
					VARPREFIX="net/ipv4/neigh/$NAME/"
133
				;;
133
				;;
134
				ipv4_gc_stale_time|ipv4_delay_first_probe_time|ipv4_base_reachable_time)
134
				ipv4_gc_stale_time|ipv4_delay_first_probe_time|ipv4_base_reachable_time)
135
					VARNAME=${VARNAME#ipv4_}
135
					VARNAME=${VARNAME#ipv4_}
136
					VARPREFIX="net/ipv4/neigh/$NAME."
136
					VARPREFIX="net/ipv4/neigh/$NAME/"
137
				;;
137
				;;
138
				ipv4_retrans_time|ipv4_app_solicit|ipv4_ucast_solicit|ipv4_mcast_solicit)
138
				ipv4_retrans_time|ipv4_app_solicit|ipv4_ucast_solicit|ipv4_mcast_solicit)
139
					VARNAME=${VARNAME#ipv4_}
139
					VARNAME=${VARNAME#ipv4_}
140
					VARPREFIX="net/ipv4/neigh/$NAME."
140
					VARPREFIX="net/ipv4/neigh/$NAME/"
141
				;;
141
				;;
142
			# *** IPv6 conf ***
142
			# *** IPv6 conf ***
143
				accept_ra|autoconf|dad_transmits|force_mld_version|hop_limit)
143
				accept_ra|autoconf|dad_transmits|force_mld_version|hop_limit)
144
					VARPREFIX="net/ipv6/conf/$NAME."
144
					VARPREFIX="net/ipv6/conf/$NAME/"
145
				;;
145
				;;
146
				max_addresses|max_desync_factor|mtu|regen_max_retry)
146
				max_addresses|max_desync_factor|mtu|regen_max_retry)
147
					VARPREFIX="net/ipv6/conf/$NAME."
147
					VARPREFIX="net/ipv6/conf/$NAME/"
148
				;;
148
				;;
149
				router_solicitation_delay|router_solicitation_interval|router_solicitations)
149
				router_solicitation_delay|router_solicitation_interval|router_solicitations)
150
					VARPREFIX="net/ipv6/conf/$NAME."
150
					VARPREFIX="net/ipv6/conf/$NAME/"
151
				;;
151
				;;
152
				temp_prefered_lft|temp_valid_lft|use_tempaddr)
152
				temp_prefered_lft|temp_valid_lft|use_tempaddr)
153
					VARPREFIX="net/ipv6/conf/$NAME."
153
					VARPREFIX="net/ipv6/conf/$NAME/"
154
				;;
154
				;;
155
			# *** IPv6 neigh ***
155
			# *** IPv6 neigh ***
156
				ipv6_locktime|ipv6_proxy_delay|ipv6_anycast_delay|ipv6_proxy_qlen|ipv6_unres_qlen)
156
				ipv6_locktime|ipv6_proxy_delay|ipv6_anycast_delay|ipv6_proxy_qlen|ipv6_unres_qlen)
157
					VARNAME=${VARNAME#ipv6_}
157
					VARNAME=${VARNAME#ipv6_}
158
					VARPREFIX="net/ipv6/neigh/$NAME."
158
					VARPREFIX="net/ipv6/neigh/$NAME/"
159
				;;
159
				;;
160
				ipv6_gc_stale_time|ipv6_delay_first_probe_time|ipv6_base_reachable_time)
160
				ipv6_gc_stale_time|ipv6_delay_first_probe_time|ipv6_base_reachable_time)
161
					VARNAME=${VARNAME#ipv6_}
161
					VARNAME=${VARNAME#ipv6_}
162
					VARPREFIX="net/ipv6/neigh/$NAME."
162
					VARPREFIX="net/ipv6/neigh/$NAME/"
163
				;;
163
				;;
164
				ipv4_retrans_time|ipv6_app_solicit|ipv6_ucast_solicit|ipv6_mcast_solicit)
164
				ipv4_retrans_time|ipv6_app_solicit|ipv6_ucast_solicit|ipv6_mcast_solicit)
165
					VARNAME=${VARNAME#ipv6_}
165
					VARNAME=${VARNAME#ipv6_}
166
					VARPREFIX="net/ipv6/neigh/$NAME."
166
					VARPREFIX="net/ipv6/neigh/$NAME/"
167
				;;
167
				;;
168
			# *** IPv4/IPv6 common vars ***
168
			# *** IPv4/IPv6 common vars ***
169
				ipv4_accept_redirects|ipv4_forwarding)
169
				ipv4_accept_redirects|ipv4_forwarding)
170
					VARNAME=${VARNAME#ipv4_}
170
					VARNAME=${VARNAME#ipv4_}
171
					VARPREFIX="net/ipv4/conf/$NAME."
171
					VARPREFIX="net/ipv4/conf/$NAME/"
172
				;;
172
				;;
173
				ipv6_accept_redirects|ipv6_forwarding)
173
				ipv6_accept_redirects|ipv6_forwarding)
174
					VARNAME=${VARNAME#ipv6_}
174
					VARNAME=${VARNAME#ipv6_}
175
					VARPREFIX="net/ipv6/conf/$NAME."
175
					VARPREFIX="net/ipv6/conf/$NAME/"
176
				;;
176
				;;
177
				*)
177
				*)
178
					print_error "Can't autocomplete sysctl variable name '$VARNAME' in file '$SRCFILE'. Please fix"
178
					print_error "Can't autocomplete sysctl variable name '$VARNAME' in file '$SRCFILE'. Please fix"

Return to bug 10350