summaryrefslogtreecommitdiff
path: root/src/packetSource.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-16 15:49:42 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-16 15:49:42 +0000
commit88a0ecb3917a38ef5edf95f302b9aed1b71ef36d (patch)
treef1b46011a80d594349c2fbc5ef1d3563cdaa74c8 /src/packetSource.cpp
parentsmall 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.cpp2
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)