From 1f40ff4a07793ecfa679a1384053451c4f3f536f Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Tue, 22 Jul 2025 20:56:59 +0100 Subject: New upstream version 6.0.24.77+repack --- IPCode.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'IPCode.c') diff --git a/IPCode.c b/IPCode.c index f340d4b..4d9abca 100644 --- a/IPCode.c +++ b/IPCode.c @@ -100,7 +100,10 @@ TODo ?Multiple Adapters #ifdef WIN32 int pcap_sendpacket(pcap_t *p, u_char *buf, int size); #else - PCAP_API int pcap_sendpacket(pcap_t *, const u_char *, int); +#ifndef PCAP_API +#define PCAP_API extern +#endif +PCAP_API int pcap_sendpacket(pcap_t *, const u_char *, int); #endif #ifndef LINBPQ @@ -387,7 +390,7 @@ char * FormatIP(uint32_t Addr) return FormatIPWork; } -int CompareRoutes (const VOID * a, const VOID * b) +int CompareIPRoutes (const VOID * a, const VOID * b) { PROUTEENTRY x; PROUTEENTRY y; @@ -4972,7 +4975,7 @@ VOID SHOWIPROUTE(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, str Bufferptr = Cmdprintf(Session, Bufferptr, "%d Entries\r", NumberofRoutes); if (NumberofRoutes) - qsort(RouteRecords, NumberofRoutes, sizeof(void *), CompareRoutes); + qsort(RouteRecords, NumberofRoutes, sizeof(void *), CompareIPRoutes); for (i=0; i < NumberofRoutes; i++) { -- cgit v1.2.3