socket_wrapper: truncate packets to a 1500 byte payload
commit5b01206f1bb2e62c08bda34b45904ec4f83ac5de
authorStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2008 06:33:24 +0000 (10 08:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2008 06:43:02 +0000 (10 08:43 +0200)
tree405cc696d01ae90be6722af2cf514dfda1eedf28
parent1d52d9cc70158dbe30325220aa5c1e6203c8b72b
socket_wrapper: truncate packets to a 1500 byte payload

Truncate sendto(), recvfrom(), send() and recv() to 1500 bytes
so that're getting a correctly formatted pcap file and the result
look more like real network traffic.

metze
source/lib/socket_wrapper/socket_wrapper.c