OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ifre
(Results
1 - 3
of
3
) sorted by null
/external/toybox/toys/net/
ifconfig.c
103
struct ifreq
ifre
;
local
104
struct sockaddr_in *si = (void *)&
ifre
.ifr_addr;
118
xstrncpy(
ifre
.ifr_name, name, IFNAMSIZ);
119
if (ioctl(TT.sockfd, SIOCGIFFLAGS, &
ifre
)<0) perror_exit_raw(name);
120
flags =
ifre
.ifr_flags;
127
ioctl(TT.sockfd, SIOCGIFADDR, &
ifre
);
129
if (!ioctl(TT.sockfd, SIOCGIFNETMASK, &
ifre
))
137
xioctl(TT.sockfd, SIOCGIFHWADDR, &
ifre
);
140
for (i=0; i<6; i++) printf(":%02x"+!i,
ifre
.ifr_hwaddr.sa_data[i]);
143
if (
ifre
.ifr_hwaddr.sa_family == types[i].type) break
341
struct
ifre
q *
ifre
;
local
375
struct
ifre
q
ifre
;
local
[
all
...]
/external/toybox/toys/pending/
arp.c
161
struct ifreq
ifre
;
local
163
xstrncpy(
ifre
.ifr_name, toys.optargs[1], IFNAMSIZ);
164
xioctl(TT.sockfd, SIOCGIFHWADDR, &
ifre
);
165
if ((toys.optflags & FLAG_H) && (
ifre
.ifr_hwaddr.sa_family != ARPHRD_ETHER))
167
memcpy(&req.arp_ha, &(
ifre
.ifr_hwaddr), sizeof(req.arp_ha));
route.c
377
struct ifreq *
ifre
= (struct ifreq*)ifre_buf;
local
378
xstrncpy(
ifre
->ifr_name, dev_name, IFNAMSIZ);
379
xioctl(sockfd, SIOGIFINDEX,
ifre
);
380
rt.rtmsg_ifindex =
ifre
->ifr_ifindex;
Completed in 320 milliseconds