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 | |
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')
-rw-r--r-- | cpukit/libnetworking/net/if_ppp.c | 26 | ||||
-rw-r--r-- | cpukit/libnetworking/net/if_pppvar.h | 2 |
2 files changed, 15 insertions, 13 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; diff --git a/cpukit/libnetworking/net/if_pppvar.h b/cpukit/libnetworking/net/if_pppvar.h index d657da50e0..aa109b855b 100644 --- a/cpukit/libnetworking/net/if_pppvar.h +++ b/cpukit/libnetworking/net/if_pppvar.h @@ -94,9 +94,9 @@ struct ppp_softc { char *sc_mp; /* ptr to next char in input mbuf */ short sc_ilen; /* length of input packet so far */ u_short sc_fcs; /* FCS so far (input) */ + u_short sc_outfcs; /* FCS so far for output packet */ u_char sc_rawin[16]; /* chars as received */ int sc_rawin_count; /* # in sc_rawin */ - u_short sc_outfcs; /* FCS so far for output packet */ struct ifqueue sc_freeq; /* free packets */ short sc_outoff; /* output packet byte offset */ |