diff options
| author | Steven Barth | 2015-03-25 18:23:59 +0000 |
|---|---|---|
| committer | Steven Barth | 2015-03-25 18:23:59 +0000 |
| commit | 5710bd46493eaa75a3c6b532d21b8237a691c5a8 (patch) | |
| tree | 3a0cc36cfb5fb764e8774ec26d035d6e0e2acc36 | |
| parent | a3bffff7f3e6411c8737454381ac21dcf62a6dcd (diff) | |
| download | odhcp6c-5710bd46493eaa75a3c6b532d21b8237a691c5a8.tar.gz | |
make route metric more compatible with linux defaults
| -rw-r--r-- | src/ra.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |