Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/net Pullup 1.13 [itojun]:



details:   https://anonhg.NetBSD.org/src/rev/6a948232ff5e
branches:  netbsd-1-5
changeset: 489761:6a948232ff5e
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Oct 17 01:06:48 2000 +0000

description:
Pullup 1.13 [itojun]:
fix operator precedence (& and &&).  do not transmit too much message
from LCP layer to NCP layer.  PR 11161.

diffstat:

 sys/net/if_spppsubr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 94a8d22f8088 -r 6a948232ff5e sys/net/if_spppsubr.c
--- a/sys/net/if_spppsubr.c     Tue Oct 17 00:59:49 2000 +0000
+++ b/sys/net/if_spppsubr.c     Tue Oct 17 01:06:48 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_spppsubr.c,v 1.10 2000/05/16 05:45:27 itojun Exp $   */
+/*     $NetBSD: if_spppsubr.c,v 1.10.4.1 2000/10/17 01:06:48 tv Exp $   */
 
 /*
  * Synchronous PPP/Cisco link level subroutines.
@@ -2531,7 +2531,7 @@
 
        /* Send Up events to all started protos. */
        for (i = 0, mask = 1; i < IDX_COUNT; i++, mask <<= 1)
-               if (sp->lcp.protos & mask && ((cps[i])->flags & CP_LCP) == 0)
+               if ((sp->lcp.protos & mask) && ((cps[i])->flags & CP_LCP) == 0)
                        (cps[i])->Up(sp);
 
        /* notify low-level driver of state change */
@@ -2565,7 +2565,7 @@
         * describes it.
         */
        for (i = 0, mask = 1; i < IDX_COUNT; i++, mask <<= 1)
-               if (sp->lcp.protos & mask && ((cps[i])->flags & CP_LCP) == 0) {
+               if ((sp->lcp.protos & mask) && ((cps[i])->flags & CP_LCP) == 0) {
                        (cps[i])->Down(sp);
                        (cps[i])->Close(sp);
                }
@@ -2659,7 +2659,7 @@
        int i, mask;
 
        for (i = 0, mask = 1; i < IDX_COUNT; i++, mask <<= 1)
-               if (sp->lcp.protos & mask && (cps[i])->flags & CP_NCP)
+               if ((sp->lcp.protos & mask) && (cps[i])->flags & CP_NCP)
                        return 1;
        return 0;
 }
@@ -5064,7 +5064,7 @@
 
        /* Send Up events to all NCPs. */
        for (i = 0, mask = 1; i < IDX_COUNT; i++, mask <<= 1)
-               if (sp->lcp.protos & mask && ((cps[i])->flags & CP_NCP))
+               if ((sp->lcp.protos & mask) && ((cps[i])->flags & CP_NCP))
                        (cps[i])->Up(sp);
 
        /* if no NCP is starting, all this was in vain, close down */



Home | Main Index | Thread Index | Old Index