summaryrefslogtreecommitdiff
path: root/src/bsd
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-03-05 00:05:30 +0000
committerChristian Pointner <equinox@anytun.org>2009-03-05 00:05:30 +0000
commit0b9bed66989fa83407a41eeb7102b6783fb53949 (patch)
treec03c8a2cb76a7f0afc6786e0219ab781cde454b4 /src/bsd
parentfixed signalcontroller (diff)
got rid of ThreadParam
Diffstat (limited to 'src/bsd')
-rw-r--r--src/bsd/tunDevice.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bsd/tunDevice.cpp b/src/bsd/tunDevice.cpp
index 4e344a8..240e46c 100644
--- a/src/bsd/tunDevice.cpp
+++ b/src/bsd/tunDevice.cpp
@@ -192,7 +192,7 @@ void TunDevice::init_post()
#error This Device works just for OpenBSD, FreeBSD or NetBSD
#endif
-int TunDevice::fix_return(int ret, size_t pi_length)
+int TunDevice::fix_return(int ret, size_t pi_length) const
{
if(ret < 0)
return ret;
@@ -200,7 +200,7 @@ int TunDevice::fix_return(int ret, size_t pi_length)
return (static_cast<size_t>(ret) > type_length ? (ret - type_length) : 0);
}
-int TunDevice::read(u_int8_t* buf, u_int32_t len)
+int TunDevice::read(u_int8_t* buf, u_int32_t len) const
{
if(fd_ < 0)
return -1;
@@ -219,7 +219,7 @@ int TunDevice::read(u_int8_t* buf, u_int32_t len)
return(::read(fd_, buf, len));
}
-int TunDevice::write(u_int8_t* buf, u_int32_t len)
+int TunDevice::write(u_int8_t* buf, u_int32_t len) const
{
if(fd_ < 0)
return -1;