X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=iftop.c;h=59857a5dde8c7921ac2814421f046b6abc23d0ae;hb=refs%2Fheads%2Fpps-accounting;hp=562a45bd33b719b9a5b77e85fa3001748c2c558a;hpb=05a5759674e8e7124984579c67b7bea40b8e3352;p=iftop.git diff --git a/iftop.c b/iftop.c index 562a45b..59857a5 100644 --- a/iftop.c +++ b/iftop.c @@ -706,7 +706,6 @@ char *set_filter_code(const char *filter) { void packet_init() { char errbuf[PCAP_ERRBUF_SIZE]; char *m; - int i; int dlt; int result; @@ -737,10 +736,7 @@ void packet_init() { } if(have_hw_addr) { - fprintf(stderr, "MAC address is:"); - for (i = 0; i < 6; ++i) - fprintf(stderr, "%c%02x", i ? ':' : ' ', (unsigned int)if_hw_addr[i]); - fprintf(stderr, "\n"); + fprintf(stderr, "MAC address is: %s\n", ether_ntoa(if_hw_addr)); } // exit(0);