Lines Matching defs:ra
414 static int ndisc_ra_parse(sd_ndisc *nd, struct nd_router_advert *ra, ssize_t len) {
419 assert_return(ra, -EINVAL);
421 len -= sizeof(*ra);
428 opt = ra + 1;
475 _cleanup_free_ struct nd_router_advert *ra = NULL;
510 ra = malloc(iov.iov_len);
511 if (!ra)
514 iov.iov_base = ra;
560 if (ra->nd_ra_type != ND_ROUTER_ADVERT)
563 if (ra->nd_ra_code != 0)
570 stateful = ra->nd_ra_flags_reserved & (ND_RA_FLAG_MANAGED | ND_RA_FLAG_OTHER);
571 pref = (ra->nd_ra_flags_reserved & ND_RA_FLAG_PREF) >> 3;
582 lifetime = be16toh(ra->nd_ra_router_lifetime);
589 r = ndisc_ra_parse(nd, ra, len);