opnsense-src/sys/dev/virtio/network
Michael Tuexen 410be6ca70 vtnet, ptnet: include opt_*.h files early
Include opt_inet.h and opt_inet6.h early in the files including
virtio_net.h, since they use INET and/or INET6.
While there, remove redundant inclusion of sys/types.h, since it is
included already by sys/param.h.

There was a discussion to include opt_inet.h and opt_inet6.h also
in virtio_net.h. glebius suggested to add a mechanism for files
to check, if required opt_*.h files were included. virtio_net.h
will be the first consumer of this mechanism.

Reviewed by:		glebius, Peter Lei
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D52046

(cherry picked from commit 3077532b1bb2911d3012ee90bae9d9499c960569)
2025-09-08 10:25:23 +02:00
..
if_vtnet.c vtnet, ptnet: include opt_*.h files early 2025-09-08 10:25:23 +02:00
if_vtnetvar.h vtnet: Account for the padding when selecting allocation size 2024-02-18 21:47:16 -07:00
virtio_net.h virtio(4): Fix a typo in a source code comment 2024-01-25 07:43:30 +01:00