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