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