summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ipf/lib/common/getsumd.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ipf/lib/common/getsumd.c')
-rw-r--r--usr/src/cmd/ipf/lib/common/getsumd.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/usr/src/cmd/ipf/lib/common/getsumd.c b/usr/src/cmd/ipf/lib/common/getsumd.c
index 346c445ff8..bcf0945497 100644
--- a/usr/src/cmd/ipf/lib/common/getsumd.c
+++ b/usr/src/cmd/ipf/lib/common/getsumd.c
@@ -1,3 +1,15 @@
+/*
+ * Copyright (C) 1993-2001 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ */
+/*
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Use is subject to license terms.
+ */
+
+#pragma ident "%Z%%M% %I% %E% SMI"
+
#include "ipf.h"
char *getsumd(sum)
@@ -5,9 +17,6 @@ u_32_t sum;
{
static char sumdbuf[17];
- if (sum & NAT_HW_CKSUM)
- sprintf(sumdbuf, "hw(%#0x)", sum & 0xffff);
- else
- sprintf(sumdbuf, "%#0x", sum);
+ sprintf(sumdbuf, "%#0x", sum);
return sumdbuf;
}