URL
https://opencores.org/ocsvn/plasma/plasma/trunk
Subversion Repositories plasma
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 268 to Rev 269
- ↔ Reverse comparison
Rev 268 → Rev 269
/trunk/tools/etermip.c
136,11 → 136,11
|
/* Open the adapter */ |
if ((adhandle = pcap_open_live(d->name, // name of the device |
65536, // 65536 grants that the whole packet will be captured on all the MACs. |
1, // promiscuous mode (nonzero means promiscuous) |
10, // read timeout |
errbuf // error buffer |
)) == NULL) |
65536, // 65536 grants that the whole packet will be captured on all the MACs. |
1, // promiscuous mode (nonzero means promiscuous) |
10, // read timeout |
errbuf // error buffer |
)) == NULL) |
{ |
printf("\nUnable to open the adapter. %s is not supported by WinPcap\n", d->name); |
/* Free the device list */ |
367,6 → 367,7
unsigned char buf[80]; |
DWORD count; |
unsigned int ticks; |
int downloadSkip = 0; |
(void)argc; |
(void)argv; |
|
373,7 → 374,10
WinPcapInit(); |
#ifndef SIMULATE_PLASMA |
SerialOpen("COM1", 57600); |
SendFile(); |
if(argc != 2 || strcmp(argv[1], "none")) |
SendFile(); |
else |
downloadSkip = 1; |
#else |
IPInit(EthernetSendPacket); |
HtmlInit(1); |
386,6 → 390,8
while(kbhit()) |
{ |
buf[0] = (unsigned char)getch(); |
if(downloadSkip && buf[0] == '`') |
SendFile(); |
WriteFile(serial_handle, buf, 1, &count, NULL); |
} |
|
421,3 → 427,4
} |
} |
} |
|