Attention is currently required from: Timur Davydov.

pespin has posted comments on this change by Timur Davydov. ( 
https://gerrit.osmocom.org/c/libosmocore/+/41922?usp=email )

Change subject: core: guard TCP stats on availability of linux/tcp.h and struct 
tcp_info
......................................................................


Patch Set 1:

(3 comments)

Patchset:

PS1:
Since we are only talking about 2-3 public APIs, I think in this case it may 
make sense to wrap all of existing stats_tcp.c within a "if HAVE_LINUX_TCP_H", 
and then add a "else" section with stub functions for those public APIs, eg. 
_register() one returning -ENOTSUP.


File src/core/stats_tcp.c:

https://gerrit.osmocom.org/c/libosmocore/+/41922/comment/76b3162b_6c153b40?usp=email
 :
PS1, Line 315:          osmo_timer_schedule(&stats_tcp_poll_timer, 
osmo_tcp_stats_config->interval, 0);
I stats are not used, we should disable this too.


https://gerrit.osmocom.org/c/libosmocore/+/41922/comment/f1a1f178_92b7975c?usp=email
 :
PS1, Line 328:  osmo_timer_setup(&stats_tcp_poll_timer, 
stats_tcp_poll_timer_cb, NULL);
I stats are not used, we can disable this function completelly afaiu.



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41922?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ibcd00f15131b0291f0b10eca51401c518b77cc39
Gerrit-Change-Number: 41922
Gerrit-PatchSet: 1
Gerrit-Owner: Timur Davydov <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: pespin <[email protected]>
Gerrit-Attention: Timur Davydov <[email protected]>
Gerrit-Comment-Date: Fri, 23 Jan 2026 09:09:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Reply via email to