bind & connect

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Sun Oct 16 21:55:33 UTC 2016


On Fri, Oct 14, 2016 at 04:41:01PM +0200, Harald Welte wrote:
> > Would I bind() to a given local IP address and connect() to the remote
> > one?
> 
> yes.

> In any case, this is one of the things I wouldn't bother unless
> somebody really indicates he needs it.

Ok, will not bother then.

Out of curiosity...

So normally when I send something, the routing table (ip r show) determines
which local interface the remote side sees as sender.

If I connect() and bind() at the same time, would that bypass the routing table
and the bind() address would be the sender?

And that's why we don't really need it, because it doesn't make sense to send
from a different interface than indicated by the routing table?


-- 
- Neels Hofmeyr <nhofmeyr at sysmocom.de>          http://www.sysmocom.de/
=======================================================================
* sysmocom - systems for mobile communications GmbH
* Alt-Moabit 93
* 10559 Berlin, Germany
* Sitz / Registered office: Berlin, HRB 134158 B
* Geschäftsführer / Managing Directors: Harald Welte
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20161016/2377b6f6/attachment.bin>


More information about the OpenBSC mailing list