socket_wrapper: truncate packets to a 1500 byte payload
commiteb8c37a1ca97b41de00ec937a90bfdbe9cd21531
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 09:38:11 +0000 (10 11:38 +0200)
treef0b99150cc9190871affe3a8e23ff46ef15b6256
parentb03c2793548834a1dc0483b03081d872ab1e17f0
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)
source/lib/socket_wrapper/socket_wrapper.c