Lines Matching refs:lcl
2313 static int default_scope(inet_prefix *lcl) in default_scope() argument
2315 if (lcl->family == AF_INET) { in default_scope()
2316 if (lcl->bytelen >= 1 && *(__u8 *)&lcl->data == 127) in default_scope()
2349 inet_prefix lcl = {}; in ipaddr_modify() local
2449 get_prefix(&lcl, *argv, req.ifa.ifa_family); in ipaddr_modify()
2451 req.ifa.ifa_family = lcl.family; in ipaddr_modify()
2452 addattr_l(&req.n, sizeof(req), IFA_LOCAL, &lcl.data, lcl.bytelen); in ipaddr_modify()
2453 local_len = lcl.bytelen; in ipaddr_modify()
2472 if (cmd == RTM_DELADDR && lcl.family == AF_INET && !(lcl.flags & PREFIXLEN_SPECIFIED)) { in ipaddr_modify()
2479 peer = lcl; in ipaddr_modify()
2480 addattr_l(&req.n, sizeof(req), IFA_ADDRESS, &lcl.data, lcl.bytelen); in ipaddr_modify()
2484 req.ifa.ifa_prefixlen = lcl.bitlen; in ipaddr_modify()
2507 req.ifa.ifa_scope = default_scope(&lcl); in ipaddr_modify()
2532 if ((ifa_flags & IFA_F_MCAUTOJOIN) && !ipaddr_is_multicast(&lcl)) { in ipaddr_modify()