Lines Matching defs:plen
161 const struct in6_addr addr6, int plen, uint32_t scopeid)
174 int plen;
177 /* plen = 0 means default route and it's out of scope */
181 rt_get_inet6_prefix_plen(rt, &new_addr6, &plen, &scopeid);
182 if (plen > 0) {
191 lsp_rule = fill_rule6(buffer, (uint8_t *)&new_addr6, plen, nhidx);
200 const struct in6_addr *addr6, int plen)
206 /* So we get sin6, plen and nhidx */
219 plen, nhidx, (rc->rc_cmd == RTM_ADD) ? 1 : 0);
222 abuf, plen, nhidx, ret);
231 ret = rte_lpm6_delete(dd->lpm6, (const uint8_t *)addr6, plen, lsp_rule);
233 "DEL", abuf, plen, ret);
251 int plen;
253 rt_get_inet6_prefix_plen(rc->rc_rt, &addr6, &plen, &scopeid);
256 ret = handle_ll_change(dd, rc, addr6, plen, scopeid);
257 else if (plen == 0)
260 ret = handle_gu_change(dd, rc, &addr6, plen);
302 int plen;
305 rt_get_inet6_prefix_plen(rt, &addr6, &plen, &scopeid);
321 FIB_PRINTF(LOG_DEBUG, dd->fd, "Operating on %s/%d", abuf, plen);
323 if (plen == 0) {
338 ret = rte_lpm6_add(dd->lpm6, (const uint8_t *)&addr6, plen, nhidx, 1);
340 dd->lpm6, abuf, plen, nhidx, ret);