aboutsummaryrefslogtreecommitdiff
path: root/libexec/rbootd
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2013-11-05 10:29:47 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2013-11-05 10:29:47 +0000
commit5fb009bda7883377d7d44fa67201f6942ecfc602 (patch)
tree9dbd244e7b8d3ef56e907676afc9f623fc91e578 /libexec/rbootd
parentba36d317f6c47585e26503ed831cfc68ffb44ee0 (diff)
Notes
Diffstat (limited to 'libexec/rbootd')
-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 ddd9cfbc2ae6..2f6b64b68fc3 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);