From: Steven Barth Date: Wed, 25 Mar 2015 18:23:59 +0000 (+0100) Subject: make route metric more compatible with linux defaults X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5710bd46493eaa75a3c6b532d21b8237a691c5a8;p=project%2Fodhcp6c.git make route metric more compatible with linux defaults --- diff --git a/src/ra.c b/src/ra.c index 54cf086..90f0923 100644 --- a/src/ra.c +++ b/src/ra.c @@ -160,8 +160,8 @@ static void ra_send_rs(int signal __attribute__((unused))) static int16_t pref_to_priority(uint8_t flags) { flags = (flags >> 3) & 0x03; - return (flags == 0x0) ? 1024 : (flags == 0x1) ? 512 : - (flags == 0x3) ? 2048 : -1; + return (flags == 0x0) ? 512 : (flags == 0x1) ? 384 : + (flags == 0x3) ? 640 : -1; }