netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sending IP pkgs form user space on a specific interface?
@ 2011-02-03 21:55 Joakim Tjernlund
  2011-02-03 22:03 ` Ben Greear
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2011-02-03 21:55 UTC (permalink / raw)
  To: netdev


Is there a way to specify what I/F a IP pkg should be sent
out on?

I have multiple ppp I/Fs with the same local and remote address
and I need to specify what interface to send OSPF protocol
messages to.

 Jocke


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sending IP pkgs form user space on a specific interface?
  2011-02-03 21:55 sending IP pkgs form user space on a specific interface? Joakim Tjernlund
@ 2011-02-03 22:03 ` Ben Greear
  2011-02-03 22:14   ` Joakim Tjernlund
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Greear @ 2011-02-03 22:03 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: netdev

On 02/03/2011 01:55 PM, Joakim Tjernlund wrote:
>
> Is there a way to specify what I/F a IP pkg should be sent
> out on?
>
> I have multiple ppp I/Fs with the same local and remote address
> and I need to specify what interface to send OSPF protocol
> messages to.

Check out SO_BINDTODEVICE.

Thanks,
Ben

>
>   Jocke
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sending IP pkgs form user space on a specific interface?
  2011-02-03 22:03 ` Ben Greear
@ 2011-02-03 22:14   ` Joakim Tjernlund
  2011-02-03 22:41     ` Ben Greear
  0 siblings, 1 reply; 4+ messages in thread
From: Joakim Tjernlund @ 2011-02-03 22:14 UTC (permalink / raw)
  To: Ben Greear; +Cc: netdev

Ben Greear <greearb@candelatech.com> wrote on 2011/02/03 23:03:53:
> From: Ben Greear <greearb@candelatech.com>
> To: Joakim Tjernlund <joakim.tjernlund@transmode.se>
> Cc: netdev@vger.kernel.org
> Date: 2011/02/03 23:03
> Subject: Re: sending IP pkgs form user space on a specific interface?
>
> On 02/03/2011 01:55 PM, Joakim Tjernlund wrote:
> >
> > Is there a way to specify what I/F a IP pkg should be sent
> > out on?
> >
> > I have multiple ppp I/Fs with the same local and remote address
> > and I need to specify what interface to send OSPF protocol
> > messages to.
>
> Check out SO_BINDTODEVICE.

Thanks, can do setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, ..) for
each I/Fs I need tx pkgs over?
How do I unbind to any I/F?

If possible, I would like to specify the I/F in the pkg overhead.

   Jocke


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sending IP pkgs form user space on a specific interface?
  2011-02-03 22:14   ` Joakim Tjernlund
@ 2011-02-03 22:41     ` Ben Greear
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Greear @ 2011-02-03 22:41 UTC (permalink / raw)
  To: Joakim Tjernlund; +Cc: netdev

On 02/03/2011 02:14 PM, Joakim Tjernlund wrote:
> Ben Greear<greearb@candelatech.com>  wrote on 2011/02/03 23:03:53:
>> From: Ben Greear<greearb@candelatech.com>
>> To: Joakim Tjernlund<joakim.tjernlund@transmode.se>
>> Cc: netdev@vger.kernel.org
>> Date: 2011/02/03 23:03
>> Subject: Re: sending IP pkgs form user space on a specific interface?
>>
>> On 02/03/2011 01:55 PM, Joakim Tjernlund wrote:
>>>
>>> Is there a way to specify what I/F a IP pkg should be sent
>>> out on?
>>>
>>> I have multiple ppp I/Fs with the same local and remote address
>>> and I need to specify what interface to send OSPF protocol
>>> messages to.
>>
>> Check out SO_BINDTODEVICE.
>
> Thanks, can do setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, ..) for
> each I/Fs I need tx pkgs over?
> How do I unbind to any I/F?
>
> If possible, I would like to specify the I/F in the pkg overhead.

Man-pages and google should find those answers.
You could put my name in your search as well, if you want..I know I've
posted sample code in the past to some mailing list or another.

Thanks,
Ben

>
>     Jocke
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-03 22:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-03 21:55 sending IP pkgs form user space on a specific interface? Joakim Tjernlund
2011-02-03 22:03 ` Ben Greear
2011-02-03 22:14   ` Joakim Tjernlund
2011-02-03 22:41     ` Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).