Sorry about that - I should've done more digging to see if that would work on 
BSD-type systems.

>From what I can tell, you can just use bind to bind a socket to an address, 
>but there's no way to bind directly to an interface. If we want to continue 
>with specifying interfaces instead of addresses, we'd have to call getifaddrs, 
>and iterate through the interfaces to get the address associated with a 
>specific interface name.

This would introduce the limitation that you can only send RSTs out of an 
interface that has an address associated with it. I don't think that's a 
particularly troublesome limitation, but just something to keep in mind.

Does this sound like a reasonable way to proceed?

  --Vlad

On Oct 31, 2012, at 9:17 PM, Robin Sommer <[email protected]> wrote:

> 
> On Wed, Oct 31, 2012 at 19:38 -0500, [email protected] 
> wrote:
> 
>> /home/jenkins/workspace/CompileDebug/bro/aux/bro-aux/rst/rst.c:364: error: 
>> 'SO_BINDTODEVICE' undeclared (first use in this function)
> 
> Yeah, I was afraid that this could cause trouble. Any way to make that
> portable?
> 
> Robin
> 
> -- 
> Robin Sommer * Phone +1 (510) 722-6541 * [email protected]
> ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org
> _______________________________________________
> bro-dev mailing list
> [email protected]
> http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev


_______________________________________________
bro-dev mailing list
[email protected]
http://mailman.icsi.berkeley.edu/mailman/listinfo/bro-dev

Reply via email to