xref: /titanic_52/usr/src/cmd/ipf/lib/common/getsumd.c (revision 18c2aff776a775d34a4c9893a4c72e0434d68e36)
1 #include "ipf.h"
2 
3 char *getsumd(sum)
4 u_32_t sum;
5 {
6 	static char sumdbuf[17];
7 
8 	if (sum & NAT_HW_CKSUM)
9 		sprintf(sumdbuf, "hw(%#0x)", sum & 0xffff);
10 	else
11 		sprintf(sumdbuf, "%#0x", sum);
12 	return sumdbuf;
13 }
14