FS#29480 - [netcfg] avoid errors due to multiple default routes
Attached to Project:
Arch Linux
Opened by Phillip Smith (fukawi2) - Monday, 16 April 2012, 00:58 GMT
Last edited by Jouke Witteveen (jouke) - Friday, 11 May 2012, 19:20 GMT
Opened by Phillip Smith (fukawi2) - Monday, 16 April 2012, 00:58 GMT
Last edited by Jouke Witteveen (jouke) - Friday, 11 May 2012, 19:20 GMT
|
Details
Description:
iproute2 does not allow multiple default gateways in ipv6. this patch checks for an existing default route before adding the gateway. if an existing gateway is found, we use the iproute2 command "route replace" instead of "route add" Additional info: * patch against 2.8.0 Steps to reproduce: * Create an ethernet connection with 'static' IPv6 addressing and a default gateway * Connect to this connection (`netcfg -u static-ipv6`). * Reconnect to this connection (`netcfg -r static-ipv6`). |
This task depends upon
Comment by Phillip Smith (fukawi2) -
Monday, 16 April 2012, 00:58 GMT
Comment by Jimmy Xu (jimmyxu) -
Monday, 16 April 2012, 04:16 GMT
Comment by Phillip Smith (fukawi2) -
Monday, 16 April 2012, 04:20 GMT
Whoops, accidentally filed this in "Packages - Extra"; Should be
"Packages - Core"
Actually, you can use ``replace'' even if there's no existing
gateway. It'll behave like ``add'' or ``change'' automatically.
Well that's even cleaner IMHO; amended patch attached.