Lines Matching refs:udph

618 	struct udphdr *udph;  in amt_send_discovery()  local
646 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amtd); in amt_send_discovery()
657 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amtd); in amt_send_discovery()
660 amtd = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_discovery()
665 skb_push(skb, sizeof(*udph)); in amt_send_discovery()
667 udph = udp_hdr(skb); in amt_send_discovery()
668 udph->source = amt->gw_port; in amt_send_discovery()
669 udph->dest = amt->relay_port; in amt_send_discovery()
670 udph->len = htons(sizeof(*udph) + sizeof(*amtd)); in amt_send_discovery()
671 udph->check = 0; in amt_send_discovery()
674 udph->check = csum_tcpudp_magic(amt->local_ip, amt->discovery_ip, in amt_send_discovery()
675 sizeof(*udph) + sizeof(*amtd), in amt_send_discovery()
707 struct udphdr *udph; in amt_send_request() local
735 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amtrh); in amt_send_request()
746 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amtrh); in amt_send_request()
749 amtrh = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_request()
756 skb_push(skb, sizeof(*udph)); in amt_send_request()
758 udph = udp_hdr(skb); in amt_send_request()
759 udph->source = amt->gw_port; in amt_send_request()
760 udph->dest = amt->relay_port; in amt_send_request()
761 udph->len = htons(sizeof(*amtrh) + sizeof(*udph)); in amt_send_request()
762 udph->check = 0; in amt_send_request()
765 udph->check = csum_tcpudp_magic(amt->local_ip, amt->remote_ip, in amt_send_request()
766 sizeof(*udph) + sizeof(*amtrh), in amt_send_request()
2558 struct udphdr *udph; in amt_send_advertisement() local
2586 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amta); in amt_send_advertisement()
2597 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amta); in amt_send_advertisement()
2600 amta = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_advertisement()
2606 skb_push(skb, sizeof(*udph)); in amt_send_advertisement()
2608 udph = udp_hdr(skb); in amt_send_advertisement()
2609 udph->source = amt->relay_port; in amt_send_advertisement()
2610 udph->dest = dport; in amt_send_advertisement()
2611 udph->len = htons(sizeof(*amta) + sizeof(*udph)); in amt_send_advertisement()
2612 udph->check = 0; in amt_send_advertisement()
2615 udph->check = csum_tcpudp_magic(amt->local_ip, daddr, in amt_send_advertisement()
2616 sizeof(*udph) + sizeof(*amta), in amt_send_advertisement()
2645 struct udphdr *udph; in amt_discovery_handler() local
2648 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtd))) in amt_discovery_handler()
2652 udph = udp_hdr(skb); in amt_discovery_handler()
2658 amt_send_advertisement(amt, amtd->nonce, iph->saddr, udph->source); in amt_discovery_handler()
2668 struct udphdr *udph; in amt_request_handler() local
2673 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtrh))) in amt_request_handler()
2677 udph = udp_hdr(skb); in amt_request_handler()
2702 tunnel->source_port = udph->source; in amt_request_handler()