diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-08 01:51:07 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-08 01:51:07 +0000 |
commit | 41ff6708e7eeb5f52067074877da206cf7569d3c (patch) | |
tree | a7ed65dc476a7e6674c2ff83c2a8e2ca5957c2a0 /cpukit/libnetworking/net/if_ppp.c | |
parent | Intra-level priorities range from 0 to 7. (diff) | |
download | rtems-41ff6708e7eeb5f52067074877da206cf7569d3c.tar.bz2 |
2005-02-08 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h:
Ansification, cosmetics from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/net/if_ppp.c')
-rw-r--r-- | cpukit/libnetworking/net/if_ppp.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/cpukit/libnetworking/net/if_ppp.c b/cpukit/libnetworking/net/if_ppp.c index 64e5d88459..45ff18d9f0 100644 --- a/cpukit/libnetworking/net/if_ppp.c +++ b/cpukit/libnetworking/net/if_ppp.c @@ -1,6 +1,8 @@ /* * if_ppp.c - Point-to-Point Protocol (PPP) Asynchronous driver. - * + */ + +/*- * Copyright (c) 1989 Carnegie Mellon University. * All rights reserved. * @@ -125,14 +127,14 @@ #include <net/ppp-comp.h> #endif -static int pppsioctl __P((struct ifnet *, int, caddr_t)); -static void ppp_requeue __P((struct ppp_softc *)); +static int pppsioctl(struct ifnet *, int, caddr_t); +static void ppp_requeue(struct ppp_softc *); #ifdef PPP_COMPRESS -static void ppp_ccp __P((struct ppp_softc *, struct mbuf *m, int rcvd)); -static void ppp_ccp_closed __P((struct ppp_softc *)); +static void ppp_ccp(struct ppp_softc *, struct mbuf *m, int rcvd); +static void ppp_ccp_closed(struct ppp_softc *); #endif -static struct mbuf *ppp_inproc __P((struct ppp_softc *, struct mbuf *)); -static void pppdumpm __P((struct mbuf *m0)); +static struct mbuf *ppp_inproc(struct ppp_softc *, struct mbuf *); +static void pppdumpm(struct mbuf *m0); /* * Some useful mbuf macros not in mbuf.h. @@ -1111,7 +1113,7 @@ bad: /* * After a change in the NPmode for some NP, move packets from the * npqueue to the send queue or the fast queue as appropriate. - * Should be called at splsoftnet. + * Should be called at spl[soft]net. */ static void ppp_requeue(sc) @@ -1170,10 +1172,7 @@ struct mbuf * ppp_dequeue(sc) struct ppp_softc *sc; { - struct mbuf *m; -#ifdef VJC - struct mbuf *mp; -#endif + struct mbuf *m, *mp; u_char *cp; int address, control, protocol; @@ -1565,6 +1564,9 @@ ppp_inproc(sc, m) goto bad; /* lose if big headers and no clusters */ } } +#ifdef MAC + mac_create_mbuf_from_mbuf(m, mp); +#endif cp = mtod(mp, u_char *); cp[0] = adrs; cp[1] = ctrl; |