Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 399 → Rev 431

/shark/trunk/tracer/newtrace/udp.c
74,8 → 74,10
//Init UDP, if flag = 1 init the network driver
int tracer_init_udp(int flag, char *l_ip, char *t_ip) {
 
#ifndef __NO_NET__
 
SYS_FLAGS f;
 
struct net_model m = net_base;
 
f = ll_fsave();
111,6 → 113,8
 
ll_frestore(f);
 
#endif
 
return 0;
 
}
117,6 → 121,8
 
int send_udp_event(void *p, int size) {
 
#ifndef __NO_NET__
 
static BYTE *current = pkt;
static int events_number = 0;
static int packet_number = 0;
176,6 → 182,8
 
}
 
#endif
 
return -1;
 
}
182,6 → 190,8
 
void send_remaining_udp_buffer() {
 
#ifndef __NO_NET__
 
int i;
 
if (TracerUDPInit == 1 && total_pkt_size != 0) {
192,6 → 202,8
for (i=0;i<DELAY_LOOP;i++);
}
 
#endif
 
}
 
//Sender Task