Moved error_exit() to the Win32 Contiki Core.
This commit is contained in:
parent
f5cee13b01
commit
50fda17c3e
5 changed files with 55 additions and 17 deletions
|
@ -30,14 +30,13 @@
|
|||
*
|
||||
* Author: Oliver Schmidt <ol.sc@web.de>
|
||||
*
|
||||
* $Id: wpcap-service.c,v 1.2 2006/10/03 00:28:36 oliverschmidt Exp $
|
||||
* $Id: wpcap-service.c,v 1.3 2006/10/03 11:27:51 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <winsock2.h>
|
||||
#include <stdlib.h>
|
||||
#include <process.h>
|
||||
|
||||
#pragma comment(lib, "wsock32")
|
||||
|
||||
|
@ -82,15 +81,6 @@ static int (* pcap_sendpacket)(struct pcap *, unsigned char *, int);
|
|||
|
||||
#define BUF ((struct uip_eth_hdr *)&uip_buf[0])
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
error_exit(char *message)
|
||||
{
|
||||
debug_printf("Error Exit: %s", message);
|
||||
_cexit();
|
||||
console_cputs(message);
|
||||
ExitProcess(EXIT_FAILURE);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
pollhandler(void)
|
||||
|
@ -114,6 +104,7 @@ pollhandler(void)
|
|||
debug_printf("I");
|
||||
uip_len -= sizeof(struct uip_eth_hdr);
|
||||
tcpip_input();
|
||||
|
||||
} else if(BUF->type == HTONS(UIP_ETHTYPE_ARP)) {
|
||||
debug_printf("A");
|
||||
uip_arp_arpin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue