summaryrefslogtreecommitdiff
path: root/src/win32
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2010-02-18 09:15:27 +0000
committerMarkus Grüneis <gimpf@gimpf.org>2010-02-18 09:15:27 +0000
commite191eab68d905bfe14e3590a92fa653f0ae2ebce (patch)
treea5837b067ecab92c645008b537087b0d163ef1ab /src/win32
parentwhitespace only change: unified formatting with "astyle --style=k/r --indent=... (diff)
non-functional changes only: use standard writing of stdint.h types; still import from boost (compiler compatibility)
Diffstat (limited to 'src/win32')
-rw-r--r--src/win32/tunDevice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/win32/tunDevice.cpp b/src/win32/tunDevice.cpp
index 810e094..bd7794f 100644
--- a/src/win32/tunDevice.cpp
+++ b/src/win32/tunDevice.cpp
@@ -47,7 +47,7 @@
#define MIN_TAP_VER_MAJOR 8
#define MIN_TAP_VER_MINOR 2
-TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifcfg_addr, u_int16_t ifcfg_prefix) : conf_(dev_name, dev_type, ifcfg_addr, ifcfg_prefix, 1400)
+TunDevice::TunDevice(std::string dev_name, std::string dev_type, std::string ifcfg_addr, uint16_t ifcfg_prefix) : conf_(dev_name, dev_type, ifcfg_addr, ifcfg_prefix, 1400)
{
if(conf_.type_ != TYPE_TUN && conf_.type_ != TYPE_TAP) {
AnytunError::throwErr() << "unable to recognize type of device (tun or tap)";
@@ -209,7 +209,7 @@ int TunDevice::fix_return(int ret, size_t pi_length) const
return 0;
}
-int TunDevice::read(u_int8_t* buf, u_int32_t len)
+int TunDevice::read(uint8_t* buf, uint32_t len)
{
DWORD lenout;
roverlapped_.Offset = 0;
@@ -232,7 +232,7 @@ int TunDevice::read(u_int8_t* buf, u_int32_t len)
return lenout;
}
-int TunDevice::write(u_int8_t* buf, u_int32_t len)
+int TunDevice::write(uint8_t* buf, uint32_t len)
{
DWORD lenout;
woverlapped_.Offset = 0;
@@ -279,7 +279,7 @@ void TunDevice::do_ifconfig()
CloseHandle(handle_);
AnytunError::throwErr() << "Unable to get device mtu: " << AnytunErrno(err);
}
- conf_.mtu_ = static_cast<u_int16_t>(mtu);
+ conf_.mtu_ = static_cast<uint16_t>(mtu);
}
void TunDevice::waitUntilReady()