Searched defs:ifreq (Results 1 - 12 of 12) sorted by relevance

/freebsd-head/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-head/libexec/bootpd/
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...]
/freebsd-head/contrib/ntp/include/
H A Dntif.h66 struct ifreq { struct
87 struct ifreq *ifcu_req;
/freebsd-head/contrib/netbsd-tests/net/if/
H A Dt_compat.c53 struct oifreq ifreq; local
57 memset(&ifreq,'\0',sizeof ifreq);
65 sprintf(ifreq.ifr_name, "shmif%d", ifnum);
66 netcfg_rump_if(ifreq.ifr_name, "1.7.64.10", "255.255.0.0");
72 RL(rump_sys_ioctl(fd, OOSIOCGIFBRDADDR, &ifreq));
75 sin = (struct sockaddr_in *)&ifreq.ifr_broadaddr;
/freebsd-head/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-head/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-head/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-head/usr.sbin/arp/
H A Darp.c811 struct ifreq *ifr, *ifend, *ifp;
814 struct ifreq ifreq; local
816 struct ifreq ifs[MAX_IFS];
832 ((struct ifreq *)((char *)&(i)->ifr_addr \
839 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len);
843 strncpy(ifreq.ifr_name, ifr->ifr_name,
844 sizeof(ifreq.ifr_name));
845 ifreq.ifr_addr = ifr->ifr_addr;
850 if (ioctl(sock, SIOCGIFFLAGS, &ifreq) <
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Dgetifaddrs.c882 struct ifreq *ifr;
923 struct ifreq ifreq; local
927 ifr = (struct ifreq *)p;
940 memset (&ifreq, 0, sizeof(ifreq));
941 memcpy (ifreq.ifr_name, ifr->ifr_name, sizeof(ifr->ifr_name));
943 if (ioctl(fd, siocgifflags, &ifreq) < 0) {
960 (*end)->ifa_flags = ifreq.ifr_flags;
971 if(ifreq
1069 struct lifreq ifreq; local
[all...]
/freebsd-head/sys/net/
H A Dif_lagg.h179 struct ifreq ifreq; member in union:lagg_ifreq::__anon493
184 } ifreq; member in struct:lagg_ifreq
H A Dif.h394 struct ifreq { struct
439 (sizeof(struct ifreq) - sizeof(struct sockaddr) + \
440 (ifr).ifr_addr.sa_len) : sizeof(struct ifreq))
498 struct ifreq *ifcu_req;
/freebsd-head/tools/tools/netmap/
H A Dpkt-gen.c520 struct ifreq ifreq; local
536 memset(&ifreq, 0, sizeof(ifreq));
537 strncpy(ifreq.ifr_name, ifname, IFNAMSIZ);
539 ret = ioctl(s, SIOCGIFMTU, &ifreq);
544 return ifreq.ifr_mtu;
2716 struct ifreq ifr;
2742 /* preparation of the struct ifr, of type "struct ifreq" */

Completed in 301 milliseconds