Skip to content

Commit d0c812f

Browse files
author
Eric Reed
committed
IPv6 struct
1 parent 2c5cfe1 commit d0c812f

File tree

1 file changed

+4
-2
lines changed
  • src/libstd/rt/io/net

1 file changed

+4
-2
lines changed

src/libstd/rt/io/net/ip.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
type Port = u16;
12+
1113
#[deriving(Eq, TotalEq)]
1214
pub enum IpAddr {
13-
Ipv4(u8, u8, u8, u8, u16),
14-
Ipv6
15+
Ipv4(u8, u8, u8, u8, Port),
16+
Ipv6(u16, u16, u16, u16, u16, u16, u16, u16, Port)
1517
}

0 commit comments

Comments
 (0)