projects
/
oweals
/
odhcp6c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
251a83e
)
Fix metric calculation
author
Steven Barth
<steven@midlink.org>
Thu, 31 Jan 2013 15:47:11 +0000
(16:47 +0100)
committer
Steven Barth
<steven@midlink.org>
Thu, 31 Jan 2013 15:47:11 +0000
(16:47 +0100)
src/ra.c
patch
|
blob
|
history
diff --git
a/src/ra.c
b/src/ra.c
index 597de5827f9c559fa17e901a580dff6ba878ced3..2149a66b7ce929b81fc7bf44e4ab373d9ccead7d 100644
(file)
--- a/
src/ra.c
+++ b/
src/ra.c
@@
-105,8
+105,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
0) ? 1024 : (flags == 0x0
1) ? 512 :
- (flags == 0x
11
) ? 2048 : -1;
+ return (flags == 0x0
) ? 1024 : (flags == 0x
1) ? 512 :
+ (flags == 0x
3
) ? 2048 : -1;
}