diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-16 15:49:42 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-16 15:49:42 +0000 |
commit | 88a0ecb3917a38ef5edf95f302b9aed1b71ef36d (patch) | |
tree | f1b46011a80d594349c2fbc5ef1d3563cdaa74c8 /src/packetSource.cpp | |
parent | small cleanup (diff) |
added Log to stdout
added dummy stdio tun device
some cleanups (windows)
Diffstat (limited to 'src/packetSource.cpp')
-rw-r--r-- | src/packetSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packetSource.cpp b/src/packetSource.cpp index 9a35cc3..b6eebbe 100644 --- a/src/packetSource.cpp +++ b/src/packetSource.cpp @@ -54,7 +54,7 @@ UDPPacketSource::UDPPacketSource(std::string localaddr, std::string port) : sock u_int32_t UDPPacketSource::recv(u_int8_t* buf, u_int32_t len, PacketSourceEndpoint& remote) { - return sock_.receive_from(boost::asio::buffer(buf, len), remote); + return static_cast<u_int32_t>(sock_.receive_from(boost::asio::buffer(buf, len), remote)); } void UDPPacketSource::send(u_int8_t* buf, u_int32_t len, PacketSourceEndpoint remote) |