| version 1.4 | | version 1.5 |
|---|
| | |
| //#include <errno.h> | | //#include <errno.h> |
| | | |
| #include "ipx_drv.h" | | #include "ipx_drv.h" |
| | | #include "netstats.h" |
| | | |
| #include "mono.h" | | #include "mono.h" |
| | | |
| | |
| | | |
| ipx_win_GetMyAddress(); | | ipx_win_GetMyAddress(); |
| | | |
| | | net_stats_init(30); // IPX header overhead = 30 bytes. |
| | | |
| return 0; | | return 0; |
| } | | } |
| | | |
| | |
| ipxs.sa_socket=htons(mysock.socket); | | ipxs.sa_socket=htons(mysock.socket); |
| // ipxs.sa_type = IPXHeader->PacketType; | | // ipxs.sa_type = IPXHeader->PacketType; |
| /* ipxs.sipx_port=htons(0x452); */ | | /* ipxs.sipx_port=htons(0x452); */ |
| | | net_stats_sent(dataLen); |
| return sendto(mysock.fd, data, dataLen, 0, | | return sendto(mysock.fd, data, dataLen, 0, |
| (struct sockaddr *) &ipxs, sizeof(ipxs)); | | (struct sockaddr *) &ipxs, sizeof(ipxs)); |
| } | | } |
| | |
| rd->dst_socket = mysock.socket; | | rd->dst_socket = mysock.socket; |
| // rd->pkt_type = ipxs.sipx_type; | | // rd->pkt_type = ipxs.sipx_type; |
| | | |
| | | net_stats_recv(size); |
| return size; | | return size; |
| } | | } |
| | | |