Searched refs:rt_ifp (Results 1 - 25 of 35) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dif_atm.c138 SDL(gate)->sdl_type = rt->rt_ifp->if_type;
139 SDL(gate)->sdl_index = rt->rt_ifp->if_index;
154 if (rt->rt_ifp->if_ioctl == NULL) panic("atm null ioctl");
166 npcb = npcb_add(NULL, rt->rt_ifp, ATM_PH_VCI(aph),
186 SDL(gate)->sdl_type = rt->rt_ifp->if_type;
187 SDL(gate)->sdl_index = rt->rt_ifp->if_index;
223 ifnet_ioctl(rt->rt_ifp, 0, SIOCATMDIS, &api);
H A Din_arp.c243 SDL(gate)->sdl_type = rt->rt_ifp->if_type;
244 SDL(gate)->sdl_index = rt->rt_ifp->if_index;
251 dlil_send_arp(rt->rt_ifp, ARPOP_REQUEST, SDL(gate), rt_key(rt), (struct sockaddr_dl *)rt_key(rt), NULL);
260 SDL(gate)->sdl_type = rt->rt_ifp->if_type;
261 SDL(gate)->sdl_index = rt->rt_ifp->if_index;
288 dlil_resolve_multi(rt->rt_ifp, rt_key(rt), gate, sizeof(struct sockaddr_dl));
291 else if (in_broadcast(SIN(rt_key(rt))->sin_addr, rt->rt_ifp)) {
294 ifnet_llbroadcast_copy_bytes(rt->rt_ifp, LLADDR(gate_ll),
318 ifnet_lladdr_copy_bytes(rt->rt_ifp, LLADDR(SDL(gate)), SDL(gate)->sdl_alen = 6);
320 rt->rt_ifp
[all...]
H A Dip_flow.c172 if ((rt->rt_flags & RTF_UP) == 0 || (rt->rt_ifp->if_flags & IFF_UP) == 0)
178 if (m->m_pkthdr.len > rt->rt_ifp->if_mtu || ip->ip_ttl <= IPTTLDEC)
204 if ((error = dlil_output(rt->rt_ifp, PF_INET, m, (caddr_t) rt, dst, 0)) != 0) {
207 if ((error = (*rt->rt_ifp->if_output)(rt->rt_ifp, m, dst, rt)) != 0) {
H A Din_gif.c198 sc->gif_ro.ro_rt->rt_ifp == ifp))) {
220 if (sc->gif_ro.ro_rt->rt_ifp == ifp) {
225 ifp->if_mtu = sc->gif_ro.ro_rt->rt_ifp->if_mtu
394 if (!rt || rt->rt_ifp != m->m_pkthdr.rcvif) {
H A Din_rmx.c137 if (in_broadcast(sin->sin_addr, rt->rt_ifp)) {
149 && rt->rt_ifp)
150 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu;
H A Dip_output.c602 ifp = ro->ro_rt->rt_ifp;
1015 ifp = ro->ro_rt->rt_ifp;
1286 ifp = ro_fwd->ro_rt->rt_ifp;
2720 ifp = ro.ro_rt->rt_ifp;
3023 struct ifnet *rt_ifp; local
3036 rt_ifp = (ro->ro_rt != NULL) ? ro->ro_rt->rt_ifp : NULL;
3058 scope = rt_ifp->if_index;
3071 ifa->ifa_ifp->if_unit, rt_ifp->if_name,
3072 rt_ifp
[all...]
H A Dtcp_subr.c630 ro6->ro_rt->rt_ifp :
1667 if (rt != NULL && rt->rt_ifp != NULL)
1669 (rt->rt_ifp->if_hwassist & IFNET_MULTIPAGES));
1688 if (tp->t_state == TCPS_SYN_SENT && rt != NULL && rt->rt_ifp != NULL &&
1689 (rt->rt_ifp->if_eflags & IFEF_NOWINDOWSCALE) != 0)
1725 if (rt != NULL && rt->rt_ifp != NULL)
1727 (rt->rt_ifp->if_hwassist & IFNET_MULTIPAGES));
H A Dip_input.c2183 if (rt->rt_ifp == m->m_pkthdr.rcvif &&
2266 destifp = ipforward_rt->ro_rt->rt_ifp;
2281 destifp = ipforward_rt->ro_rt->rt_ifp;
2291 destifp = ipforward_rt->ro_rt->rt_ifp;
2337 if (ro->ro_rt && ro->ro_rt->rt_ifp) {
2339 ro->ro_rt->rt_ifp->if_mtu;
H A Dtcp_output.c361 if (rt != NULL && (ifp = rt->rt_ifp) != NULL)
1425 tp->t_inpcb->in6p_route.ro_rt->rt_ifp
1449 tp->t_inpcb->in6p_route.ro_rt->rt_ifp
H A Dtcp_input.c3365 maxmtu = rt->rt_ifp->if_mtu;
3367 maxmtu = MIN(rt->rt_rmx.rmx_mtu, rt->rt_ifp->if_mtu);
3379 maxmtu = IN6_LINKMTU(rt->rt_ifp);
3381 maxmtu = MIN(rt->rt_rmx.rmx_mtu, IN6_LINKMTU(rt->rt_ifp));
3453 rt->rt_ifp->if_flags & IFF_LOOPBACK))
3465 ifp = rt->rt_ifp;
3688 if (rt->rt_ifp->if_type == IFT_PPP && slowlink_wsize > 0 &&
3689 rt->rt_ifp->if_baudrate > 9600 && rt->rt_ifp->if_baudrate <= 128000) {
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dip6_forward.c135 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */
151 /* XXX in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard) */
372 in6_addr2scopeid(rt->rt_ifp, &ip6->ip6_src)) {
375 in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard);
385 if_name(m->m_pkthdr.rcvif), if_name(rt->rt_ifp));
399 if (m->m_pkthdr.len > rt->rt_ifp->if_mtu) {
400 in6_ifstat_inc(rt->rt_ifp, ifs6_in_toobig);
409 mtu = rt->rt_ifp->if_mtu;
416 * encapsulated packet as "rt->rt_ifp".
456 if (rt->rt_ifp
[all...]
H A Din6_gif.c180 sc->gif_ro6.ro_rt->rt_ifp == ifp))) {
203 if (sc->gif_ro6.ro_rt->rt_ifp == ifp) {
208 ifp->if_mtu = sc->gif_ro6.ro_rt->rt_ifp->if_mtu
340 if (!rt || rt->rt_ifp != ifp) {
H A Din6_rmx.c185 && rt->rt_ifp)
186 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu;
233 && rt2->rt_ifp == rt->rt_ifp) {
H A Dnd6.c436 if ((ifp = rt->rt_ifp) == NULL) {
503 if (rt->rt_ifp) {
511 m->m_pkthdr.rcvif = rt->rt_ifp;
817 * Note that rt->rt_ifp may not be the same as ifp,
932 * XXX: we can't use rt->rt_ifp to check for the interface, since
1031 if (!ip6_forwarding && (ip6_accept_rtadv || (rt->rt_ifp->if_eflags & IFEF_ACCEPT_RTADVD))) {
1034 rt->rt_ifp);
1042 rt6_flush(&in6, rt->rt_ifp);
1160 nd_ifinfo[rt->rt_ifp->if_index].reachable;
1173 struct ifnet *ifp = rt->rt_ifp;
[all...]
H A Din6_src.c227 ia6 = in6_ifawithscope(rt->rt_ifp, dst);
255 ro->ro_rt->rt_ifp == 0) {
H A Dnd6_nbr.c680 nd_ifinfo[rt->rt_ifp->if_index].reachable;
789 dr = defrouter_lookup(in6, rt->rt_ifp);
796 if (!ip6_forwarding && (ip6_accept_rtadv || (rt->rt_ifp->if_eflags & IFEF_ACCEPT_RTADVD))) {
804 rt6_flush(&ip6->ip6_src, rt->rt_ifp);
H A Dudp6_output.c301 in6p->in6p_route.ro_rt->rt_ifp : NULL);
H A Dip6_input.c571 * We use rt->rt_ifp to determine if the address is ours or not.
572 * If rt_ifp is lo0, the address is ours.
573 * The problem here is, rt->rt_ifp for fe80::%lo0/64 is set to lo0,
692 ip6_forward_rt.ro_rt->rt_ifp->if_type == IFT_LOOP) {
731 if (ip6_forward_rt.ro_rt && ip6_forward_rt.ro_rt->rt_ifp
732 && ip6_forward_rt.ro_rt->rt_ifp->if_type == IFT_FAITH) {
735 deliverifp = ip6_forward_rt.ro_rt->rt_ifp; /* faith */
H A Din6_pcb.c427 ifp = inp->in6p_route.ro_rt->rt_ifp;
623 ia6 = in6_ifawithscope(rt->rt_ifp, dst);
650 ro->ro_rt->rt_ifp == (struct ifnet *)0) {
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Droute.h143 struct ifnet *rt_ifp; /* the answer: interface to use */ member in struct:rtentry
170 struct ifnet *rt_ifp; /* the answer: interface to use */ member in struct:ortentry
H A Droute.c442 if (rt->rt_ifp != NULL && rt->rt_flags & RTF_UP)
1285 ifscope = rt->rt_ifp->if_index;
1348 rt->rt_ifp = rt->rt_ifa->ifa_ifp;
1442 set_primary_ifscope(rt->rt_ifp->if_index);
1627 gwrt != NULL && gwrt->rt_ifp != NULL &&
1628 gwrt->rt_ifp->if_index != ifscope) {
1644 if (rt_inet_default(rt, dst) && rt->rt_ifp != NULL)
1645 set_primary_ifscope(rt->rt_ifp->if_index);
1657 (gwrt->rt_ifp->if_index == get_primary_ifscope() ||
1868 if (rt->rt_ifp !
[all...]
H A Dif_dummy.c216 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; /* for ISO */
H A Drtsock.c531 ifp = rt->rt_ifp;
738 rt->rt_ifp = ifp;
744 set_primary_ifscope(rt->rt_ifp->if_index);
1138 rtm->rtm_index = rt->rt_ifp->if_index;
1154 rtm->rtm_index = rt->rt_ifp->if_index;
H A Dif_loop.c306 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; /* for ISO */
H A Dif_stf.c623 if (!rt || rt->rt_ifp != inifp) {

Completed in 122 milliseconds

12