osmith has uploaded a new patch set (#11) to the change originally created by neels. ( https://gerrit.osmocom.org/c/osmo-hlr/+/16202 )
Change subject: add libosmo-mslookup and mDNS implementation ...................................................................... add libosmo-mslookup and mDNS implementation Create a library with generic functions for performing a distributed subscriber lookup, which allow querying IPs and ports of services by MSISDN/IMSI. For a detailed overview of this and upcoming patches, please see the elaborate comment at the top of mslookup.c. The first implementation uses multicast DNS packets. I decided to write custom DNS functions instead of using libc-ares (which we use in OsmoSGSN already), because it is only a DNS client implementation and we need both client and server. The DNS code is abstracted from the mslookup specific code, so the DNS part could in theory be replaced with a third party library in the future. We decided to place the mslookup library in the OsmoHLR source tree (instead of libosmocore), because the way we have implemented the D-GSM network, OsmoHLR will be the only user of the library for now. In the future, OsmoMSC may need it, but it depends on OsmoHLR already. Related: OS#4237 Patch-by: osmith, nhofmeyr Change-Id: I83487ab8aad1611eb02e997dafbcb8344da13df1 --- M .gitignore M configure.ac M debian/control A debian/libosmo-mslookup-dev.install A debian/libosmo-mslookup0.install M include/Makefile.am M include/osmocom/hlr/logging.h A include/osmocom/mslookup/mdns.h A include/osmocom/mslookup/mdns_sock.h A include/osmocom/mslookup/mslookup.h A include/osmocom/mslookup/mslookup_client.h A include/osmocom/mslookup/mslookup_client_fake.h A include/osmocom/mslookup/mslookup_client_mdns.h A libosmo-mslookup.pc.in M src/Makefile.am A src/mslookup/Makefile.am A src/mslookup/mdns.c A src/mslookup/mdns_msg.c A src/mslookup/mdns_msg.h A src/mslookup/mdns_record.c A src/mslookup/mdns_record.h A src/mslookup/mdns_rfc.c A src/mslookup/mdns_rfc.h A src/mslookup/mdns_sock.c A src/mslookup/mslookup.c A src/mslookup/mslookup_client.c A src/mslookup/mslookup_client_fake.c A src/mslookup/mslookup_client_mdns.c M tests/Makefile.am A tests/mslookup/Makefile.am A tests/mslookup/mdns_test.c A tests/mslookup/mdns_test.err A tests/mslookup/mslookup_client_mdns_test.c A tests/mslookup/mslookup_client_mdns_test.err A tests/mslookup/mslookup_client_test.c A tests/mslookup/mslookup_client_test.err A tests/mslookup/mslookup_test.c A tests/mslookup/mslookup_test.err M tests/testsuite.at 39 files changed, 4,449 insertions(+), 2 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/02/16202/11 -- To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/16202 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-hlr Gerrit-Branch: master Gerrit-Change-Id: I83487ab8aad1611eb02e997dafbcb8344da13df1 Gerrit-Change-Number: 16202 Gerrit-PatchSet: 11 Gerrit-Owner: neels <nhofm...@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: neels <nhofm...@sysmocom.de> Gerrit-Reviewer: osmith <osm...@sysmocom.de> Gerrit-CC: pespin <pes...@sysmocom.de> Gerrit-MessageType: newpatchset