Searched refs:ifreq (Results 1 - 25 of 311) sorted by relevance

1234567891011>>

/freebsd-10.1-release/libexec/bootpd/
H A Dgetif.h4 extern struct ifreq *getif(int, struct in_addr *);
H A Dgetif.c19 #include <net/if.h> /* for struct ifreq */
36 static struct ifreq ifreq[10]; /* Holds interface configuration */ variable in typeref:struct:ifreq
37 static struct ifconf ifconf; /* points to ifreq */
42 struct ifreq *
49 struct ifreq *ifrq, *ifrmax;
55 return (struct ifreq *) 0;
67 ioc.ic_len = sizeof(ifreq);
68 ioc.ic_dp = (char *) ifreq;
71 ifconf.ifc_req = ifreq;
[all...]
H A Dgetether.c74 #include <net/if.h> /* for struct ifreq */
82 struct ifreq ifrnit;
130 struct ifreq ibuf[16];
132 register struct ifreq *ifrp, *ifend;
143 ifc.ifc_len < sizeof(struct ifreq)) {
149 ifend = (struct ifreq *) ((char *) ibuf + ifc.ifc_len);
163 ifrp = (struct ifreq *) ((char *) ifrp + n);
341 #include <net/if.h> /* struct ifreq */
350 struct ifreq phys;
/freebsd-10.1-release/sys/sys/
H A Dsockio.h52 #define SIOCSIFADDR _IOW('i', 12, struct ifreq) /* set ifnet address */
53 #define OSIOCGIFADDR _IOWR('i', 13, struct ifreq) /* get ifnet address */
54 #define SIOCGIFADDR _IOWR('i', 33, struct ifreq) /* get ifnet address */
55 #define SIOCSIFDSTADDR _IOW('i', 14, struct ifreq) /* set p-p address */
56 #define OSIOCGIFDSTADDR _IOWR('i', 15, struct ifreq) /* get p-p address */
57 #define SIOCGIFDSTADDR _IOWR('i', 34, struct ifreq) /* get p-p address */
58 #define SIOCSIFFLAGS _IOW('i', 16, struct ifreq) /* set ifnet flags */
59 #define SIOCGIFFLAGS _IOWR('i', 17, struct ifreq) /* get ifnet flags */
60 #define OSIOCGIFBRDADDR _IOWR('i', 18, struct ifreq) /* get broadcast addr */
61 #define SIOCGIFBRDADDR _IOWR('i', 35, struct ifreq) /* ge
[all...]
/freebsd-10.1-release/sys/i386/ibcs2/
H A Dibcs2_socksys.h79 #define IBCS2_SIOCSIFADDR _IOW('I', 11, struct ifreq)
80 #define IBCS2_SIOCGIFADDR _IOWR('I', 12, struct ifreq)
81 #define IBCS2_SIOCSIFDSTADDR _IOW('I', 13, struct ifreq)
82 #define IBCS2_SIOCGIFDSTADDR _IOWR('I', 14, struct ifreq)
83 #define IBCS2_SIOCSIFFLAGS _IOW('I', 15, struct ifreq)
84 #define IBCS2_SIOCGIFFLAGS _IOWR('I', 16, struct ifreq)
86 #define IBCS2_SIOCSIFMTU _IOW('I', 21, struct ifreq)
87 #define IBCS2_SIOCGIFMTU _IOWR('I', 22, struct ifreq)
88 #define IBCS2_SIOCIFDETACH _IOW('I', 26, struct ifreq)
89 #define IBCS2_SIOCGENPSTATS _IOWR('I', 27, struct ifreq)
[all...]
/freebsd-10.1-release/sys/netatalk/
H A Dphase2.h33 #define SIOCPHASE1 _IOW('i', 100, struct ifreq) /* AppleTalk phase 1 */
34 #define SIOCPHASE2 _IOW('i', 101, struct ifreq) /* AppleTalk phase 2 */
/freebsd-10.1-release/sys/net/
H A Dif_gre.h168 #define GRESADDRS _IOW('i', 101, struct ifreq)
169 #define GRESADDRD _IOW('i', 102, struct ifreq)
170 #define GREGADDRS _IOWR('i', 103, struct ifreq)
171 #define GREGADDRD _IOWR('i', 104, struct ifreq)
172 #define GRESPROTO _IOW('i' , 105, struct ifreq)
173 #define GREGPROTO _IOWR('i', 106, struct ifreq)
174 #define GREGKEY _IOWR('i', 107, struct ifreq)
175 #define GRESKEY _IOW('i', 108, struct ifreq)
H A Dif_tap.h58 #define TAPGIFNAME _IOR('t', 93, struct ifreq)
H A Dif_gif.h123 #define GIFGOPTS _IOWR('i', 150, struct ifreq)
124 #define GIFSOPTS _IOW('i', 151, struct ifreq)
/freebsd-10.1-release/usr.sbin/wpa/wpa_supplicant/
H A DPacket32.h61 #define SIOCSDRVSPEC _IOW('i', 123, struct ifreq) /* set driver-specific
63 #define SIOCGDRVSPEC _IOWR('i', 123, struct ifreq) /* get driver-specific
/freebsd-10.1-release/contrib/ntp/include/
H A Dntif.h66 struct ifreq { struct
87 struct ifreq *ifcu_req;
/freebsd-10.1-release/sys/i386/include/
H A Dif_wl_wavelan.h92 #define SIOCGWLCNWID _IOWR('i', 60, struct ifreq) /* get wlan current nwid */
93 #define SIOCSWLCNWID _IOWR('i', 61, struct ifreq) /* set wlan current nwid */
94 #define SIOCGWLPSA _IOWR('i', 62, struct ifreq) /* get wlan PSA (all) */
95 #define SIOCSWLPSA _IOWR('i', 63, struct ifreq) /* set wlan PSA (all) */
96 #define SIOCDWLCACHE _IOW('i', 64, struct ifreq) /* clear SNR cache */
97 #define SIOCSWLTHR _IOW('i', 65, struct ifreq) /* set new quality threshold */
98 #define SIOCGWLEEPROM _IOWR('i', 66, struct ifreq) /* get modem EEPROM */
99 #define SIOCGWLCACHE _IOWR('i', 67, struct ifreq) /* get SNR cache */
100 #define SIOCGWLCITEM _IOWR('i', 68, struct ifreq) /* get cache element count */
/freebsd-10.1-release/tools/tools/mcgrab/
H A Dmcgrab.cc96 struct ifreq ifreq; local
112 bzero((struct ifreq *)&ifreq, sizeof(ifreq));
114 strncpy(ifreq.ifr_name, interface, IFNAMSIZ);
115 if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
121 &((struct sockaddr_in*) &ifreq.ifr_addr)->sin_addr,
133 &((struct sockaddr_in *) &ifreq.ifr_addr)->sin_addr,
/freebsd-10.1-release/contrib/traceroute/
H A Difaddrlist.c76 register struct ifreq *ifrp, *ifend, *ifnext, *mp;
80 struct ifreq ibuf[(32 * 1024) / sizeof(struct ifreq)], ifr;
94 ifc.ifc_len < (int)sizeof(struct ifreq)) {
97 "SIOCGIFCONF: ifreq struct too small (%zu bytes)",
106 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
117 ifnext = (struct ifreq *)((char *)ifrp + n);
/freebsd-10.1-release/sys/dev/sbni/
H A Dif_sbnivar.h146 #define SIOCGHWFLAGS _IOWR('i', 62, struct ifreq) /* get flags */
147 #define SIOCSHWFLAGS _IOWR('i', 61, struct ifreq) /* set flags */
148 #define SIOCGINSTATS _IOWR('i', 60, struct ifreq) /* get internal stats */
149 #define SIOCRINSTATS _IOWR('i', 63, struct ifreq) /* reset internal stats */
/freebsd-10.1-release/sys/netinet/
H A Dip_carp.h135 #define SIOCSVH _IOWR('i', 245, struct ifreq)
136 #define SIOCGVH _IOWR('i', 246, struct ifreq)
139 int carp_ioctl(struct ifreq *, u_long, struct thread *);
155 extern int (*carp_ioctl_p)(struct ifreq *, u_long, struct thread *);
/freebsd-10.1-release/contrib/ntp/lib/isc/unix/
H A Difiter_ioctl.c176 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq)
451 struct ifreq *ifrp;
452 struct ifreq ifreq; local
477 memset(&ifreq, 0, sizeof(ifreq));
478 memcpy(&ifreq, ifrp, sizeof(ifreq));
480 family = ifreq.ifr_addr.sa_family;
491 INSIST(sizeof(ifreq
[all...]
/freebsd-10.1-release/tools/tools/nxge/
H A Dxge_info.h77 struct ifreq ifreqp;
/freebsd-10.1-release/tools/tools/vimage/
H A Dvimage.c95 struct ifreq ifreq; local
220 ifreq.ifr_jid = jid;
221 strncpy(ifreq.ifr_name, argv[1], sizeof(ifreq.ifr_name));
222 if (ioctl(s, SIOCSIFVNET, (caddr_t)&ifreq) < 0)
229 ifreq.ifr_data = ifname;
231 if (strcmp(ifreq.ifr_name, ifname) != 0) {
240 while (ioctl(s, SIOCSIFNAME, (caddr_t)&ifreq) < 0) {
251 printf("%s@%s\n", ifreq
[all...]
/freebsd-10.1-release/tools/tools/mctest/
H A Dmctest.cc104 struct ifreq ifreq; local
124 strncpy(ifreq.ifr_name, interface, IFNAMSIZ);
125 if (ioctl(sock, SIOCGIFADDR, &ifreq) < 0) {
131 &((struct sockaddr_in*) &ifreq.ifr_addr)->sin_addr,
142 &((struct sockaddr_in *) &ifreq.ifr_addr)->sin_addr,
305 struct ifreq ifreq; local
325 strncpy(ifreq.ifr_name, interface, IFNAMSIZ);
326 if (ioctl(sock, SIOCGIFADDR, &ifreq) <
[all...]
/freebsd-10.1-release/sys/dev/smc/
H A Dif_smcvar.h61 struct ifreq *, u_long);
/freebsd-10.1-release/sbin/ifconfig/
H A Difmac.c55 struct ifreq ifr;
83 struct ifreq ifr;
/freebsd-10.1-release/libexec/rbootd/
H A Dbpf.c89 struct ifreq ifr;
218 struct ifreq ibuf[8], *ifrp, *ifend, *mp;
238 ifc.ifc_len < sizeof(struct ifreq)) {
244 ifc.ifc_len < sizeof(struct ifreq)) {
250 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
394 struct ifreq ifr;
/freebsd-10.1-release/usr.sbin/arp/
H A Darp.c789 struct ifreq *ifr, *ifend, *ifp;
792 struct ifreq ifreq; local
794 struct ifreq ifs[MAX_IFS];
810 ((struct ifreq *)((char *)&(i)->ifr_addr \
817 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len);
821 strncpy(ifreq.ifr_name, ifr->ifr_name,
822 sizeof(ifreq.ifr_name));
823 ifreq.ifr_addr = ifr->ifr_addr;
828 if (ioctl(sock, SIOCGIFFLAGS, &ifreq) <
[all...]
/freebsd-10.1-release/contrib/libpcap/
H A Dfad-gifc.c118 * We assume that's "sizeof(ifreq.ifr_name)" plus 255, under the assumption
144 register struct ifreq *ifrp, *ifend, *ifnext;
152 struct ifreq ifrflags, ifrnetmask, ifrbroadaddr, ifrdstaddr;
202 ifrp = (struct ifreq *)buf;
203 ifend = (struct ifreq *)(buf + ifc.ifc_len);
220 ifnext = (struct ifreq *)((char *)ifrp + n);

Completed in 386 milliseconds

1234567891011>>