Lines Matching refs:amtd
613 struct amt_header_discovery *amtd;
644 len = hlen + tlen + sizeof(*iph) + sizeof(*udph) + sizeof(*amtd);
655 len = sizeof(*iph) + sizeof(*udph) + sizeof(*amtd);
658 amtd = skb_pull(skb, sizeof(*iph) + sizeof(*udph));
659 amtd->version = 0;
660 amtd->type = AMT_MSG_DISCOVERY;
661 amtd->reserved = 0;
662 amtd->nonce = amt->nonce;
668 udph->len = htons(sizeof(*udph) + sizeof(*amtd));
673 sizeof(*udph) + sizeof(*amtd),
2639 struct amt_header_discovery *amtd;
2643 if (!pskb_may_pull(skb, sizeof(*udph) + sizeof(*amtd)))
2648 amtd = (struct amt_header_discovery *)(udp_hdr(skb) + 1);
2650 if (amtd->reserved || amtd->version)
2653 amt_send_advertisement(amt, amtd->nonce, iph->saddr, udph->source);