Skip to content

Commit f7dab17

Browse files
committed
defintions: define ND Route Information option
We can't express a 2-bit integer at a 3 bit offset yet so just print the reserved value. Also allows this option to be excluded, fixing #506.
1 parent a35afcd commit f7dab17

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

src/dhcpcd-definitions-small.conf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,21 @@ embed bitflags=LAH flags
6161
embed uint32 vltime
6262
embed uint32 pltime
6363
embed uint32 reserved
64-
embed array ip6address prefix
64+
embed ip6address prefix
6565

6666
# option 4 is only for Redirect messages
6767

6868
definend 5 embed mtu
6969
embed uint16 reserved
7070
embed uint32 mtu
7171

72+
definend 24 index embed route_information
73+
embed byte length
74+
# bits 4 and 5 are route preference, but we can't express this
75+
embed byte reserved
76+
embed uint32 lifetime
77+
embed ip6address prefix
78+
7279
# ND6 options, RFC6101
7380
definend 25 index embed rdnss
7481
embed uint16 reserved

src/dhcpcd-definitions.conf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ embed bitflags=LAH flags
398398
embed uint32 vltime
399399
embed uint32 pltime
400400
embed uint32 reserved
401-
embed array ip6address prefix
401+
embed ip6address prefix
402402

403403
# option 4 is only for Redirect messages
404404

@@ -412,6 +412,13 @@ embed uint16 reserved
412412
embed uint16 preference
413413
embed uint16 lifetime
414414

415+
definend 24 index embed route_information
416+
embed byte length
417+
# bits 4 and 5 are route preference, but we can't express this
418+
embed byte reserved
419+
embed uint32 lifetime
420+
embed ip6address prefix
421+
415422
# ND6 options, RFC6101
416423
definend 25 index embed rdnss
417424
embed uint16 reserved

0 commit comments

Comments
 (0)