Skip to content

Commit f153816

Browse files
committed
control_packet: Make header fields public
Signed-off-by: Matt Johnston <[email protected]>
1 parent 5448837 commit f153816

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/control_packet.rs

+6-4
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ bitfield! {
1111
/// Is the packet a request?
1212
pub rq, set_rq : 0, 0;
1313
/// Is this packet a datagram?
14-
d, set_d: 1, 1;
15-
rsvd, _: 2, 2;
16-
instance_id, set_instance_id: 7, 3;
14+
pub d, set_d: 1, 1;
15+
/// Reserved bits
16+
pub rsvd, _: 2, 2;
17+
/// Instance ID
18+
pub instance_id, set_instance_id: 7, 3;
1719
/// The command code of the packet
18-
command_code, set_command_code: 15, 8;
20+
pub command_code, set_command_code: 15, 8;
1921
}
2022

2123
/// A list of supported Command Codes

0 commit comments

Comments
 (0)