Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prefix routines declared in pcap-int.h with pcap_. | Guy Harris | 2023-05-26 | 1 | -1/+1 |
| | | | | | This avoids potential and, in one case (SIMH), actual collisions with names in other libraries or in applications using libpcap. | ||||
* | struct pcap: Update buffer type from "void *" to "u_char *" | Francois-Xavier Le Bail | 2023-05-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Refine some C in pcap-haiku.c. [skip ci] | Denis Ovsienko | 2023-02-11 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | Convert prepare_request() from bool to int and squelch the warnings: ./pcap-haiku.c:39:1: warning: no previous prototype for 'prepare_request' [-Wmissing-prototypes] ./pcap-haiku.c: In function 'pcap_inject_haiku': ./pcap-haiku.c:110:47: warning: unused parameter 'buffer' [-Wunused-parameter] ./pcap-haiku.c:110:59: warning: unused parameter 'size' [-Wunused-parameter] ./pcap-haiku.c: In function 'get_if_flags': ./pcap-haiku.c:273:26: warning: unused parameter 'name' [-Wunused-parameter] ./pcap-haiku.c:273:58: warning: unused parameter 'errbuf' [-Wunused-parameter] Remove pcap-haiku.cpp from the comment in build.sh. | ||||
* | Haiku: convert implementation to C | David Karoly | 2023-02-11 | 1 | -0/+301 |