Added Cygwin networking support using WinPcap.
This commit is contained in:
parent
01b9b31952
commit
5bceecfbb0
4 changed files with 42 additions and 14 deletions
|
@ -30,7 +30,7 @@
|
|||
*
|
||||
* Author: Adam Dunkels <adam@sics.se>
|
||||
*
|
||||
* $Id: ethernode-uip.c,v 1.4 2007/03/27 21:47:18 oliverschmidt Exp $
|
||||
* $Id: ethernode-uip.c,v 1.5 2007/04/01 21:05:17 oliverschmidt Exp $
|
||||
*/
|
||||
|
||||
#include "contiki.h"
|
||||
|
@ -39,7 +39,11 @@
|
|||
|
||||
#include "net/uip-fw.h"
|
||||
#include "net/hc.h"
|
||||
#ifdef __CYGWIN__
|
||||
#include "net/wpcap.h"
|
||||
#else
|
||||
#include "net/tapdev.h"
|
||||
#endif
|
||||
|
||||
#include "node-id.h"
|
||||
|
||||
|
@ -76,7 +80,11 @@ PROCESS_THREAD(ethernode_uip_process, ev, data)
|
|||
|
||||
uip_len = hc_inflate(&uip_buf[UIP_LLH_LEN], uip_len);
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
wpcap_send();
|
||||
#else
|
||||
tapdev_send();
|
||||
#endif
|
||||
/* if(uip_fw_forward() == UIP_FW_LOCAL)*/ {
|
||||
/* A frame was avaliable (and is now read into the uip_buf), so
|
||||
we process it. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue