Lines Matching refs:gen
133 struct isakmp_gen *gen;
169 if (msg->l < sizeof(*isakmp) + sizeof(*gen)) {
177 gen = (struct isakmp_gen *)((caddr_t)isakmp + sizeof(struct isakmp));
178 np = gen->np;
196 if (msg->l < sizeof(*isakmp) + ntohs(gen->len) + sizeof(*nd)) {
203 p = (caddr_t) gen + sizeof(struct isakmp_gen);
204 nd = (struct isakmp_gen *) ((caddr_t) gen + ntohs(gen->len));
208 ntohs(gen->len))) {
239 if (ntohs(gen->len) - sizeof(struct isakmp_gen) != hash->l) {
314 s_isakmp_nptype(gen->np));
895 struct isakmp_gen *gen;
946 tlen += sizeof(*gen);
986 gen = (struct isakmp_gen *)p;
987 gen->np = np & 0xff;
988 gen->len = htons(sizeof(*gen) + hash->l);
989 p += sizeof(*gen);
1481 isakmp_check_notify(gen, iph1)
1482 struct isakmp_gen *gen; /* points to Notify payload */
1485 struct isakmp_pl_n *notify = (struct isakmp_pl_n *)gen;