• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/netinet/

Lines Matching refs:NULL

240 	struct ifnet *ifp = NULL;
244 struct sockaddr_in *dst = NULL;
245 struct in_ifaddr *ia = NULL;
250 struct socket *so = NULL;
251 struct secpolicy *sp = NULL;
273 args.next_hop = NULL;
274 args.eh = NULL;
275 args.rule = NULL;
277 args.ipoa = NULL;
281 if ((tag = m_tag_locate(m0, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_DUMMYNET, NULL)) != NULL) {
286 opt = NULL;
290 imo = NULL;
302 if ((tag = m_tag_locate(m0, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_DIVERT, NULL)) != NULL) {
312 if ((tag = m_tag_locate(m0, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_IPFORWARD, NULL)) != NULL) {
347 if (args.rule != NULL) { /* dummynet already saw us */
351 if (ro->ro_rt != NULL)
359 (void)ipsec_setsocket(m, NULL);
369 (void)ipsec_setsocket(m, NULL);
430 if (ro->ro_rt != NULL) {
443 ro->ro_rt = NULL;
450 if (!select_srcif && ro->ro_rt != NULL &&
454 if (ro->ro_rt == NULL) {
481 imo != NULL && imo->imo_multicast_ifp != NULL) {
488 if (ia != NULL)
493 ia != NULL && ia->ia_ifp != ifp;
497 if (ia != NULL)
510 (ro->ro_rt == NULL ||
525 if (ifa == NULL && !(flags & IP_RAWOUTPUT) &&
546 if (ifa != NULL) {
564 if (ro->ro_rt == NULL) {
590 if (ro->ro_rt == NULL) {
625 if (imo != NULL) {
627 if (imo->imo_multicast_ifp != NULL) {
641 if ((imo == NULL) || (imo->imo_multicast_vif == -1)) {
671 if (inm != NULL &&
672 (imo == NULL || imo->imo_multicast_loop)) {
746 imo = NULL;
870 if (so == NULL)
875 if (sp == NULL) {
901 if (sp->req == NULL) {
947 if (state.ro != &iproute || state.ro->ro_rt != NULL) {
957 m0 = NULL;
997 ro->ro_rt = NULL;
1000 if (ro->ro_rt == NULL) {
1105 if ( (off & IP_FW_PORT_DENY_FLAG) || m == NULL) {
1140 struct mbuf *clone = NULL;
1163 if (clone != NULL) {
1223 if (fwd_tag == NULL) {
1233 if (m->m_pkthdr.rcvif == NULL)
1398 if (!(flags & IP_FORWARDING) && ia != NULL) {
1411 if ((rte = ro->ro_rt) != NULL)
1416 if (rte != NULL)
1422 if (m == NULL) {
1426 if ((rte = ro->ro_rt) != NULL)
1432 if (rte != NULL)
1580 if (ia != NULL) {
1588 if ((rte = ro->ro_rt) != NULL)
1593 if (rte != NULL)
1605 ia = NULL;
1611 ro->ro_rt = NULL;
1613 if (sp != NULL) {
1655 if (m == NULL) {
1745 struct ip* ip = NULL;
1753 if (m == NULL) {
2039 * that the parameter is a NULL-terminated string containing
2068 if (sopt->sopt_valsize == 0 || ifname[0] == NULL) {
2074 /* Verify name is NULL terminated */
2075 if (ifname[sopt->sopt_valsize - 1] != NULL) {
2139 caddr_t req = NULL;
2153 priv = (sopt->sopt_p != NULL &&
2309 struct mbuf *m = NULL;
2310 caddr_t req = NULL;
2481 return NULL;
2505 struct ifnet *ifp = NULL;
2509 if (imo == NULL) {
2552 imo->imo_multicast_ifp = NULL;
2561 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0) {
2653 if (imo->imo_multicast_ifp == NULL &&
2659 *imop = NULL;
2676 if (imo == NULL)
2679 imo->imo_multicast_ifp = NULL;
2699 struct ifnet *ifp = NULL;
2719 if (ro.ro_rt != NULL) {
2730 if (ifp == NULL) {
2731 ifp = ip_multicast_if(&mreq->imr_interface, NULL);
2738 if (ifp == NULL || (ifp->if_flags & IFF_MULTICAST) == 0) {
2765 in_addmulti(&mreq->imr_multiaddr, ifp)) == NULL) {
2783 struct ifnet* ifp = NULL;
2796 ifp = NULL;
2798 ifp = ip_multicast_if(&mreq->imr_interface, NULL);
2799 if (ifp == NULL) {
2808 if ((ifp == NULL ||
2850 if (imo != NULL)
2859 if (imo == NULL || imo->imo_multicast_ifp == NULL)
2866 addr.s_addr = (ia == NULL) ? INADDR_ANY
2910 if (imo != NULL) {
2936 if (copym != NULL && (copym->m_flags & M_EXT || copym->m_len < hlen))
2939 if (copym == NULL)
3021 struct ifaddr *ifa = NULL;
3036 rt_ifp = (ro->ro_rt != NULL) ? ro->ro_rt->rt_ifp : NULL;
3045 if (ifscope != IFSCOPE_NONE || ro->ro_rt != NULL) {
3066 if (ip_select_srcif_debug && ifa != NULL) {
3067 if (ro->ro_rt != NULL) {
3092 if (ifa == NULL && ifscope == IFSCOPE_NONE) {
3095 if (ip_select_srcif_debug && ifa != NULL) {
3108 if (ro->ro_rt != NULL &&
3109 (ifa == NULL || (ifa->ifa_ifp != rt_ifp && rt_ifp != lo_ifp) ||
3112 if (ifa != NULL) {
3127 ro->ro_rt = NULL;
3141 !IN_LINKLOCAL(ntohl(ip->ip_src.s_addr)) && ifa != NULL) {
3143 ifa = NULL;
3147 if (ip_select_srcif_debug && ifa == NULL) {
3160 if (ro->ro_rt != NULL && (!IN_LINKLOCAL(ntohl(ip->ip_dst.s_addr)) ||
3193 if (inp->inp_route.ro_rt != NULL) {
3195 inp->inp_route.ro_rt = NULL;