ansify function definitionsdiff -r1.28 -r1.29 src/sys/netatalk/aarp.c
(cegger)
--- src/sys/netatalk/aarp.c 2009/03/14 15:36:23 1.28
+++ src/sys/netatalk/aarp.c 2009/03/15 21:24:24 1.29
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: aarp.c,v 1.28 2009/03/14 15:36:23 dsl Exp $ */ | 1 | /* $NetBSD: aarp.c,v 1.29 2009/03/15 21:24:24 cegger Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1990,1991 Regents of The University of Michigan. | 4 | * Copyright (c) 1990,1991 Regents of The University of Michigan. | |
5 | * All Rights Reserved. | 5 | * All Rights Reserved. | |
6 | * | 6 | * | |
7 | * Permission to use, copy, modify, and distribute this software and | 7 | * Permission to use, copy, modify, and distribute this software and | |
8 | * its documentation for any purpose and without fee is hereby granted, | 8 | * its documentation for any purpose and without fee is hereby granted, | |
9 | * provided that the above copyright notice appears in all copies and | 9 | * provided that the above copyright notice appears in all copies and | |
10 | * that both that copyright notice and this permission notice appear | 10 | * that both that copyright notice and this permission notice appear | |
11 | * in supporting documentation, and that the name of The University | 11 | * in supporting documentation, and that the name of The University | |
12 | * of Michigan not be used in advertising or publicity pertaining to | 12 | * of Michigan not be used in advertising or publicity pertaining to | |
13 | * distribution of the software without specific, written prior | 13 | * distribution of the software without specific, written prior | |
14 | * permission. This software is supplied as is without expressed or | 14 | * permission. This software is supplied as is without expressed or | |
@@ -17,27 +17,27 @@ | @@ -17,27 +17,27 @@ | |||
17 | * This product includes software developed by the University of | 17 | * This product includes software developed by the University of | |
18 | * California, Berkeley and its contributors. | 18 | * California, Berkeley and its contributors. | |
19 | * | 19 | * | |
20 | * Research Systems Unix Group | 20 | * Research Systems Unix Group | |
21 | * The University of Michigan | 21 | * The University of Michigan | |
22 | * c/o Wesley Craig | 22 | * c/o Wesley Craig | |
23 | * 535 W. William Street | 23 | * 535 W. William Street | |
24 | * Ann Arbor, Michigan | 24 | * Ann Arbor, Michigan | |
25 | * +1-313-764-2278 | 25 | * +1-313-764-2278 | |
26 | * netatalk@umich.edu | 26 | * netatalk@umich.edu | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #include <sys/cdefs.h> | 29 | #include <sys/cdefs.h> | |
30 | __KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.28 2009/03/14 15:36:23 dsl Exp $"); | 30 | __KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.29 2009/03/15 21:24:24 cegger Exp $"); | |
31 | 31 | |||
32 | #include "opt_mbuftrace.h" | 32 | #include "opt_mbuftrace.h" | |
33 | 33 | |||
34 | #include <sys/param.h> | 34 | #include <sys/param.h> | |
35 | #include <sys/socket.h> | 35 | #include <sys/socket.h> | |
36 | #include <sys/syslog.h> | 36 | #include <sys/syslog.h> | |
37 | #include <sys/systm.h> | 37 | #include <sys/systm.h> | |
38 | #include <sys/callout.h> | 38 | #include <sys/callout.h> | |
39 | #include <sys/proc.h> | 39 | #include <sys/proc.h> | |
40 | #include <sys/mbuf.h> | 40 | #include <sys/mbuf.h> | |
41 | #include <sys/time.h> | 41 | #include <sys/time.h> | |
42 | #include <sys/kernel.h> | 42 | #include <sys/kernel.h> | |
43 | #include <sys/socketvar.h> | 43 | #include <sys/socketvar.h> | |
@@ -622,23 +622,23 @@ aarpprobe(void *arp) | @@ -622,23 +622,23 @@ aarpprobe(void *arp) | |||
622 | printf("aarp: sending probe for %u.%u\n", | 622 | printf("aarp: sending probe for %u.%u\n", | |
623 | ntohs(AA_SAT(aa)->sat_addr.s_net), | 623 | ntohs(AA_SAT(aa)->sat_addr.s_net), | |
624 | AA_SAT(aa)->sat_addr.s_node); | 624 | AA_SAT(aa)->sat_addr.s_node); | |
625 | #endif /* NETATALKDEBUG */ | 625 | #endif /* NETATALKDEBUG */ | |
626 | 626 | |||
627 | sa.sa_len = sizeof(struct sockaddr); | 627 | sa.sa_len = sizeof(struct sockaddr); | |
628 | sa.sa_family = AF_UNSPEC; | 628 | sa.sa_family = AF_UNSPEC; | |
629 | (*ifp->if_output) (ifp, m, &sa, NULL); /* XXX */ | 629 | (*ifp->if_output) (ifp, m, &sa, NULL); /* XXX */ | |
630 | aa->aa_probcnt--; | 630 | aa->aa_probcnt--; | |
631 | mutex_exit(softnet_lock); | 631 | mutex_exit(softnet_lock); | |
632 | } | 632 | } | |
633 | 633 | |||
634 | void | 634 | void | |
635 | aarp_clean() | 635 | aarp_clean(void) | |
636 | { | 636 | { | |
637 | struct aarptab *aat; | 637 | struct aarptab *aat; | |
638 | int i; | 638 | int i; | |
639 | 639 | |||
640 | callout_stop(&aarptimer_callout); | 640 | callout_stop(&aarptimer_callout); | |
641 | for (i = 0, aat = aarptab; i < AARPTAB_SIZE; i++, aat++) | 641 | for (i = 0, aat = aarptab; i < AARPTAB_SIZE; i++, aat++) | |
642 | if (aat->aat_hold) | 642 | if (aat->aat_hold) | |
643 | m_freem(aat->aat_hold); | 643 | m_freem(aat->aat_hold); | |
644 | } | 644 | } |
--- src/sys/netatalk/ddp_input.c 2009/03/14 15:36:23 1.21
+++ src/sys/netatalk/ddp_input.c 2009/03/15 21:24:24 1.22
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | /* $NetBSD: ddp_input.c,v 1.21 2009/03/14 15:36:23 dsl Exp $ */ | 1 | /* $NetBSD: ddp_input.c,v 1.22 2009/03/15 21:24:24 cegger Exp $ */ | |
2 | 2 | |||
3 | /* | 3 | /* | |
4 | * Copyright (c) 1990,1994 Regents of The University of Michigan. | 4 | * Copyright (c) 1990,1994 Regents of The University of Michigan. | |
5 | * All Rights Reserved. | 5 | * All Rights Reserved. | |
6 | * | 6 | * | |
7 | * Permission to use, copy, modify, and distribute this software and | 7 | * Permission to use, copy, modify, and distribute this software and | |
8 | * its documentation for any purpose and without fee is hereby granted, | 8 | * its documentation for any purpose and without fee is hereby granted, | |
9 | * provided that the above copyright notice appears in all copies and | 9 | * provided that the above copyright notice appears in all copies and | |
10 | * that both that copyright notice and this permission notice appear | 10 | * that both that copyright notice and this permission notice appear | |
11 | * in supporting documentation, and that the name of The University | 11 | * in supporting documentation, and that the name of The University | |
12 | * of Michigan not be used in advertising or publicity pertaining to | 12 | * of Michigan not be used in advertising or publicity pertaining to | |
13 | * distribution of the software without specific, written prior | 13 | * distribution of the software without specific, written prior | |
14 | * permission. This software is supplied as is without expressed or | 14 | * permission. This software is supplied as is without expressed or | |
@@ -17,27 +17,27 @@ | @@ -17,27 +17,27 @@ | |||
17 | * This product includes software developed by the University of | 17 | * This product includes software developed by the University of | |
18 | * California, Berkeley and its contributors. | 18 | * California, Berkeley and its contributors. | |
19 | * | 19 | * | |
20 | * Research Systems Unix Group | 20 | * Research Systems Unix Group | |
21 | * The University of Michigan | 21 | * The University of Michigan | |
22 | * c/o Wesley Craig | 22 | * c/o Wesley Craig | |
23 | * 535 W. William Street | 23 | * 535 W. William Street | |
24 | * Ann Arbor, Michigan | 24 | * Ann Arbor, Michigan | |
25 | * +1-313-764-2278 | 25 | * +1-313-764-2278 | |
26 | * netatalk@umich.edu | 26 | * netatalk@umich.edu | |
27 | */ | 27 | */ | |
28 | 28 | |||
29 | #include <sys/cdefs.h> | 29 | #include <sys/cdefs.h> | |
30 | __KERNEL_RCSID(0, "$NetBSD: ddp_input.c,v 1.21 2009/03/14 15:36:23 dsl Exp $"); | 30 | __KERNEL_RCSID(0, "$NetBSD: ddp_input.c,v 1.22 2009/03/15 21:24:24 cegger Exp $"); | |
31 | 31 | |||
32 | #include <sys/param.h> | 32 | #include <sys/param.h> | |
33 | #include <sys/systm.h> | 33 | #include <sys/systm.h> | |
34 | #include <sys/kernel.h> | 34 | #include <sys/kernel.h> | |
35 | #include <net/netisr.h> | 35 | #include <net/netisr.h> | |
36 | #include <sys/mbuf.h> | 36 | #include <sys/mbuf.h> | |
37 | #include <sys/socket.h> | 37 | #include <sys/socket.h> | |
38 | #include <sys/socketvar.h> | 38 | #include <sys/socketvar.h> | |
39 | #include <sys/syslog.h> | 39 | #include <sys/syslog.h> | |
40 | #include <net/if.h> | 40 | #include <net/if.h> | |
41 | #include <net/route.h> | 41 | #include <net/route.h> | |
42 | #include <net/if_ether.h> | 42 | #include <net/if_ether.h> | |
43 | #include <netinet/in.h> | 43 | #include <netinet/in.h> | |
@@ -49,27 +49,27 @@ __KERNEL_RCSID(0, "$NetBSD: ddp_input.c, | @@ -49,27 +49,27 @@ __KERNEL_RCSID(0, "$NetBSD: ddp_input.c, | |||
49 | #include <netatalk/ddp_private.h> | 49 | #include <netatalk/ddp_private.h> | |
50 | #include <netatalk/at_extern.h> | 50 | #include <netatalk/at_extern.h> | |
51 | 51 | |||
52 | int ddp_forward = 1; | 52 | int ddp_forward = 1; | |
53 | int ddp_firewall = 0; | 53 | int ddp_firewall = 0; | |
54 | extern int ddp_cksum; | 54 | extern int ddp_cksum; | |
55 | void ddp_input(struct mbuf *, struct ifnet *, | 55 | void ddp_input(struct mbuf *, struct ifnet *, | |
56 | struct elaphdr *, int); | 56 | struct elaphdr *, int); | |
57 | 57 | |||
58 | /* | 58 | /* | |
59 | * Could probably merge these two code segments a little better... | 59 | * Could probably merge these two code segments a little better... | |
60 | */ | 60 | */ | |
61 | void | 61 | void | |
62 | atintr() | 62 | atintr(void) | |
63 | { | 63 | { | |
64 | struct elaphdr *elhp, elh; | 64 | struct elaphdr *elhp, elh; | |
65 | struct ifnet *ifp; | 65 | struct ifnet *ifp; | |
66 | struct mbuf *m; | 66 | struct mbuf *m; | |
67 | struct at_ifaddr *aa; | 67 | struct at_ifaddr *aa; | |
68 | int s; | 68 | int s; | |
69 | 69 | |||
70 | mutex_enter(softnet_lock); | 70 | mutex_enter(softnet_lock); | |
71 | for (;;) { | 71 | for (;;) { | |
72 | s = splnet(); | 72 | s = splnet(); | |
73 | 73 | |||
74 | IF_DEQUEUE(&atintrq2, m); | 74 | IF_DEQUEUE(&atintrq2, m); | |
75 | 75 |