How to define outgoing IP address? Needed to route local traffic through IPSEC tunnel.

2015-12-30 Thread Michael Grimm
Hi — Is there a way to set the default outgoing IPv6 address of a network interface? To my understanding the IPv6 address is used that is bound to the interface by ifconfig_IFNAME_ipv6, right? I need to route all my traffic to a remote server via an IPSEC tunnel (racoon) that has a setkey.conf

Re: BPF Berkeley Packet Filter

2015-12-30 Thread Julian Elischer
On 30/12/2015 12:22 PM, Juan Herrera wrote: Hello BSD folks, I am developing a networking application in C and I have a question regarding BPF (Berkeley Packet Filters), I will give you an idea of the app first, I need to send a packet from machine A to machine B (any kind of packet) so for thi

Re: BPF Berkeley Packet Filter

2015-12-30 Thread Julian Elischer
On 30/12/2015 6:26 AM, Juan Herrera wrote: Hello, I have a question regarding Berkeley Packet filter, which is Can I read an incoming packet length with BPF, I am working on a project that requires to filter the receiving packets in the kernel before they get to userspace, but I need to be able