summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-11-05 10:29:47 +0000
committerglebius <glebius@FreeBSD.org>2013-11-05 10:29:47 +0000
commit3b6f8b896cf04f26955153df6e46b94aebfaf707 (patch)
tree9dbd244e7b8d3ef56e907676afc9f623fc91e578 /libexec
parent1440b0c5298e57d592534c87f2ccff9841c4db42 (diff)
downloadFreeBSD-src-3b6f8b896cf04f26955153df6e46b94aebfaf707.zip
FreeBSD-src-3b6f8b896cf04f26955153df6e46b94aebfaf707.tar.gz
Drop support for historic ioctls and also undefine them, so that code
that checks their presence via ifdef, won't use them. Bump __FreeBSD_version as safety measure.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rbootd/bpf.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libexec/rbootd/bpf.c b/libexec/rbootd/bpf.c
index ddd9cfb..2f6b64b 100644
--- a/libexec/rbootd/bpf.c
+++ b/libexec/rbootd/bpf.c
@@ -237,19 +237,11 @@ BpfGetIntfName(char **errmsg)
ifc.ifc_len = sizeof ibuf;
ifc.ifc_buf = (caddr_t)ibuf;
-#ifdef OSIOCGIFCONF
- if (ioctl(fd, OSIOCGIFCONF, (char *)&ifc) < 0 ||
- ifc.ifc_len < sizeof(struct ifreq)) {
- (void) strcpy(errbuf, "bpf: ioctl(OSIOCGIFCONF): %m");
- return(NULL);
- }
-#else
if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
ifc.ifc_len < sizeof(struct ifreq)) {
(void) strcpy(errbuf, "bpf: ioctl(SIOCGIFCONF): %m");
return(NULL);
}
-#endif
ifrp = ibuf;
ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
OpenPOWER on IntegriCloud