version 1.2 | | version 1.3 |
---|
| | |
| | |
#include "ipx_drv.h" | | #include "ipx_drv.h" |
#include "ipx_bsd.h" | | #include "ipx_bsd.h" |
| | #include "netstats.h" |
| | |
#ifndef DOSEMU | | #ifndef DOSEMU |
#include "mono.h" | | #include "mono.h" |
| | |
| | |
ipx_bsd_GetMyAddress(); | | ipx_bsd_GetMyAddress(); |
| | |
| | net_stats_init(30); // IPX header overhead = 30 bytes. |
return 0; | | return 0; |
} | | } |
| | |
| | |
ipxs.sipx_port=htons(mysock.socket); | | ipxs.sipx_port=htons(mysock.socket); |
ipxs.sipx_type = IPXHeader->PacketType; | | ipxs.sipx_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; |
} | | } |
| | |