Lines Matching refs:udph
616 struct udphdr *udph; in amt_send_discovery() local
644 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amtd); in amt_send_discovery()
655 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amtd); in amt_send_discovery()
658 amtd = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_discovery()
663 skb_push(skb, sizeof(*udph)); in amt_send_discovery()
665 udph = udp_hdr(skb); in amt_send_discovery()
666 udph->source = amt->gw_port; in amt_send_discovery()
667 udph->dest = amt->relay_port; in amt_send_discovery()
668 udph->len = htons(sizeof(*udph) + sizeof(*amtd)); in amt_send_discovery()
669 udph->check = 0; in amt_send_discovery()
672 udph->check = csum_tcpudp_magic(amt->local_ip, amt->discovery_ip, in amt_send_discovery()
673 sizeof(*udph) + sizeof(*amtd), in amt_send_discovery()
705 struct udphdr *udph; in amt_send_request() local
733 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amtrh); in amt_send_request()
744 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amtrh); in amt_send_request()
747 amtrh = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_request()
754 skb_push(skb, sizeof(*udph)); in amt_send_request()
756 udph = udp_hdr(skb); in amt_send_request()
757 udph->source = amt->gw_port; in amt_send_request()
758 udph->dest = amt->relay_port; in amt_send_request()
759 udph->len = htons(sizeof(*amtrh) + sizeof(*udph)); in amt_send_request()
760 udph->check = 0; in amt_send_request()
763 udph->check = csum_tcpudp_magic(amt->local_ip, amt->remote_ip, in amt_send_request()
764 sizeof(*udph) + sizeof(*amtrh), in amt_send_request()
2553 struct udphdr *udph; in amt_send_advertisement() local
2581 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amta); in amt_send_advertisement()
2592 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amta); in amt_send_advertisement()
2595 amta = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_advertisement()
2601 skb_push(skb, sizeof(*udph)); in amt_send_advertisement()
2603 udph = udp_hdr(skb); in amt_send_advertisement()
2604 udph->source = amt->relay_port; in amt_send_advertisement()
2605 udph->dest = dport; in amt_send_advertisement()
2606 udph->len = htons(sizeof(*amta) + sizeof(*udph)); in amt_send_advertisement()
2607 udph->check = 0; in amt_send_advertisement()
2610 udph->check = csum_tcpudp_magic(amt->local_ip, daddr, in amt_send_advertisement()
2611 sizeof(*udph) + sizeof(*amta), in amt_send_advertisement()
2640 struct udphdr *udph; in amt_discovery_handler() local
2643 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtd))) in amt_discovery_handler()
2647 udph = udp_hdr(skb); in amt_discovery_handler()
2653 amt_send_advertisement(amt, amtd->nonce, iph->saddr, udph->source); in amt_discovery_handler()
2663 struct udphdr *udph; in amt_request_handler() local
2668 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtrh))) in amt_request_handler()
2672 udph = udp_hdr(skb); in amt_request_handler()
2697 tunnel->source_port = udph->source; in amt_request_handler()