osmo_sock_init API changes

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

Holger Freyther holger at freyther.de
Tue Jan 17 14:34:00 UTC 2017


Hey,

osmo_sock_init is nice but I have hit a missing feature. I want to
be able to make an outgoing connection but need to specify the src
ip (and maybe src port too).

a.) I could extend osmo_sock_init to have a src_ip and src_port in
the parameter and issue a bind between the socket(2) and connect(2).

b.) I could add a cb function that is passing the fd to the cb and
do the bind (or others do setsockopt).


Any other ideas? Preferences? Comments?

	holger




More information about the OpenBSC mailing list