Rivoreo Source Code Repositories
src.rivoreo.one
/
net
/
ipfilter
/
a94ed8cc3575503f9910e3ad0be28b96839493d9
/
.
/
lib
/
ipferror.c
blob: 93f41cb7ddc3cc19fe32ae3a7f62ea92f37c8767 [
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
);
}