diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2024-09-05 19:46:35 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2024-09-05 19:46:35 +0000 |
commit | 025be3f592b920ff0a3e602e5aa8b60a34e5e617 (patch) | |
tree | 4f33277584e4a38c8bad5c2788584a00cf830ea4 /rpcap-protocol.h | |
parent | 6b96668d5b49eea57b7551349eca70928cc199ce (diff) |
Diffstat (limited to 'rpcap-protocol.h')
-rw-r--r-- | rpcap-protocol.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rpcap-protocol.h b/rpcap-protocol.h index a93b0a8b4328..773a1e48727e 100644 --- a/rpcap-protocol.h +++ b/rpcap-protocol.h @@ -137,6 +137,8 @@ typedef unsigned char uint8; /* 8-bit unsigned integer */ typedef unsigned short uint16; /* 16-bit unsigned integer */ typedef unsigned int uint32; /* 32-bit unsigned integer */ typedef int int32; /* 32-bit signed integer */ +#else +#include <os/support/SupportDefs.h> #endif /* Common header for all the RPCAP messages */ @@ -241,7 +243,7 @@ struct rpcap_sockaddr /* * Format of an IPv4 address as sent over the wire. */ -#define RPCAP_AF_INET 2 /* Value on all OSes */ +#define RPCAP_AF_INET 2 /* Value on all OSes except for Haiku */ struct rpcap_sockaddr_in { uint16 family; /* Address family */ @@ -444,6 +446,6 @@ struct rpcap_sampling extern void rpcap_createhdr(struct rpcap_header *header, uint8 ver, uint8 type, uint16 value, uint32 length); extern const char *rpcap_msg_type_string(uint8 type); -extern int rpcap_senderror(SOCKET sock, SSL *ssl, uint8 ver, uint16 errcode, const char *error, char *errbuf); +extern int rpcap_senderror(PCAP_SOCKET sock, SSL *ssl, uint8 ver, uint16 errcode, const char *error, char *errbuf); #endif |