1*0Sstevel@tonic-gate #include "ipf.h" 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate char *getsumd(sum) 4*0Sstevel@tonic-gate u_32_t sum; 5*0Sstevel@tonic-gate { 6*0Sstevel@tonic-gate static char sumdbuf[17]; 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gate if (sum & NAT_HW_CKSUM) 9*0Sstevel@tonic-gate sprintf(sumdbuf, "hw(%#0x)", sum & 0xffff); 10*0Sstevel@tonic-gate else 11*0Sstevel@tonic-gate sprintf(sumdbuf, "%#0x", sum); 12*0Sstevel@tonic-gate return sumdbuf; 13*0Sstevel@tonic-gate } 14