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