Lines Matching refs:htons
100 ehdr->h_proto = htons(ETH_P_IP); in net_test_get_skb()
103 thdr->source = htons(attr->sport); in net_test_get_skb()
104 thdr->dest = htons(attr->dport); in net_test_get_skb()
108 uhdr->source = htons(attr->sport); in net_test_get_skb()
109 uhdr->dest = htons(attr->dport); in net_test_get_skb()
110 uhdr->len = htons(sizeof(*shdr) + sizeof(*uhdr) + attr->size); in net_test_get_skb()
112 uhdr->len = htons(attr->max_size - in net_test_get_skb()
133 ihdr->tot_len = htons(iplen); in net_test_get_skb()
163 skb->protocol = htons(ETH_P_IP); in net_test_get_skb()
213 if (thdr->dest != htons(tpriv->packet->dport)) in net_test_loopback_validate()
222 if (uhdr->dest != htons(tpriv->packet->dport)) in net_test_loopback_validate()
254 tpriv->pt.type = htons(ETH_P_IP); in __net_test_loopback()