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
2024-12-17 10:12:31 +07: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
2024-11-04 14:59:46 -05:00
2024-12-10 21:51:48 +01: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
2024-10-28 12:36:19 +00:00
2024-11-11 12:47:53 -03:00
2024-11-11 12:47:53 -03:00
2025-01-09 10:11:46 -05:00
2025-01-03 09:19:53 -05:00
2025-01-14 19:21:37 +01:00
2024-12-19 13:46:31 +01:00
2024-10-19 18:49:53 +02:00
2024-10-19 18:49:53 +02: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
2024-11-14 13:41:02 -05:00
2024-11-14 13:41:02 -05:00
2025-03-06 15:39:58 -06:00
2024-12-03 18:02:37 -05:00
2025-01-14 19:21:37 +01:00
2024-10-28 12:35:49 +00:00
2024-11-11 14:14:39 +00:00
2025-02-20 22:18:51 +00:00
2024-12-04 14:09:05 -05:00
2024-12-02 13:52:34 +01:00
2024-11-26 20:47:08 -05:00
2024-12-05 14:37:47 +00:00
2024-11-30 20:19:08 +01:00
2024-11-30 20:19:08 +01:00
2024-11-04 14:59:46 -05: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
2024-11-04 17:08:21 +01:00
2025-08-20 12:01:35 +01:00
2025-01-16 21:06:21 +00:00
2024-10-27 15:38:54 +01:00
2025-08-20 11:59:45 +01:00
2025-08-20 12:01:35 +01:00
2024-11-04 14:19:40 -05:00
2024-10-29 11:58:51 -04:00
2024-11-04 18:46:40 +01:00
2026-01-12 11:40:55 -08:00
2024-10-01 21:55:18 -04: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
2024-10-26 23:44:15 +02:00
2024-10-26 23:44:15 +02:00
2024-12-16 10:39:28 +01:00
2025-05-06 18:04:27 +01:00
2025-01-14 19:01:53 +01:00
2024-10-21 23:24:17 +02:00
2025-01-22 15:01:23 -05:00
2024-12-19 14:41:21 +01:00
2024-12-19 13:46:52 +01:00
2024-11-04 18:46:40 +01:00
2024-12-19 14:39:55 +01:00
2025-01-15 12:16:08 +01:00
2025-02-13 12:30:15 -05:00
2024-11-14 13:41:02 -05:00
2025-01-15 15:44:55 +01:00
2024-12-31 00:04:20 -03:00
2024-12-31 00:04:20 -03: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
2025-01-03 09:19:53 -05:00
2026-01-12 11:40:55 -08:00
2025-03-11 16:00:54 +00:00
2024-10-08 15:25:47 +00:00