Lines Matching refs:udph
622 struct udphdr *udph; in amt_send_discovery() local
650 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amtd); in amt_send_discovery()
661 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amtd); in amt_send_discovery()
664 amtd = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_discovery()
669 skb_push(skb, sizeof(*udph)); in amt_send_discovery()
671 udph = udp_hdr(skb); in amt_send_discovery()
672 udph->source = amt->gw_port; in amt_send_discovery()
673 udph->dest = amt->relay_port; in amt_send_discovery()
674 udph->len = htons(sizeof(*udph) + sizeof(*amtd)); in amt_send_discovery()
675 udph->check = 0; in amt_send_discovery()
678 udph->check = csum_tcpudp_magic(amt->local_ip, amt->discovery_ip, in amt_send_discovery()
679 sizeof(*udph) + sizeof(*amtd), in amt_send_discovery()
713 struct udphdr *udph; in amt_send_request() local
741 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amtrh); in amt_send_request()
752 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amtrh); in amt_send_request()
755 amtrh = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_request()
762 skb_push(skb, sizeof(*udph)); in amt_send_request()
764 udph = udp_hdr(skb); in amt_send_request()
765 udph->source = amt->gw_port; in amt_send_request()
766 udph->dest = amt->relay_port; in amt_send_request()
767 udph->len = htons(sizeof(*amtrh) + sizeof(*udph)); in amt_send_request()
768 udph->check = 0; in amt_send_request()
771 udph->check = csum_tcpudp_magic(amt->local_ip, amt->remote_ip, in amt_send_request()
772 sizeof(*udph) + sizeof(*amtrh), in amt_send_request()
2389 struct udphdr *udph; in amt_update_handler() local
2395 udph = udp_hdr(skb); in amt_update_handler()
2397 if (__iptunnel_pull_header(skb, sizeof(*udph), skb->protocol, in amt_update_handler()
2489 struct udphdr *udph; in amt_send_advertisement() local
2517 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amta); in amt_send_advertisement()
2528 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amta); in amt_send_advertisement()
2531 amta = skb_pull(skb, sizeof(*iph) + sizeof(*udph)); in amt_send_advertisement()
2537 skb_push(skb, sizeof(*udph)); in amt_send_advertisement()
2539 udph = udp_hdr(skb); in amt_send_advertisement()
2540 udph->source = amt->relay_port; in amt_send_advertisement()
2541 udph->dest = dport; in amt_send_advertisement()
2542 udph->len = htons(sizeof(*amta) + sizeof(*udph)); in amt_send_advertisement()
2543 udph->check = 0; in amt_send_advertisement()
2546 udph->check = csum_tcpudp_magic(amt->local_ip, daddr, in amt_send_advertisement()
2547 sizeof(*udph) + sizeof(*amta), in amt_send_advertisement()
2576 struct udphdr *udph; in amt_discovery_handler() local
2579 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtd))) in amt_discovery_handler()
2583 udph = udp_hdr(skb); in amt_discovery_handler()
2589 amt_send_advertisement(amt, amtd->nonce, iph->saddr, udph->source); in amt_discovery_handler()
2599 struct udphdr *udph; in amt_request_handler() local
2604 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtrh))) in amt_request_handler()
2608 udph = udp_hdr(skb); in amt_request_handler()
2629 tunnel->source_port = udph->source; in amt_request_handler()