This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

in_cksum stats not handle by FreeBSD TPC/IP stack ?


Hi guys,
I came across a link problem while using the Network statistics option 
(CYGDBG_NET_TIMING_STATS) with FreeBSD stack.
In fact "struct net_stats stats_in_cksum" is never instantiated by the 
FreeBSD stacks as shown :

egrep -r stats_in_cksum /opt/ecos/packages/

/opt/ecos/packages/net/bsd_tcpip/current/src/ecos/support.c:
extern struct net_stats stats_in_cksum;
/opt/ecos/packages/net/bsd_tcpip/current/src/ecos/support.c:    
show_net_stats(&stats_in_cksum,      "Checksum");

/opt/ecos/packages/net/tcpip/current/src/ecos/support.c:
extern struct net_stats stats_in_cksum;
/opt/ecos/packages/net/tcpip/current/src/ecos/support.c:    
show_net_stats(&stats_in_cksum,    "Checksum");
/opt/ecos/packages/net/tcpip/current/src/sys/netinet/in_cksum.c:
struct net_stats stats_in_cksum;
/opt/ecos/packages/net/tcpip/current/src/sys/netinet/in_cksum.c:        
FINISH_STATS(stats_in_cksum);

In fact , stats_in_cksum is only instantiated and managed by the OpenBSD 
stack in file net/tcpip/current/src/sys/netinet/in_cksum.c
but nothing is done in his "FreeBSD twin" : 
net/tcpip/current/src/sys/netinet/in_cksum.c 

My question is : Should we try to had such a support in 
net/tcpip/current/src/sys/netinet/in_cksum.c ? or should in_cksum support be 
removed from the FreeBSD stack ?

Thanks for your lights and a good week-end to all.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]