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