MCPcopy Create free account
hub / github.com/F-Stack/f-stack / gre_setseqn

Function gre_setseqn

freebsd/net/if_gre.c:626–641  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626static void
627gre_setseqn(struct grehdr *gh, uint32_t seq)
628{
629 uint32_t *opts;
630 uint16_t flags;
631
632 opts = gh->gre_opts;
633 flags = ntohs(gh->gre_flags);
634 KASSERT((flags & GRE_FLAGS_SP) != 0,
635 ("gre_setseqn called, but GRE_FLAGS_SP isn't set "));
636 if (flags & GRE_FLAGS_CP)
637 opts++;
638 if (flags & GRE_FLAGS_KP)
639 opts++;
640 *opts = htonl(seq);
641}
642
643static uint32_t
644gre_flowid(struct gre_softc *sc, struct mbuf *m, uint32_t af)

Callers 1

gre_transmitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected