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