Rivoreo Source Code Repositories
src.rivoreo.one
/
net
/
ipfilter
/
55401138b1d52f95eaf25a654b0f3461e8aab1d9
/
.
/
lib
/
getsumd.c
blob: 346c445ff849ada4563815655bd246c368b2d5bb [
file
] [
log
] [
blame
] [
raw
]
#include
"ipf.h"
char
*
getsumd
(
sum
)
u_32_t
sum
;
{
static
char
sumdbuf
[
17
];
if
(
sum
&
NAT_HW_CKSUM
)
sprintf
(
sumdbuf
,
"hw(%#0x)"
,
sum
&
0xffff
);
else
sprintf
(
sumdbuf
,
"%#0x"
,
sum
);
return
sumdbuf
;
}