Lines Matching defs:gh
475 gre_update_hdr(struct gre_softc *sc, struct grehdr *gh)
483 opts = gh->gre_opts;
500 gh->gre_flags = htons(flags);
507 struct grehdr *gh;
525 gh = (struct grehdr *)mtodo(m, off);
526 flags = ntohs(gh->gre_flags);
529 opts = gh->gre_opts;
565 switch (ntohs(gh->gre_proto)) {
571 if (flags == 0 && (*(uint8_t *)gh->gre_opts & 0xF0) != 0x40)
627 gre_setseqn(struct grehdr *gh, uint32_t seq)
632 opts = gh->gre_opts;
633 flags = ntohs(gh->gre_flags);
686 struct grehdr *gh;
770 gh = (struct grehdr *)mtodo(m, len);
771 gh->gre_proto = proto;
773 gre_setseqn(gh, sc->gre_oseq++);
775 *(uint16_t *)gh->gre_opts = in_cksum_skip(m,