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

Lines Matching refs:NULL

389 	if ((rt_mtx = lck_mtx_alloc_init(rt_mtx_grp, rt_mtx_attr)) == NULL) {
406 if (rte_zone == NULL)
441 if ((rt = ro->ro_rt) != NULL) {
442 if (rt->rt_ifp != NULL && rt->rt_flags & RTF_UP)
445 ro->ro_rt = NULL;
482 struct rtentry *rt, *newrt = NULL;
487 if (rnh == NULL)
494 rt = rt_lookup(FALSE, dst, NULL, rnh, ifscope);
495 if (rt == NULL)
506 err = rtrequest_locked(RTM_RESOLVE, dst, NULL, NULL, 0, &newrt);
584 printf("rtfree - rt is NULL\n");
644 rt->rt_ifa = NULL;
749 if (rt == NULL)
772 if (ifa == NULL)
788 if (ifa == NULL)
806 struct rtentry *rt = NULL;
810 struct ifaddr *ifa = NULL;
811 unsigned int ifscope = (ifp != NULL) ? ifp->if_index : IFSCOPE_NONE;
822 if ((ifa = ifa_ifwithnet_scoped(gateway, ifscope)) == NULL) {
848 ifa = NULL;
855 ifa = NULL;
883 gateway, netmask, flags, NULL, ifscope);
912 if (stat != NULL)
979 struct ifaddr *ifa = NULL;
980 struct rtentry *rt = NULL;
991 if (dst != NULL && dst->sa_family == AF_INET)
993 if (gateway != NULL && gateway->sa_family == AF_INET)
1008 if (ifa == NULL)
1018 if (ifa == NULL)
1020 if (ifa == NULL) {
1024 if (rt != NULL) {
1026 if (ifa != NULL)
1029 rt = NULL;
1032 if (ifa != NULL && ifa->ifa_addr->sa_family != dst->sa_family) {
1036 if (newifa != NULL) {
1049 if ((ifa == NULL ||
1052 0, 0UL, ifscope)) != NULL) {
1053 if (ifa != NULL)
1056 if (ifa != NULL)
1066 ifa != NULL && ifa->ifa_ifp->if_index != ifscope) {
1068 ifa = NULL;
1130 struct ifaddr *ifa = NULL;
1173 if (netmask != NULL)
1228 ifa = NULL;
1252 if (ret_nrt != NULL) {
1297 if (netmask != NULL)
1312 if (ifa == NULL)
1315 if ((rt = rte_alloc()) == NULL)
1563 return (rtrequest_locked(RTM_DELETE, rt_key(rt), NULL,
1564 rt_mask(rt), rt->rt_flags, NULL));
1589 rt->rt_gateway, rt_mask(rt), rt->rt_flags, NULL);
1627 gwrt != NULL && gwrt->rt_ifp != NULL &&
1634 if (rt->rt_gwroute != NULL)
1644 if (rt_inet_default(rt, dst) && rt->rt_ifp != NULL)
1656 gwrt != NULL && gwrt->rt_gateway->sa_family == AF_LINK &&
1669 if (rt->rt_gateway == NULL || glen > ROUNDUP(rt->rt_gateway->sa_len)) {
1674 if (new == NULL) {
1675 if (rt->rt_gwroute != NULL)
1677 rt->rt_gwroute = NULL;
1684 * which case rt_key(rt) is NULL (and so does rt_gateway).
1687 R_Free(rt_key(rt)); /* free old block; NULL is okay */
1700 if ((rt->rt_flags & RTF_GATEWAY) && rt->rt_gwroute != NULL &&
1760 return (NULL);
1769 if (netmask != NULL)
1773 f = w = NULL;
1776 if (rn != NULL && (rn->rn_flags & RNF_ROOT))
1777 rn = NULL;
1789 return (rnh->rnh_lookup(&sin_def, NULL, rnh));
1825 netmask = NULL;
1866 if (rn != NULL) {
1877 rn = NULL;
1881 rn0 = NULL;
1890 rn = NULL;
1900 if (rn == NULL)
1914 if (rn == NULL || (rn0 != NULL &&
1923 if (rn == NULL && (rn = node_lookup_default()) != NULL &&
1925 rn = NULL;
1928 if (rn != NULL && !lookup_only)
1932 if (rn != NULL && (rn->rn_flags & RNF_ROOT))
1933 rn = NULL;
1934 else if (rn != NULL)
1979 if (m == NULL) {
2134 if (rte != NULL) {