Lines Matching defs:gh
249 struct greip *gh;
332 gh = NULL;
474 gh = mtod(m, struct greip *);
476 uint32_t *options = gh->gi_options;
478 memset((void *)gh, 0, sizeof(struct greip) + extra);
479 gh->gi_ptype = htons(etype);
480 gh->gi_flags = 0;
485 gh->gi_flags |= htons(GRE_KP);
490 gh->gi_pr = sc->g_proto;
492 gh->gi_src = sc->g_src;
493 gh->gi_dst = sc->g_dst;
494 ((struct ip*)gh)->ip_v = IPPROTO_IPV4;
495 ((struct ip*)gh)->ip_hl = (sizeof(struct ip)) >> 2;
496 ((struct ip*)gh)->ip_ttl = GRE_TTL;
497 ((struct ip*)gh)->ip_tos = gre_ip_tos;
498 ((struct ip*)gh)->ip_id = gre_ip_id;
499 gh->gi_len = htons(m->m_pkthdr.len);