Lines Matching defs:lifr
259 struct lifreq lifr;
264 bzero(&lifr, sizeof (lifr));
270 lifr.lifr_ppa = ifsp.ifsp_ppa;
271 lifr.lifr_flags = flags;
272 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
273 if (ioctl(fd, SIOCSLIFNAME, &lifr) == -1) {
304 struct lifreq lifr;
307 bzero(&lifr, sizeof (lifr));
309 lifr.lifr_ppa = ifsp.ifsp_ppa;
310 lifr.lifr_flags = flags;
311 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
316 if (strioctl(fd, SIOCSLIFNAME, (char *)&lifr,
317 sizeof (lifr)) == -1) {
393 struct lifreq lifr;
395 bzero(&lifr, sizeof (lifr));
396 (void) strlcpy(lifr.lifr_name, lifname, sizeof (lifr.lifr_name));
398 if (ioctl(sock, SIOCGLIFFLAGS, (caddr_t)&lifr) < 0)
400 *flags = lifr.lifr_flags;
411 struct lifreq lifr;
414 bzero(&lifr, sizeof (lifr));
415 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
416 if (ioctl(sock, SIOCGLIFFLAGS, (caddr_t)&lifr) != 0)
420 *flags = lifr.lifr_flags;
435 struct lifreq lifr;
452 bzero(&lifr, sizeof (lifr));
453 (void) strlcpy(lifr.lifr_name, ifname, sizeof (lifr.lifr_name));
454 if (ioctl(muxid_fd, SIOCGLIFMUXID, (caddr_t)&lifr) < 0) {
458 arp_muxid = lifr.lifr_arp_muxid;
459 ip_muxid = lifr.lifr_ip_muxid;
482 lifr.lifr_arp_muxid = 0;
484 (caddr_t)&lifr);
497 lifr.lifr_arp_muxid = arp_muxid;
498 lifr.lifr_ip_muxid = ip_muxid;
499 (void) ioctl(muxid_fd, SIOCSLIFMUXID, (caddr_t)&lifr);