opnsense-src/stand/libsa
Toomas Soome 733da235aa libsa: errors with pointer conversion
loader ip implementation is using pointer to structure ip to receive
the packet and is using this pointer to cast on other data types
(namely structure arphdr). Problem does arise when those data structures
are declared with different alignment rules and when/if the compiler
does check those rules. To work around and silence warnings, use
void * generic pointer instead.

Error seen with gcc 14 (-Werror=address-of-packed-member).

Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D51662
2025-08-01 01:04:32 +03:00
..
amd64 stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
geli loader: Make pkcs5v2 unconditionally available 2024-09-22 00:35:47 -07:00
i386 Remove $FreeBSD$: one-line .S pattern 2023-08-16 11:54:57 -06:00
powerpc stand: Use modern function definitions 2024-01-28 13:04:31 -07:00
x86 libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
zfs libsa/zfs: prefer a vdev with newer txg to a stale one 2025-07-16 11:15:54 -07:00
__main.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
abort.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
arp.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
assert.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
bcd.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
bootp.c Add DEBUG_PRINTF to stand.h 2025-07-17 16:36:17 -07:00
bootp.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
bootparam.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
bootparam.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
bzipfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
cd9660.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
cd9660read.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
close.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
closeall.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
crc32_libkern.c Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
dev.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
dosfs.c loader: dosfs should be able to work with different sector sizes 2025-03-03 23:54:23 +02:00
dosfs.h loader: dosfs should be able to work with different sector sizes 2025-03-03 23:54:23 +02:00
environment.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
ether.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ext2fs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
features.c loader: provide a features table for binary compatibility advertisement 2023-12-08 15:43:19 -06:00
fstat.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
getopt.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
gets.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
globals.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpt.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpt.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
gzipfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
hexdump.c replace raw isprint() w/ isprint() func 2025-07-23 00:33:06 -06:00
in_cksum.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
inet_ntoa.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
ioctl.c loader: allow fs modules to use ioctl() 2025-03-03 23:52:55 +02:00
iodesc.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
ip.c libsa: errors with pointer conversion 2025-08-01 01:04:32 +03:00
libsa.3 manuals: Misc syntax fixes 2024-10-28 12:26:03 -03:00
lseek.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
Makefile machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mount.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
net.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
net.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
netif.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
netif.h Remove $FreeBSD$: one-line .c comment pattern 2023-08-16 11:54:29 -06:00
nfs.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
nfsv2.h stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
nullfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
nvstore.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
nvstore.h stand: Separate base and cli parts of nvstore 2023-01-13 14:22:38 -07:00
open.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
pager.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
panic.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
pkgfs.c Add DEBUG_PRINTF to stand.h 2025-07-17 16:36:17 -07:00
preload.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
printf.c machine/stdarg.h -> sys/stdarg.h 2025-06-11 17:39:02 +01:00
random.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rarp.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
read.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
readdir.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
rpc.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
rpc.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
rpcv2.h stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
saioctl.h stand: Remove ancient SCCS tags. 2023-11-26 22:23:29 -07:00
sbrk.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
smbios.c loader: Add the CPU identification string to the data which is visible 2025-04-10 21:01:55 -07:00
smbios.h libsa: smbios_detect(): Return the entry point address 2025-03-11 14:54:10 +01:00
splitfs.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
stand.h libsa: isprint() 2025-07-23 00:32:40 -06:00
stat.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
strcasecmp.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
strdup.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
strerror.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
tftp.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
tftp.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
time.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
tslog.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
twiddle.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
udp.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ufs.c Standardize the definition of a UFS dinode. 2025-01-27 17:39:45 -08:00
ufsread.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
uuid_from_string.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
uuid_to_string.c Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
write.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
xlocale_private.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
zalloc.c stand: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
zalloc_defs.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
zalloc_malloc.c libsa: Remove redundant sys/cdefs.h 2024-02-22 09:31:57 -07:00
zalloc_mem.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00
zalloc_protos.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00