Rivoreo Source Code Repositories
src.rivoreo.one
/
net
/
ipfilter
/
8bd00f9f0bce7890d5f0471997faf9b6d003e10d
/
.
/
lib
/
ipferror.c
blob: 941c214b163da2f7aee6a226de0fb86e27962dac [
file
] [
log
] [
blame
] [
raw
]
#include
"ipf.h"
#include
<sys/ioctl.h>
void
ipferror
(
fd
,
msg
)
int
fd
;
char
*
msg
;
{
int
err
,
save
;
save
=
errno
;
err
=
0
;
if
(
fd
>=
0
)
(
void
)
ioctl
(
fd
,
SIOCIPFINTERROR
,
&
err
);
fprintf
(
stderr
,
"%d:"
,
err
);
perror
(
msg
);
}