Rivoreo Source Code Repositories
src.rivoreo.one
/
net
/
ipfilter
/
a91434e3b9e40eb7f9974a12c00047a23b2d45e6
/
.
/
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
);
}