File tree 3 files changed +5
-0
lines changed
3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ impl fmt::Display for EtherType {
28
28
pub struct Address ( pub [ u8 ; 6 ] ) ;
29
29
30
30
impl Address {
31
+ /// The broadcast address.
31
32
pub const BROADCAST : Address = Address ( [ 0xff ; 6 ] ) ;
32
33
33
34
/// Construct an Ethernet address from a sequence of octets, in big-endian.
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ pub struct Endpoint {
135
135
}
136
136
137
137
impl Endpoint {
138
+ /// An endpoint with unspecified address and port.
138
139
pub const UNSPECIFIED : Endpoint = Endpoint { addr : Address :: Unspecified , port : 0 } ;
139
140
140
141
/// Create an endpoint address from given address and port.
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ pub use super::IpProtocol as Protocol;
12
12
pub struct Address ( pub [ u8 ; 4 ] ) ;
13
13
14
14
impl Address {
15
+ /// An unspecified address.
15
16
pub const UNSPECIFIED : Address = Address ( [ 0x00 ; 4 ] ) ;
17
+
18
+ /// The broadcast address.
16
19
pub const BROADCAST : Address = Address ( [ 0xff ; 4 ] ) ;
17
20
18
21
/// Construct an IPv4 address from parts.
You can’t perform that action at this time.
0 commit comments