Add mask and well known ports to ip in ipv4

This commit is contained in:
Danny Robson 2011-06-29 21:28:34 +10:00
parent 46d4a369f0
commit 46b2ba4e20

7
ip.hpp
View File

@ -20,6 +20,8 @@
#ifndef __UTIL_IP_HPP
#define __UTIL_IP_HPP
#include "range.hpp"
#include <cstdint>
#include <string>
@ -47,6 +49,11 @@ namespace ipv4 {
typedef uint16_t port;
typedef uint32_t mask;
extern const range<port> WELL_KNOWN_PORT,
REGISTERED_PORT,
PRIVATE_PORT;
}