Changeset 1851624


Ignore:
Timestamp:
10/31/05 15:47:37 (15 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:
deab6dc5
Parents:
010fafb
Message:

Make dest/source obvious

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_2.cc

    r950d54a r1851624  
    1212        printf(" Ethernet:");
    1313        if (len>=6)
    14                 printf(" %s",ether_ntoa((struct ether_addr*)packet));
     14                printf(" Dest: %s",ether_ntoa((struct ether_addr*)packet));
    1515        else {
    1616                printf("[|Truncated]\n");
     
    1818        }
    1919        if (len>=12)
    20                 printf(" %s",ether_ntoa((struct ether_addr*)(packet+6)));
     20                printf(" Source: %s",ether_ntoa((struct ether_addr*)(packet+6)));
    2121        else {
    2222                printf("[|Truncated]\n");
     
    2525        if (len>=14) {
    2626                uint16_t type = htons(*(uint16_t*)(packet+12));
    27                 printf(" %04x\n",type);
     27                printf(" Ethertype: %04x\n",type);
    2828                decode_next(packet+14,len-14,"eth",type);
    2929        }
Note: See TracChangeset for help on using the changeset viewer.