This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
in_cksum stats not handle by FreeBSD TPC/IP stack ?
- From: sebastien Couret <sebastien dot couret at elios-informatique dot fr>
- To: ecos-patches at sources dot redhat dot com
- Date: Fri, 23 Apr 2004 15:19:53 +0200
- Subject: in_cksum stats not handle by FreeBSD TPC/IP stack ?
- Organization: Elios Informatique
- Reply-to: sebastien dot couret at elios-informatique dot fr
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.