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

Function gre_update_udphdr

freebsd/net/if_gre.c:462–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

460}
461
462void
463gre_update_udphdr(struct gre_softc *sc, struct udphdr *udp, uint16_t csum)
464{
465
466 sx_assert(&gre_ioctl_sx, SA_XLOCKED);
467 MPASS(sc->gre_options & GRE_UDPENCAP);
468
469 udp->uh_dport = htons(GRE_UDPPORT);
470 udp->uh_sport = htons(sc->gre_port);
471 udp->uh_sum = csum;
472 udp->uh_ulen = 0;
473}
474
475void
476gre_update_hdr(struct gre_softc *sc, struct grehdr *gh)

Callers 2

in_gre_attachFunction · 0.85
in6_gre_attachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected