Difference for arch/linux/ipx_kali.c from version 1.2 to 1.3


version 1.2 version 1.3
Line 3
 
Line 3
 #include <string.h>  #include <string.h>
 #include <netinet/in.h> /* for htons & co. */  #include <netinet/in.h> /* for htons & co. */
 #include "ipx_drv.h"  #include "ipx_drv.h"
   #include "netstats.h"
 #include "ukali.h"  #include "ukali.h"
   
 static ipx_socket_t mysock;  static ipx_socket_t mysock;
Line 55
 
Line 56
  open_sockets++;   open_sockets++;
 // last_socket = port;  // last_socket = port;
  mysock.socket = port;   mysock.socket = port;
    net_stats_init(-1); // kali overhead = ??
  return 0;   return 0;
 }  }
   
Line 80
 
Line 82
 // memcpy(&toaddr.sa_socket, IPXHeader->Destination.Socket, sizeof(toaddr.sa_socket));  // memcpy(&toaddr.sa_socket, IPXHeader->Destination.Socket, sizeof(toaddr.sa_socket));
  toaddr.sa_socket=htons(mysock.socket);   toaddr.sa_socket=htons(mysock.socket);
   
    net_stats_sent(dataLen);
  if ((i = KaliSendPacket(mysock.fd, (char *)data, dataLen, &toaddr)) < 0)   if ((i = KaliSendPacket(mysock.fd, (char *)data, dataLen, &toaddr)) < 0)
  return -1;   return -1;
   
Line 100
 
Line 103
  memset(rd->src_network, 0, 4);   memset(rd->src_network, 0, 4);
  rd->pkt_type = 0;   rd->pkt_type = 0;
   
    net_stats_recv(size);
  return size;   return size;
 }  }
   

Legend:
line(s) removed in v.1.2 
line(s) changed
 line(s) added in v.1.3