Skip to content

Merge latest devel changes into main for Solaris fixes - #121

Open
ofalk wants to merge 38 commits into
masterfrom
devel
Open

ofalk wants to merge 38 commits into
masterfrom
devel

Conversation

@ofalk

@ofalk ofalk commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Mainly for #119 fixed in #120

ofalk and others added 30 commits March 15, 2024 16:31
wrong size of fields for icmp4 timestamp message
16bits are enough for Id/Seq.
The `len` parameter of `NLMSG_LENGTH`  was size of Netlink header instead of RtNetlink header.

Also make it more clear that the parameter of the macro is the payload size, which is RtNetlink message in this case.
…ompiler (#104)

* python/dnet.pyx: fix incompatible-function-pointer-types for modern compiler

which is error now, see https://bugs.gentoo.org/933360,
clang 19 (maybe earlier) has the same problem too

* python/dnet.pyx: fix -Wincompatible-pointer-types reported by gcc14

./dnet.c:8451:52: error: passing argument 2 of ‘PyObject_AsReadBuffer’ from incompatible pointer type [-Wincompatible-pointer-types]
 8451 |   __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_pkt, (&__pyx_v_p), (&__pyx_v_n)) == 0);
      |                                                   ~^~~~~~~~~~~
      |                                                    |
      |                                                    char **
/usr/include/python3.12/abstract.h:370:52: note: expected ‘const void **’ but argument is of type ‘char **’
  370 |                                       const void **buffer,
      |                                       ~~~~~~~~~~~~~^~~~~~
./dnet.c:8451:66: error: passing argument 3 of ‘PyObject_AsReadBuffer’ from incompatible pointer type [-Wincompatible-pointer-types]
 8451 |   __pyx_t_1 = (PyObject_AsReadBuffer(__pyx_v_pkt, (&__pyx_v_p), (&__pyx_v_n)) == 0);
      |                                                                 ~^~~~~~~~~~~
      |                                                                  |
      |                                                                  int *
/usr/include/python3.12/abstract.h:371:51: note: expected ‘Py_ssize_t *’ {aka ‘long int *’} but argument is of type ‘int *’
  371 |                                       Py_ssize_t *buffer_len);
      |                                       ~~~~~~~~~~~~^~~~~~~~~~

Signed-off-by: Z. Liu <zhixu.liu@gmail.com>
* m4/acinclude.m4: write `ETH_P_ALL` check as function body, not function definition

- Fixes #109

- `AC_TRY_COMPILE` macro's second argument is a function body, not a
  complete function definition. Placing a complete function defintion
  here results in m4 generating a malformed test program with a function
  definition inside another function defintion, which would break the
  check to make it always evaluate false whenever Clang is used, since
  Clang rejects programs that use GCC-only extensions like function
  definition inside another function definition.

* tree-wide: regenerate autotools files

- Necessary to apply the `ETH_P_ALL` function body change to the
  `configure` script, in order to fix #109

- `aclocal --force` run

- `autoreconf -fi` run

- `autom4te.cache`, which appeared afterward, added to `.gitignore`
* Use latest auto tools to regenerate the build chain
* Move from legacy setup.py to pyproject.toml for the python bindings
ofalk added 7 commits January 26, 2026 13:18
Instead of maintaining our own zero-based indices per interface type (which
can change across table refreshes if interfaces are added or removed), use
the native Windows ifIndex in the interface name (e.g. eth21). This provides
stability, removes the need for the ifcombo struct array mapping, and
significantly simplifies the code in intf-win32.c.
* Fix Ethernet interface detection on Solaris (fixes #119)

- Disable AC_DNET_BSD_BPF on solaris* so eth-dlpi is selected consistently
- Fix Solaris/SunOS detection in CMakeLists.txt and guard eth-bsd.c with HAVE_SYS_SYSCTL_H and NOT SOLARIS
- Fix dev_find_ppa return type in src/eth-dlpi.c (int -> char *)
- Add Solaris 11.4 build job to GitHub Actions workflow

* Avoid Solaris 'sun' predefined macro collision in src/intf.c
@ofalk ofalk self-assigned this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants