pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcap/+/39149?usp=email )
Change subject: pcap-server: Take into account PDU len when calculating pcap max-size
......................................................................
pcap-server: Take into account PDU len when calculating pcap max-size
We never want to overpass the configured max-size.
Change-Id: I666830fbbc23ce34007d45bbf8c7a13a1f2a93ea
---
M src/osmo_server_network.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/49/39149/1
diff --git a/src/osmo_server_network.c b/src/osmo_server_network.c
index b566bd2..41d0b3f 100644
--- a/src/osmo_server_network.c
+++ b/src/osmo_server_network.c
@@ -234,7 +234,7 @@
}
off_t cur = lseek(conn->local_fd, 0, SEEK_CUR);
- if (cur > conn->server->max_size) {
+ if (cur + data->len > conn->server->max_size) {
LOGP(DSERVER, LOGL_NOTICE, "Rolling over file for %s\n", conn->name);
restart_pcap(conn);
} else if (conn->last_write.tm_mday != tm->tm_mday ||
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/39149?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I666830fbbc23ce34007d45bbf8c7a13a1f2a93ea
Gerrit-Change-Number: 39149
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Attention is currently required from: osmith.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/mncc-python/+/39143?usp=email )
Change subject: mncc_mt_loadgen.py: Allow configuring first_msisdn_called in calls()
......................................................................
Patch Set 1:
(1 comment)
File mncc_mt_loadgen.py:
https://gerrit.osmocom.org/c/mncc-python/+/39143/comment/e188830a_fbf3661a?… :
PS1, Line 185: if len(first_msisdn_called) > needed_len:
> Can this if condition ever be true? as I understand it, nr is always >= 1. […]
nr=3 first_msisdn_called='00000', so that it produces:
"00000"
"00001"
"00002"
instead of
"0"
"1"
"2"
--
To view, visit https://gerrit.osmocom.org/c/mncc-python/+/39143?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: mncc-python
Gerrit-Branch: master
Gerrit-Change-Id: I2dd6b96ea2da117d67a368bc076969f25fa61a52
Gerrit-Change-Number: 39143
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-CC: osmith <osmith(a)sysmocom.de>
Gerrit-Attention: osmith <osmith(a)sysmocom.de>
Gerrit-Comment-Date: Mon, 16 Dec 2024 10:06:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith(a)sysmocom.de>