Sync usage with man page.
[netbsd-mini2440.git] / dist / ipf / lib / getsumd.c
blob1c26d0e702cb0dec40b78f8be9ab828ff8c73251
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2002 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 *
8 * Id: getsumd.c,v 1.2.4.1 2006/06/16 17:21:01 darrenr Exp
9 */
11 #include "ipf.h"
13 char *getsumd(sum)
14 u_32_t sum;
16 static char sumdbuf[17];
18 if (sum & NAT_HW_CKSUM)
19 sprintf(sumdbuf, "hw(%#0x)", sum & 0xffff);
20 else
21 sprintf(sumdbuf, "%#0x", sum);
22 return sumdbuf;