Lines Matching refs:lifr
438 struct lifreq lifr;
449 bzero(&lifr, sizeof (lifr));
450 (void) strlcpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name));
455 lifr.lifr_ifinfo.lir_maxhops = pi->pi_CurHopLimit;
484 lifr.lifr_ifinfo.lir_reachtime = pi->pi_ReachableTime;
490 lifr.lifr_ifinfo.lir_reachretrans = pi->pi_RetransTimer;
495 if (ioctl(pi->pi_sock, SIOCSLIFLNKINFO, (char *)&lifr) < 0) {
1154 struct lifreq lifr;
1192 bzero(&lifr, sizeof (lifr));
1193 (void) strlcpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name));
1194 lifr.lifr_ifinfo.lir_maxmtu = pi->pi_LinkMTU;
1195 if (ioctl(pi->pi_sock, SIOCSLIFLNKINFO, (char *)&lifr) < 0) {
1210 struct lifreq lifr;
1218 if (phyint_get_lla(pi, &lifr) != 0)
1227 if (max_content_len < lifr.lifr_nd.lnr_hdw_len ||
1229 max_content_len - 7 > lifr.lifr_nd.lnr_hdw_len)) {
1236 max_content_len, lifr.lifr_nd.lnr_hdw_len);
1240 bcopy(lo->nd_opt_lla_hdw_addr, lifr.lifr_nd.lnr_hdw_addr,
1241 lifr.lifr_nd.lnr_hdw_len);
1243 sin6 = (struct sockaddr_in6 *)&lifr.lifr_nd.lnr_addr;
1251 lifr.lifr_nd.lnr_state_create = ND_STALE;
1252 lifr.lifr_nd.lnr_state_same_lla = ND_UNCHANGED;
1253 lifr.lifr_nd.lnr_state_diff_lla = ND_STALE;
1254 lifr.lifr_nd.lnr_flags = isrouter;
1255 (void) strlcpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name));
1256 if (ioctl(pi->pi_sock, SIOCLIFSETND, (char *)&lifr) < 0) {
1534 struct lifreq lifr;
1546 sin6 = (struct sockaddr_in6 *)&lifr.lifr_nd.lnr_addr;
1551 (void) strlcpy(lifr.lifr_name, pi->pi_name, sizeof (lifr.lifr_name));
1553 if (ioctl(pi->pi_sock, SIOCLIFGETND, (char *)&lifr) < 0) {
1580 lifr.lifr_nd.lnr_state_create = ND_STALE;
1581 lifr.lifr_nd.lnr_state_same_lla = ND_UNCHANGED;
1582 lifr.lifr_nd.lnr_flags = isrouter;
1583 if ((ioctl(pi->pi_sock, SIOCLIFSETND, (char *)&lifr)) < 0) {