summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/frag6.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6/frag6.c')
-rw-r--r--sys/netinet6/frag6.c25
1 files changed, 9 insertions, 16 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c
index 964f71f..5d5b386 100644
--- a/sys/netinet6/frag6.c
+++ b/sys/netinet6/frag6.c
@@ -94,7 +94,7 @@ frag6_change(void *tag)
}
void
-frag6_init()
+frag6_init(void)
{
ip6_maxfragpackets = nmbclusters / 4;
@@ -140,9 +140,7 @@ frag6_init()
* Fragment input
*/
int
-frag6_input(mp, offp, proto)
- struct mbuf **mp;
- int *offp, proto;
+frag6_input(struct mbuf **mp, int *offp, int proto)
{
struct mbuf *m = *mp, *t;
struct ip6_hdr *ip6;
@@ -583,8 +581,7 @@ insert:
* associated datagrams.
*/
void
-frag6_freef(q6)
- struct ip6q *q6;
+frag6_freef(struct ip6q *q6)
{
struct ip6asfrag *af6, *down6;
@@ -628,8 +625,7 @@ frag6_freef(q6)
* Like insque, but pointers in middle of structure.
*/
void
-frag6_enq(af6, up6)
- struct ip6asfrag *af6, *up6;
+frag6_enq(struct ip6asfrag *af6, struct ip6asfrag *up6)
{
IP6Q_LOCK_ASSERT();
@@ -644,8 +640,7 @@ frag6_enq(af6, up6)
* To frag6_enq as remque is to insque.
*/
void
-frag6_deq(af6)
- struct ip6asfrag *af6;
+frag6_deq(struct ip6asfrag *af6)
{
IP6Q_LOCK_ASSERT();
@@ -655,8 +650,7 @@ frag6_deq(af6)
}
void
-frag6_insque(new, old)
- struct ip6q *new, *old;
+frag6_insque(struct ip6q *new, struct ip6q *old)
{
IP6Q_LOCK_ASSERT();
@@ -668,8 +662,7 @@ frag6_insque(new, old)
}
void
-frag6_remque(p6)
- struct ip6q *p6;
+frag6_remque(struct ip6q *p6)
{
IP6Q_LOCK_ASSERT();
@@ -684,7 +677,7 @@ frag6_remque(p6)
* queue, discard it.
*/
void
-frag6_slowtimo()
+frag6_slowtimo(void)
{
struct ip6q *q6;
@@ -738,7 +731,7 @@ frag6_slowtimo()
* Drain off all datagram fragments.
*/
void
-frag6_drain()
+frag6_drain(void)
{
if (IP6Q_TRYLOCK() == 0)
OpenPOWER on IntegriCloud