socket_wrapper: truncate packets to a 1500 byte payload
authorStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2008 06:33:24 +0000 (08:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 10 Jun 2008 09:38:11 +0000 (11:38 +0200)
commit5380fd800d90f0463f99dbd9efb78feb177b1790
tree8881206229b2afc6d195f7570e9a7ec8431267e2
parentd57b8280d6ded808ab82767789f45629abe95dde
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
(cherry picked from commit 5b01206f1bb2e62c08bda34b45904ec4f83ac5de)
(This used to be commit eb8c37a1ca97b41de00ec937a90bfdbe9cd21531)
source3/lib/socket_wrapper/socket_wrapper.c