Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 430 → 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
/shark/trunk/config/libdep.mk
34,6 → 34,19
 
endif
 
# newpci
# ----------------------------------------------------------------
ifeq ($(findstring __NEWPCI__,$(USELIB)) , __NEWPCI__)
INCL += -I$(BASE)/drivers/newpci/include
ifeq ($(LIB_PATH)/libnewpci.a,$(wildcard $(LIB_PATH)/libnewpci.a))
LINK_LIB += -lnewpci
LIB_DEP += $(LIB_PATH)/libnewpci.a
endif
 
else
 
# HPCI
ifeq ($(LIB_PATH)/libhpci.a,$(wildcard $(LIB_PATH)/libhpci.a))
LINK_LIB += -lhpci
40,6 → 53,20
LIB_DEP += $(LIB_PATH)/libhpci.a
endif
 
# hnet
ifeq ($(LIB_PATH)/libhnet.a,$(wildcard $(LIB_PATH)/libhnet.a))
LINK_LIB += -lhnet
LIB_DEP += $(LIB_PATH)/libhnet.a
endif
 
endif
 
# tracer
ifeq ($(LIB_PATH)/libtracer.a,$(wildcard $(LIB_PATH)/libtracer.a))
LINK_LIB += -ltracer
LIB_DEP += $(LIB_PATH)/libtracer.a
endif
# hgd
ifeq ($(LIB_PATH)/libhgd.a,$(wildcard $(LIB_PATH)/libhgd.a))
LINK_LIB += -lhgd
145,12 → 172,6
LIB_DEP += $(LIB_PATH)/libc.a
endif
 
# hnet
ifeq ($(LIB_PATH)/libhnet.a,$(wildcard $(LIB_PATH)/libhnet.a))
LINK_LIB += -lhnet
LIB_DEP += $(LIB_PATH)/libhnet.a
endif
 
# comp
ifeq ($(LIB_PATH)/libcomp.a,$(wildcard $(LIB_PATH)/libcomp.a))
LINK_LIB += -lcomp
169,12 → 190,6
LIB_DEP += $(LIB_PATH)/libmp3.a
endif
 
# tracer
ifeq ($(LIB_PATH)/libtracer.a,$(wildcard $(LIB_PATH)/libtracer.a))
LINK_LIB += -ltracer
LIB_DEP += $(LIB_PATH)/libtracer.a
endif
 
# 6025e
# ----------------------------------------------------------------
ifeq ($(findstring __6025E__,$(USELIB)) , __6025E__)