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