Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Ansify before committing my next change.



details:   https://anonhg.NetBSD.org/src/rev/01ea900eb6b8
branches:  trunk
changeset: 488086:01ea900eb6b8
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 17 20:57:20 2000 +0000

description:
Ansify before committing my next change.

diffstat:

 sys/net/if_ether.h     |  11 ++++++-----
 sys/net/if_ethersubr.c |  43 ++++++++++++-------------------------------
 2 files changed, 18 insertions(+), 36 deletions(-)

diffs (152 lines):

diff -r c798ec76feae -r 01ea900eb6b8 sys/net/if_ether.h
--- a/sys/net/if_ether.h        Sat Jun 17 20:57:12 2000 +0000
+++ b/sys/net/if_ether.h        Sat Jun 17 20:57:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ether.h,v 1.16 2000/03/29 04:56:47 enami Exp $      */
+/*     $NetBSD: if_ether.h,v 1.17 2000/06/17 20:57:20 matt Exp $       */
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -136,8 +136,9 @@
 extern u_int8_t ether_ipmulticast_min[ETHER_ADDR_LEN];
 extern u_int8_t ether_ipmulticast_max[ETHER_ADDR_LEN];
 
-int    ether_addmulti __P((struct ifreq *, struct ethercom *));
-int    ether_delmulti __P((struct ifreq *, struct ethercom *));
+int    ether_addmulti (struct ifreq *, struct ethercom *);
+int    ether_delmulti (struct ifreq *, struct ethercom *);
+int    ether_changeaddr (struct ifreq *, struct ethercom *);
 #endif /* _KERNEL */
 
 /*
@@ -205,8 +206,8 @@
 }
 
 #ifdef _KERNEL
-u_int32_t ether_crc32_le __P((const u_int8_t *, size_t));
-u_int32_t ether_crc32_be __P((const u_int8_t *, size_t));
+u_int32_t ether_crc32_le (const u_int8_t *, size_t);
+u_int32_t ether_crc32_be (const u_int8_t *, size_t);
 #else
 /*
  * Prototype ethers(3) functions.
diff -r c798ec76feae -r 01ea900eb6b8 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c    Sat Jun 17 20:57:12 2000 +0000
+++ b/sys/net/if_ethersubr.c    Sat Jun 17 20:57:20 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ethersubr.c,v 1.57 2000/06/14 05:10:27 mycroft Exp $        */
+/*     $NetBSD: if_ethersubr.c,v 1.58 2000/06/17 20:57:20 matt Exp $   */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -161,11 +161,8 @@
  * Assumes that ifp is actually pointer to ethercom structure.
  */
 static int
-ether_output(ifp, m0, dst, rt0)
-       struct ifnet *ifp;
-       struct mbuf *m0;
-       struct sockaddr *dst;
-       struct rtentry *rt0;
+ether_output(struct ifnet *ifp, struct mbuf *m0, struct sockaddr *dst,
+       struct rtentry *rt0)
 {
        u_int16_t etype = 0;
        int s, error = 0, hdrcmplt = 0;
@@ -494,9 +491,7 @@
  * the ether header.
  */
 static void
-ether_input(ifp, m)
-       struct ifnet *ifp;
-       struct mbuf *m;
+ether_input(struct ifnet *ifp, struct mbuf *m)
 {
        struct ifqueue *inq;
        u_int16_t etype;
@@ -737,8 +732,7 @@
  */
 static char digits[] = "0123456789abcdef";
 char *
-ether_sprintf(ap)
-       const u_char *ap;
+ether_sprintf(const u_char *ap)
 {
        static char etherbuf[18];
        char *cp = etherbuf;
@@ -757,9 +751,7 @@
  * Perform common duties while attaching to interface list
  */
 void
-ether_ifattach(ifp, lla)
-       struct ifnet *ifp;
-       const u_int8_t *lla;
+ether_ifattach(struct ifnet *ifp, const u_int8_t *lla)
 {
        struct sockaddr_dl *sdl;
 
@@ -782,8 +774,7 @@
 }
 
 void
-ether_ifdetach(ifp)
-       struct ifnet *ifp;
+ether_ifdetach(struct ifnet *ifp)
 {
 
        /* Nothing. */
@@ -796,9 +787,7 @@
  * than the double-loop.
  */
 u_int32_t
-ether_crc32_le(buf, len)
-       const u_int8_t *buf;
-       size_t len;
+ether_crc32_le(const u_int8_t *buf, size_t len)
 {
        u_int32_t c, crc, carry;
        size_t i, j;
@@ -820,9 +809,7 @@
 }
 #else
 u_int32_t
-ether_crc32_le(buf, len)
-       const u_int8_t *buf;
-       size_t len;
+ether_crc32_le(const u_int8_t *buf, size_t len)
 {
        static const u_int32_t crctab[] = {
                0x00000000, 0x1db71064, 0x3b6e20c8, 0x26d930ac,
@@ -846,9 +833,7 @@
 #endif
 
 u_int32_t
-ether_crc32_be(buf, len)
-       const u_int8_t *buf;
-       size_t len;
+ether_crc32_be(const u_int8_t *buf, size_t len)
 {
        u_int32_t c, crc, carry;
        size_t i, j;
@@ -882,9 +867,7 @@
  * given interface.
  */
 int
-ether_addmulti(ifr, ec)
-       struct ifreq *ifr;
-       struct ethercom *ec;
+ether_addmulti(struct ifreq *ifr, struct ethercom *ec)
 {
        struct ether_multi *enm;
 #ifdef INET
@@ -995,9 +978,7 @@
  * Delete a multicast address record.
  */
 int
-ether_delmulti(ifr, ec)
-       struct ifreq *ifr;
-       struct ethercom *ec;
+ether_delmulti(struct ifreq *ifr, struct ethercom *ec)
 {
        struct ether_multi *enm;
 #ifdef INET



Home | Main Index | Thread Index | Old Index