Re: [tcpdump-workers] pcap_inject() on loopback (FreeBSD)

2014-06-16 Thread Guy Harris
On Jun 16, 2014, at 2:50 AM, Guy Harris wrote: > On Jun 15, 2014, at 1:56 PM, Fernando Gont wrote: > >> I will certainly file a bug report, and CC you. My understanding is that >> this should be filled in most (if not all) of the BSD variants? (because >> besides the error message one obtains,

Re: [tcpdump-workers] pcap_inject() on loopback (FreeBSD)

2014-06-16 Thread Guy Harris
On Jun 15, 2014, at 1:56 PM, Fernando Gont wrote: > I will certainly file a bug report, and CC you. My understanding is that > this should be filled in most (if not all) of the BSD variants? (because > besides the error message one obtains, it seems that in several flavors > of them, pcap_inject

Re: [tcpdump-workers] pcap_inject() on loopback (FreeBSD)

2014-06-16 Thread Fernando Gont
Hi, Guy, First of all, thanks so much for your help and detailed explanation! -- I really appreciate it... On 06/15/2014 08:07 PM, Guy Harris wrote: > >> which would seem to indicate that pcap_inject() is overwriting the >> value I set with something else (pseudo_AF_HDRCMPLT?). > > It indicates

Re: [tcpdump-workers] pcap_inject() on loopback (FreeBSD)

2014-06-15 Thread Guy Harris
On Jun 15, 2014, at 5:23 AM, Fernando Gont wrote: > I'm trying to send an IPv6 packet with pcap_inject() on the loopback > interface of a FreeBSD 9.2 system. > > What I write with pcap_inect() is the IPv6 packet, preceded with the > 4-byte AF header (which I set to PF_INET6 (which is 28) in hos

[tcpdump-workers] pcap_inject() on loopback (FreeBSD)

2014-06-15 Thread Fernando Gont
Folks, I'm trying to send an IPv6 packet with pcap_inject() on the loopback interface of a FreeBSD 9.2 system. What I write with pcap_inect() is the IPv6 packet, preceded with the 4-byte AF header (which I set to PF_INET6 (which is 28) in host byte order). However, pcap_inject() fails with "send