Lines Matching refs:amtrh
702 struct amt_header_request *amtrh; 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()
748 amtrh->version = 0; in amt_send_request()
749 amtrh->type = AMT_MSG_REQUEST; in amt_send_request()
750 amtrh->reserved1 = 0; in amt_send_request()
751 amtrh->p = v6; in amt_send_request()
752 amtrh->reserved2 = 0; in amt_send_request()
753 amtrh->nonce = amt->nonce; in amt_send_request()
759 udph->len = htons(sizeof(*amtrh) + sizeof(*udph)); in amt_send_request()
764 sizeof(*udph) + sizeof(*amtrh), in amt_send_request()
2660 struct amt_header_request *amtrh; in amt_request_handler() local
2668 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtrh))) in amt_request_handler()
2673 amtrh = (struct amt_header_request *)(udp_hdr(skb) + 1); in amt_request_handler()
2675 if (amtrh->reserved1 || amtrh->reserved2 || amtrh->version) in amt_request_handler()
2717 tunnel->nonce = amtrh->nonce; in amt_request_handler()
2727 if (!amtrh->p) in amt_request_handler()