Lines Matching refs:rtm
551 struct rtmsg rtm;
555 memset(&req.rtm, 0, sizeof(req.rtm));
572 req.rtm.rtm_dst_len = dst_len;
573 req.rtm.rtm_table = tb->n;
574 req.rtm.rtm_protocol = RTPROT_KERNEL;
575 req.rtm.rtm_scope = (type != RTN_LOCAL ? RT_SCOPE_LINK : RT_SCOPE_HOST);
576 req.rtm.rtm_type = type;
583 tb->insert(tb, &req.rtm, &rta, &req.nlh, NULL);
585 tb->delete(tb, &req.rtm, &rta, &req.nlh, NULL);