ifupdown: support metric for static default gw
authorNatanael Copa <natanael.copa@gmail.com>
Fri, 17 Feb 2012 19:36:26 +0000 (19:36 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 19 Feb 2012 16:25:55 +0000 (17:25 +0100)
commitcfcb1dac83c9e18a06a07f0b212f6701bb87c2ad
tree43e7568846a9b033d52ad3b38c31af8cf73f4ff2
parent8cce1b3ad8c28b5c34c24d79b32b6cebb75ea2f5
ifupdown: support metric for static default gw

This is useful when you have multiple ISPs with failover. It allows
setting the priority of the static gateway and makes it possible
to specify multiple static gateways.

The ubuntu ifupdown supports it.

function                                             old     new   delta
.rodata                                           116725  116797     +72
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 72/0)               Total: 72 bytes
   text    data     bss     dec     hex filename
 953343    7313    8984  969640   ecba8 busybox_old
 953415    7313    8984  969712   ecbf0 busybox_unstripped

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ifupdown.c