diff options
Diffstat (limited to 'IPCode.c')
| -rw-r--r-- | IPCode.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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++)
{
|
