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

Function div_send

freebsd/netinet/ip_divert.c:646–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646static int
647div_send(struct socket *so, int flags, struct mbuf *m, struct sockaddr *nam,
648 struct mbuf *control, struct thread *td)
649{
650
651 /* Packet must have a header (but that's about it) */
652 if (m->m_len < sizeof (struct ip) &&
653 (m = m_pullup(m, sizeof (struct ip))) == NULL) {
654 KMOD_IPSTAT_INC(ips_toosmall);
655 m_freem(m);
656 return EINVAL;
657 }
658
659 /* Send packet */
660 return div_output(so, m, (struct sockaddr_in *)nam, control);
661}
662
663static void
664div_ctlinput(int cmd, struct sockaddr *sa, void *vip)

Callers

nothing calls this directly

Calls 3

m_pullupFunction · 0.85
div_outputFunction · 0.85
m_freemFunction · 0.50

Tested by

no test coverage detected