aboutsummaryrefslogtreecommitdiff
path: root/CHANGES
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2023-05-16 15:21:11 +0200
committerfxlb <devel.fx.lebail@orange.fr>2023-05-18 09:51:11 +0000
commitf8e510aaefcb0c229ce72116c3b6902bf2e3da63 (patch)
tree4cd980faa1da2fabdcce38ec80a9ec5f8156232b /CHANGES
parentc7b90298984c46d820d3cee79a96d24870b5f200 (diff)
struct pcap: Update buffer type from "void *" to "u_char *"
This change should avoid these cppcheck warnings: pcap-hurd.c:77:18: warning: 'p->buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] pkt = p->buffer + offsetof(struct net_rcv_msg, packet) ^ pcap-hurd.c:78:8: warning: 'p->buffer+offsetof(struct net_rcv_msg,packet)' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] + sizeof(struct packet_header) - ETH_HLEN; ^ pcap-hurd.c:79:25: warning: 'p->buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] memmove(pkt, p->buffer + offsetof(struct net_rcv_msg, header), ^ Remove some '(u_char *)' casts accordingly.
Diffstat (limited to 'CHANGES')
-rw-r--r--CHANGES1
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 86db3d59..08763f4f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -7,6 +7,7 @@ DayOfTheWeek, Month DD, YYYY / The Tcpdump Group
Clean up DECnet address handling.
Finalize moving of bpf_filter.c. (GH #1166)
Address a few compiler warnings on Haiku.
+ struct pcap: Update buffer type from "void *" to "u_char *".
Link-layer types:
Add LINKTYPE_ETW/DLT_ETW.
Add LINKTYPE_NETANALYZER_NG/DLT_NETANALYZER_NG (pull request