Lines Matching defs:gh
378 struct gre_h gh;
400 if (__predict_false(m->m_len < sizeof(gh))) {
401 if ((m = m_pullup(m, sizeof(gh))) == NULL) {
407 memcpy(&gh, mtod(m, void *), sizeof(gh));
409 if (gre_input(sc, m, &gh) == 0) {
788 gre_input(struct gre_softc *sc, struct mbuf *m, const struct gre_h *gh)
800 flags = ntohs(gh->flags);
815 switch (ntohs(gh->ptype)) { /* ethertypes */
842 ntohs(gh->ptype));
875 struct gre_h gh = { .flags = 0 };
927 M_PREPEND(m, sizeof(gh), M_DONTWAIT);
934 gh.ptype = etype;
935 memcpy(mtod(m, void *), &gh, sizeof(gh));