Lines Matching refs:nrq
93 struct netsrc_req *nrq, storage;
95 if (mbuf_pkthdr_len(m) < sizeof(*nrq)) {
99 if (mbuf_len(m) >= sizeof(*nrq))
100 nrq = mbuf_data(m);
103 nrq = &storage;
106 if (nrq->nrq_ver != NETSRC_VERSION1) {
110 switch (nrq->nrq_sin.sin_family) {
112 error = netsrc_ipv4(kctl, unit, nrq);
115 error = netsrc_ipv6(kctl, unit, nrq);
129 netsrc_ipv4(kern_ctl_ref kctl, uint32_t unit, struct netsrc_req *nrq)
143 dstsin = &nrq->nrq_sin;
151 rt_tables[AF_INET], nrq->nrq_ifscope);
186 netsrc_ipv6(kern_ctl_ref kctl, uint32_t unit, struct netsrc_req *nrq)
195 dstsin6 = &nrq->nrq_sin6;
204 rt_tables[AF_INET6], nrq->nrq_ifscope);
209 nrq->nrq_ifscope, &error);