Changeset 1916 for trunk/src/tcpedit/plugins/dlt_en10mb
- Timestamp:
- 10/24/07 09:43:03 (15 months ago)
- Files:
-
- 1 modified
-
trunk/src/tcpedit/plugins/dlt_en10mb/en10mb.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcpedit/plugins/dlt_en10mb/en10mb.c
r1911 r1916 304 304 305 305 /* get the L3 protocol type & L2 len*/ 306 switch ( eth->ether_type) {307 case htons(ETHERTYPE_VLAN):306 switch (ntohs(eth->ether_type)) { 307 case ETHERTYPE_VLAN: 308 308 vlan = (struct tcpr_802_1q_hdr *)packet; 309 309 ctx->proto = vlan->vlan_len; … … 518 518 519 519 eth = (struct tcpr_ethernet_hdr *)packet; 520 switch ( eth->ether_type) {521 case htons(ETHERTYPE_VLAN):520 switch (ntohs(eth->ether_type)) { 521 case ETHERTYPE_VLAN: 522 522 vlan = (struct tcpr_802_1q_hdr *)packet; 523 523 return vlan->vlan_len; … … 609 609 610 610 eth = (struct tcpr_ethernet_hdr *)packet; 611 switch ( eth->ether_type) {612 case htons(ETHERTYPE_VLAN):611 switch (ntohs(eth->ether_type)) { 612 case ETHERTYPE_VLAN: 613 613 return 18; 614 614 break;
