Changeset acb0d01 for lib/protocols.c


Ignore:
Timestamp:
03/26/07 14:00:11 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
d644cf0
Parents:
38f9537
Message:

incorrect byteordering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols.c

    rbe22b51 racb0d01  
    219219
    220220        if (type) {
    221                 switch(ppp->protocol) {
    222                         case 0x0021: *type = ntohs(0x0800);
    223                 }
    224         }
     221                switch(ntohs(ppp->protocol)) {
     222                        case 0x0021: *type = 0x0800; break;
     223                }
     224        }
     225
    225226
    226227        return (void*)((char *)ppp+sizeof(*ppp));
Note: See TracChangeset for help on using the changeset viewer.