Forging ipv6 addresses?

George Neville-Neil gnn at neville-neil.com
Wed Feb 17 03:16:27 UTC 2010


On Feb 16, 2010, at 19:21 , Martin Lopreiato wrote:

> 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.
> 

I'd recommend pcs (http://pcs.sf.net) which has a lot of IPv6 support.

Best,
George


More information about the freebsd-net mailing list