Lines Matching refs:in_addr
30 BUILD_ASSERT(sizeof(struct in_addr) == NET_IPV4_ADDR_SIZE);
36 const struct in_addr *src, in net_ipv4_create_full()
37 const struct in_addr *dst, in net_ipv4_create_full()
90 const struct in_addr *src, in net_ipv4_create()
91 const struct in_addr *dst) in net_ipv4_create()
303 if (net_ipv4_is_addr_loopback((struct in_addr *)hdr->dst) || in net_ipv4_input()
304 net_ipv4_is_addr_loopback((struct in_addr *)hdr->src)) { in net_ipv4_input()
309 if (net_ipv4_is_my_addr((struct in_addr *)hdr->src)) { in net_ipv4_input()
315 if (net_ipv4_is_addr_mcast((struct in_addr *)hdr->src)) { in net_ipv4_input()
320 if (net_ipv4_is_addr_bcast(net_pkt_iface(pkt), (struct in_addr *)hdr->src)) { in net_ipv4_input()
325 if (net_ipv4_is_addr_unspecified((struct in_addr *)hdr->src) && in net_ipv4_input()
326 !net_ipv4_is_addr_bcast(net_pkt_iface(pkt), (struct in_addr *)hdr->dst) && in net_ipv4_input()
347 if ((!net_ipv4_is_my_addr((struct in_addr *)hdr->dst) && in net_ipv4_input()
348 !net_ipv4_is_addr_mcast((struct in_addr *)hdr->dst) && in net_ipv4_input()
350 (net_ipv4_addr_cmp((struct in_addr *)hdr->dst, net_ipv4_broadcast_address()) || in net_ipv4_input()
353 net_ipv4_addr_cmp((struct in_addr *)hdr->dst, in net_ipv4_input()
357 net_ipv4_is_addr_bcast(net_pkt_iface(pkt), (struct in_addr *)hdr->dst))) { in net_ipv4_input()