about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorEric Reed <ereed@mozilla.com>2013-06-25 16:03:24 -0700
committerEric Reed <ereed@mozilla.com>2013-06-25 16:03:24 -0700
commitd0c812f2a8064a9ea1b6a309343c00a5c18c9ce4 (patch)
treef52112304705af8f8c17a08604550ffb106e6229 /src/libstd/rt
parent2c5cfe1037d618153b39597e0e1e62d95c8e4760 (diff)
downloadrust-d0c812f2a8064a9ea1b6a309343c00a5c18c9ce4.tar.gz
rust-d0c812f2a8064a9ea1b6a309343c00a5c18c9ce4.zip
IPv6 struct
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/io/net/ip.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libstd/rt/io/net/ip.rs b/src/libstd/rt/io/net/ip.rs
index d71b891350e..3a93fd70543 100644
--- a/src/libstd/rt/io/net/ip.rs
+++ b/src/libstd/rt/io/net/ip.rs
@@ -8,8 +8,10 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+type Port = u16;
+
 #[deriving(Eq, TotalEq)]
 pub enum IpAddr {
-    Ipv4(u8, u8, u8, u8, u16),
-    Ipv6
+    Ipv4(u8, u8, u8, u8, Port),
+    Ipv6(u16, u16, u16, u16, u16, u16, u16, u16, Port)
 }