| 644 | } |
| 645 | |
| 646 | static int |
| 647 | div_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 | |
| 663 | static void |
| 664 | div_ctlinput(int cmd, struct sockaddr *sa, void *vip) |
nothing calls this directly
no test coverage detected