Lines Matching defs:gh
507 struct grehdr *gh = NULL;
519 gh = &sc->gre_gihdr->gi_gre;
527 gh = &sc->gre_gi6hdr->gi6_gre;
534 opts = gh->gre_opts;
551 gh->gre_flags = htons(flags);
682 struct grehdr *gh;
705 gh = (struct grehdr *)mtodo(m, *offp);
706 flags = ntohs(gh->gre_flags);
709 opts = gh->gre_opts;
744 switch (ntohs(gh->gre_proto)) {
750 if (flags == 0 && (*(uint8_t *)gh->gre_opts & 0xF0) != 0x40)
852 gre_setseqn(struct grehdr *gh, uint32_t seq)
857 opts = gh->gre_opts;
858 flags = ntohs(gh->gre_flags);
873 struct grehdr *gh;
925 gh = (struct grehdr *)mtodo(m, olen);
929 gh->gre_proto = htons(ETHERTYPE_IP);
934 gh->gre_proto = htons(ETHERTYPE_IPV6);
942 gre_setseqn(gh, oseq);
944 *(uint16_t *)gh->gre_opts = in_cksum_skip(m,