laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27585 )
Change subject: intf_line: Ensure unique rate counter group indexes
......................................................................
intf_line: Ensure unique rate counter group indexes
When we have multiple interfaces, we cannot simply use the line->id
as rate counter group index, but should use a combination of interface
id and line id.
Change-Id: I515c1f39285489845f88c3403ebf16835571e154
---
M src/intf_line.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/85/27585/1
diff --git a/src/intf_line.c b/src/intf_line.c
index 9146368..bd7a393 100644
--- a/src/intf_line.c
+++ b/src/intf_line.c
@@ -247,7 +247,7 @@
} else
line->id = line_id;
- line->ctrs = rate_ctr_group_alloc(line, &line_ctrg_desc, line->id);
+ line->ctrs = rate_ctr_group_alloc(line, &line_ctrg_desc, intf->id << 8 | line->id);
OSMO_ASSERT(line->ctrs);
osmo_timer_setup(&line->ts0.timer, _ts0_tmr_cb, line);
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27585
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I515c1f39285489845f88c3403ebf16835571e154
Gerrit-Change-Number: 27585
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-e1d/+/27581 )
Change subject: e1d.h: add #pragma once
......................................................................
e1d.h: add #pragma once
all other header files already have it in place.
Change-Id: Ia7a7856563c2c9d422b73fdc431e0ea4d456f9aa
---
M src/e1d.h
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/81/27581/1
diff --git a/src/e1d.h b/src/e1d.h
index 5d24c5a..dbcc047 100644
--- a/src/e1d.h
+++ b/src/e1d.h
@@ -21,6 +21,7 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#pragma once
#include <stdint.h>
--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/27581
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: Ia7a7856563c2c9d422b73fdc431e0ea4d456f9aa
Gerrit-Change-Number: 27581
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: newchange
Visit https://build.opensuse.org/package/live_build_log/network:osmocom:nightly/o…
Package network:osmocom:nightly/osmo-pcap failed to build in openSUSE_Leap_15.1_ARM/armv7l
Check out the package for editing:
osc checkout network:osmocom:nightly osmo-pcap
Last lines of build log:
[ 368s] checking how to run the C preprocessor... gcc -E
[ 369s] checking for grep that handles long lines and -e... /usr/bin/grep
[ 369s] checking for egrep... /usr/bin/grep -E
[ 371s] checking for ANSI C header files... yes
[ 371s] checking whether to enable VTY tests... no
[ 371s] checking for pcap-config... /usr/bin/pcap-config
[ 371s] checking for libosmocore >= 1.6.0... no
[ 371s] configure: error: Package requirements (libosmocore >= 1.6.0) were not met:
[ 371s]
[ 371s] Package 'libsctp', required by 'libosmocore', not found
[ 371s]
[ 371s] Consider adjusting the PKG_CONFIG_PATH environment variable if you
[ 371s] installed software in a non-standard prefix.
[ 371s]
[ 371s] Alternatively, you may set the environment variables LIBOSMOCORE_CFLAGS
[ 371s] and LIBOSMOCORE_LIBS to avoid the need to call pkg-config.
[ 371s] See the pkg-config man page for more details.
[ 372s] error: Bad exit status from /var/tmp/rpm-tmp.QDem4N (%build)
[ 372s]
[ 372s]
[ 372s] RPM build errors:
[ 372s] Bad exit status from /var/tmp/rpm-tmp.QDem4N (%build)
[ 372s] ### VM INTERACTION START ###
[ 373s] [ 320.496251] sysrq: SysRq : Power Off
[ 373s] [ 320.504719] reboot: Power down
[ 373s] ### VM INTERACTION END ###
[ 373s]
[ 374s] armbuild23 failed "build osmo-pcap.spec" at Mon Mar 28 00:47:07 UTC 2022.
[ 374s]
--
Configure notifications at https://build.opensuse.org/my/subscriptions
openSUSE Build Service (https://build.opensuse.org/)