1 /* SPDX-License-Identifier: BSD-3-Clause */
4 * Guillaume Subiron, Yann Bordenave, Serigne Modou Wagne.
9 /* Number of packets queued before we start sending
10 * (to prevent allocing too many mbufs) */
14 * IPv6 output. The packet in mbuf chain m contains a IP header
16 int ip6_output(struct socket
*so
, struct mbuf
*m
, int fast
)
18 struct ip6
*ip
= mtod(m
, struct ip6
*);
20 DEBUG_CALL("ip6_output");
21 DEBUG_ARG("so = %p", so
);
22 DEBUG_ARG("m = %p", m
);
24 /* Fill IPv6 header */
25 ip
->ip_v
= IP6VERSION
;
26 ip
->ip_hl
= IP6_HOP_LIMIT
;
33 if_encap(m
->slirp
, m
);