]> The Tcpdump Group git mirrors - libpcap/commit
As per Mark Pizzolato, "sendto()" isn't necessary for sending packets,
authorguy <guy>
Wed, 7 Apr 2004 08:03:32 +0000 (08:03 +0000)
committerguy <guy>
Wed, 7 Apr 2004 08:03:32 +0000 (08:03 +0000)
commit841b1f7f776f1cb3bb9dd81cf892baa7f819d61d
tree1d8b3fd966b320696859d730f0182956033aae5a
parent5b0754b7de3272aa4f2dea302b88da33eb6a9d8f
As per Mark Pizzolato, "sendto()" isn't necessary for sending packets,
at least on 2.2 and later kernels; the socket is bound (except for
sending on the "any" device, which we don't support), so a destination
address isn't necessary.

Generate the right error string for attempts to send on the "any"
device, and also disallow sends if we're in cooked mode.
pcap-linux.c