Lines Matching refs:dst
188 * header (with len, off, ttl, proto, tos, src, dst).
244 struct sockaddr_in *dst = NULL;
291 dst = dn_tag->dn_dst;
419 dst = (struct sockaddr_in *)&ro->ro_dst;
440 dst->sin_family != AF_INET ||
441 dst->sin_addr.s_addr != pkt_dst.s_addr) {
455 bzero(dst, sizeof(*dst));
456 dst->sin_family = AF_INET;
457 dst->sin_len = sizeof(*dst);
458 dst->sin_addr = pkt_dst;
469 if ((ia = ifatoia(ifa_ifwithdstaddr(sintosa(dst)))) == 0) {
470 if ((ia = ifatoia(ifa_ifwithnet(sintosa(dst)))) == 0) {
479 isbroadcast = in_broadcast(dst->sin_addr, ifp);
584 if (cloneok || dst->sin_addr.s_addr == INADDR_BROADCAST)
605 dst = (struct sockaddr_in *)ro->ro_rt->rt_gateway;
609 isbroadcast = in_broadcast(dst->sin_addr, ifp);
617 * IP destination address is multicast. Make sure "dst"
621 dst = (struct sockaddr_in *)&ro->ro_dst;
722 ip_mloopback(ifp, m, dst, hlen);
922 state.dst = (struct sockaddr *)dst;
954 dst = (struct sockaddr_in *)state.dst;
1081 struct sockaddr_in *old = dst;
1084 args.next_hop = dst;
1088 dst = args.next_hop;
1096 * dst != old -> IPFIREWALL_FORWARD
1097 * off==0, dst==old -> accept
1113 if (off == 0 && dst == old) {/* common case */
1120 * pipe number, m, ifp, ro, dst because these are
1128 args.dst = dst;
1173 /* Here we check dst to make sure it's directly reachable on the
1182 if (off == 0 && old != dst) {
1189 printf("IPFIREWALL_FORWARD: New dst ip: ");
1190 print_ip(dst->sin_addr);
1213 dst->sin_addr.s_addr)
1259 dlil_output(lo_ifp, PF_INET, m, 0, (struct sockaddr *)dst, 0);
1272 bcopy(dst, &ro_fwd->ro_dst, sizeof(*dst));
1289 dst = (struct sockaddr_in *)ro_fwd->ro_rt->rt_gateway;
1294 isbroadcast = in_broadcast(dst->sin_addr, ifp);
1297 dst = (struct sockaddr_in *)&ro_fwd->ro_dst;
1415 (struct sockaddr *)dst);
1431 rte, (struct sockaddr *)dst);
1592 (struct sockaddr *)dst);
2698 struct sockaddr_in *dst;
2713 dst = (struct sockaddr_in *)&ro.ro_dst;
2714 dst->sin_len = sizeof(*dst);
2715 dst->sin_family = AF_INET;
2716 dst->sin_addr = mreq->imr_multiaddr;
2925 ip_mloopback(ifp, m, dst, hlen)
2928 register struct sockaddr_in *dst;
2963 if (dst->sin_family != AF_INET) {
2965 dst->sin_family);
2966 dst->sin_family = AF_INET;
3007 (struct sockaddr *) dst, 0);