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/.
Tobias Engel t-openbsc at tobias.orgSince it is not possible to bind a socket to a specific interface on OSX, remove the option to specify the interface when compiled on OSX. --- openbsc/src/ipaccess/ipaccess-find.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openbsc/src/ipaccess/ipaccess-find.c b/openbsc/src/ipaccess/ipaccess-find.c index 3f9bf41..8c9cffb 100644 --- a/openbsc/src/ipaccess/ipaccess-find.c +++ b/openbsc/src/ipaccess/ipaccess-find.c @@ -40,12 +40,14 @@ static int udp_sock(const char *ifname) if (fd < 0) return fd; +#ifndef __APPLE__ if (ifname) { rc = setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, ifname, strlen(ifname)); if (rc < 0) goto err; } +#endif sa.sin_family = AF_INET; sa.sin_port = htons(3006); @@ -172,12 +174,14 @@ int main(int argc, char **argv) printf("ipaccess-find (C) 2009 by Harald Welte\n"); printf("This is FREE SOFTWARE with ABSOLUTELY NO WARRANTY\n\n"); +#ifndef __APPLE__ if (argc < 2) { fprintf(stdout, "you might need to specify the outgoing\n" " network interface, e.g. ``%s eth0''\n", argv[0]); } else { ifname = argv[1]; } +#endif bfd.cb = bfd_cb; bfd.when = BSC_FD_READ | BSC_FD_WRITE; -- 1.7.10.2 (Apple Git-33)