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/gerrit-log@lists.osmocom.org/.
lynxis lazus gerrit-no-reply at lists.osmocom.orglynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/21895 ) Change subject: gprs_ns2: fr: check the device state before changing state ...................................................................... gprs_ns2: fr: check the device state before changing state Reduce the required capabilities if the device is already set up. Change-Id: I72eb2567078758694c648a493324b212461ee735 --- M src/gb/gprs_ns2_fr.c 1 file changed, 7 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/95/21895/1 diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c index 1b0ec00..e972a34 100644 --- a/src/gb/gprs_ns2_fr.c +++ b/src/gb/gprs_ns2_fr.c @@ -447,6 +447,13 @@ memset(&req, 0, sizeof req); OSMO_STRLCPY_ARRAY(req.ifr_name, netif); + rc = ioctl(sock, SIOCGIFFLAGS, &req); + if (rc < 0) + return rc; + + if ((req.ifr_flags & IFF_UP) == up) + return 0; + if (up) req.ifr_flags |= IFF_UP; -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/21895 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I72eb2567078758694c648a493324b212461ee735 Gerrit-Change-Number: 21895 Gerrit-PatchSet: 1 Gerrit-Owner: lynxis lazus <lynxis at fe80.eu> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201229/ca1d2833/attachment.htm>