diff options
author | Christian Pointner <equinox@anytun.org> | 2009-03-05 00:05:30 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-03-05 00:05:30 +0000 |
commit | 0b9bed66989fa83407a41eeb7102b6783fb53949 (patch) | |
tree | c03c8a2cb76a7f0afc6786e0219ab781cde454b4 /src/linux | |
parent | fixed signalcontroller (diff) |
got rid of ThreadParam
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/tunDevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linux/tunDevice.cpp b/src/linux/tunDevice.cpp index e9056b3..b221ebb 100644 --- a/src/linux/tunDevice.cpp +++ b/src/linux/tunDevice.cpp @@ -90,7 +90,7 @@ TunDevice::~TunDevice() ::close(fd_); } -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; @@ -98,7 +98,7 @@ int TunDevice::fix_return(int ret, size_t pi_length) return (static_cast<size_t>(ret) > pi_length ? (ret - pi_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; @@ -118,7 +118,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; |