projects
/
project
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3bffff
)
make route metric more compatible with linux defaults
author
Steven Barth
<steven@midlink.org>
Wed, 25 Mar 2015 18:23:59 +0000
(19:23 +0100)
committer
Steven Barth
<steven@midlink.org>
Wed, 25 Mar 2015 18:23:59 +0000
(19:23 +0100)
src/ra.c
patch
|
blob
|
history
diff --git
a/src/ra.c
b/src/ra.c
index 54cf086d11356501bcba02c5cd0cc1bd4aa52f95..90f09230d6f7ce6a5976814b9cfeae311dec53aa 100644
(file)
--- 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;
}