File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11let sizeof_ipv4 = 20
22
33let hlen_version_off = 0
4- let _tos_off = 1
4+ let tos_off = 1
55let len_off = 2
66let id_off = 4
77let off_off = 6
@@ -14,6 +14,9 @@ let dst_off = 16
1414let get_hlen_version buf = Cstruct. get_uint8 buf hlen_version_off
1515let set_hlen_version buf v = Cstruct. set_uint8 buf hlen_version_off v
1616
17+ let get_tos buf = Cstruct. get_uint8 buf tos_off
18+ let set_tos buf v = Cstruct. set_uint8 buf tos_off v
19+
1720let get_len buf = Cstruct.BE. get_uint16 buf len_off
1821let set_len buf v = Cstruct.BE. set_uint16 buf len_off v
1922
Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ val sizeof_ipv4 : int
33val get_hlen_version : Cstruct .t -> int
44val set_hlen_version : Cstruct .t -> int -> unit
55
6+ val get_tos : Cstruct .t -> int
7+ val set_tos : Cstruct .t -> int -> unit
8+
69val get_len : Cstruct .t -> int
710val set_len : Cstruct .t -> int -> unit
811
You can’t perform that action at this time.
0 commit comments