Ignore:
Timestamp:
11/27/08 17:42:40 (13 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:
db161c0
Parents:
1b0fb63
Message:

Start using the TRACE_ETHERTYPE enum where possible for code clarity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_transport.c

    r871281c r1311310  
    2525
    2626        switch (ethertype) {
    27                 case 0x0800: /* IPv4 */
     27                case TRACE_ETHERTYPE_IP: /* IPv4 */
    2828                        transport=trace_get_payload_from_ip(
    2929                                (libtrace_ip_t*)transport, proto, remaining);
     
    3434                        }
    3535                        return transport;
    36                 case 0x86DD: /* IPv6 */
     36                case TRACE_ETHERTYPE_IPV6: /* IPv6 */
    3737                        return trace_get_payload_from_ip6(
    3838                                (libtrace_ip6_t*)transport, proto, remaining);
Note: See TracChangeset for help on using the changeset viewer.