Forging ipv6 addresses?
Martin Lopreiato
martin.lopreiato at gmail.com
Wed Feb 17 00:21:25 UTC 2010
hi,
On Feb 16, 2010, at 2:09 PM, Martin Lopreiato wrote:
> > note: if i use a configured address, my code works perfectly. so the
> > error message i'm getting when trying to forge an ipv6 address does
> > not seem to be related to a bug in my code.
>
> You're not trying to send this traffic from a jail, by any chance?
>
no.
Consider using PCAP/BPF interface or a wrapper like libnet....
>
pcap/bpf wouldn't do: i'd have to take care of neighbor-discovery and
routing myself. libnet would probably do, but.. hey! it's a simple ipv6
packet. and at this point, i'm curious about whether there's a limitation on
the addresses you can "forge" with sendmsg()
fwiw, linux seems to have an ipv6 version of ipv5}4 hdrinclude socket
option. that's nice, too.
thanx,
/m
More information about the freebsd-net
mailing list