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