From 46b2ba4e20dbce477a3e63f8123afc91dc47f00f Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 29 Jun 2011 21:28:34 +1000 Subject: [PATCH] Add mask and well known ports to ip in ipv4 --- ip.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ip.hpp b/ip.hpp index 57d964b9..e1202129 100644 --- a/ip.hpp +++ b/ip.hpp @@ -20,6 +20,8 @@ #ifndef __UTIL_IP_HPP #define __UTIL_IP_HPP +#include "range.hpp" + #include #include @@ -47,6 +49,11 @@ namespace ipv4 { typedef uint16_t port; + typedef uint32_t mask; + + extern const range WELL_KNOWN_PORT, + REGISTERED_PORT, + PRIVATE_PORT; }