MarcoFalke
490cd874a4
netif: fix compilation warning in QueryDefaultGatewayImpl()
```
src/common/netif.cpp:137:51: error: comparison of integers of different signs: 'int64_t' (aka 'long') and 'unsigned long' [-Werror,-Wsign-compare]
137 | for (nlmsghdr* hdr = (nlmsghdr*)response; NLMSG_OK(hdr, recv_result); hdr = NLMSG_NEXT(hdr, recv_result)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink.h:220:31: note: expanded from macro 'NLMSG_OK'
220 | #define NLMSG_OK(_hdr, _len) NL_ITEM_OK(_hdr, _len, NLMSG_HDRLEN, _NLMSG_LEN)
| ^ ~~~~ ~~~~~~~~~~~~
/usr/include/netlink/netlink.h:203:10: note: expanded from macro 'NL_ITEM_OK'
203 | ((_len) >= _hlen && _LEN_M(_ptr) >= _hlen && _LEN_M(_ptr) <= (_len))
| ~~~~ ^ ~~~~~
1 error generated.
```
Happens on FreeBSD 15.0, with the default compiler (Clang 19).
On FreeBSD 14, `/usr/include/netlink/netlink.h` contains:
```
#define NLMSG_HDRLEN ((int)sizeof(struct nlmsghdr))
```
On FreeBSD 15, `/usr/include/netlink/netlink.h` contains:
```
#define NLMSG_HDRLEN (sizeof(struct nlmsghdr))
```
Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Github-Pull: #34093
Rebased-From: c1361fc42d
2026-02-27 12:10:52 +00:00
..
2025-03-11 16:00:46 +00:00
2026-02-27 12:10:52 +00:00
2025-09-09 10:13:49 +01:00
2025-08-24 22:48:09 +01:00
2025-08-20 12:01:35 +01:00
2025-02-14 11:15:53 +01:00
2025-02-10 08:26:01 -05:00
2026-01-12 13:13:49 -08:00
2025-01-16 11:09:56 +00:00
2025-03-05 15:36:56 +00:00
2026-01-12 13:13:45 -08:00
2025-11-03 21:50:28 +00:00
2025-06-19 10:39:27 +01:00
2025-09-29 15:56:02 -04:00
2025-11-03 21:50:28 +00:00
2026-01-12 11:40:55 -08:00
2025-02-21 11:11:29 +00:00
2025-09-12 11:52:26 +01:00
2026-02-26 10:00:35 +00:00
2025-05-06 18:04:27 +01:00
2025-01-14 19:21:37 +01:00
2025-01-20 21:19:39 +01:00
2025-06-19 10:39:27 +01:00
2025-02-13 12:30:15 -05:00
2025-06-19 10:39:27 +01:00
2025-01-15 12:15:40 +01:00
2025-06-19 10:39:27 +01:00
2025-01-15 12:15:40 +01:00
2025-06-19 10:39:27 +01:00
2025-01-15 12:15:40 +01:00
2025-06-19 10:39:27 +01:00
2025-01-16 21:06:21 +00:00
2025-09-12 15:43:53 +01:00
2025-09-12 15:44:00 +01:00
2025-02-13 12:30:15 -05:00
2025-03-06 15:39:58 -06:00
2025-01-14 19:21:37 +01:00
2025-02-20 22:18:51 +00:00
2025-03-04 14:23:18 -05:00
2025-02-13 12:30:15 -05:00
2025-02-13 12:30:15 -05:00
2025-08-20 12:01:35 +01:00
2025-01-16 21:06:21 +00:00
2025-08-20 11:59:45 +01:00
2025-08-20 12:01:35 +01:00
2026-01-12 11:40:55 -08:00
2025-09-17 10:12:08 +01:00
2025-09-17 10:12:08 +01:00
2025-01-13 21:53:56 +01:00
2025-01-13 21:53:56 +01:00
2025-07-04 16:35:35 +01:00
2025-01-22 11:29:05 +01:00
2025-01-22 11:29:05 +01:00
2025-05-06 18:04:27 +01:00
2025-01-14 19:01:53 +01:00
2025-01-22 15:01:23 -05:00
2025-01-15 12:16:08 +01:00
2025-02-13 12:30:15 -05:00
2025-01-15 15:44:55 +01:00
2025-02-07 13:55:57 -05:00
2025-02-07 13:55:57 -05:00
2025-01-29 18:05:16 -05:00
2025-01-29 18:05:16 -05:00
2026-01-12 11:40:55 -08:00
2025-03-11 16:00:54 +00:00