Add support for interface aliases on Windows
[oweals/nmrpflash.git] / nmrp.c
diff --git a/nmrp.c b/nmrp.c
index 7cb36896d9ca7621e55be044273dc4734982c56a..bdbb6feb83a687cfae2b7ee4108f93ec6b13d640 100644 (file)
--- a/nmrp.c
+++ b/nmrp.c
@@ -89,10 +89,10 @@ struct nmrp_msg {
 } PACKED;
 
 struct eth_hdr {
-       uint8_t ether_shost[8];
-       uint8_t ether_dhost[8];
+       uint8_t ether_dhost[6];
+       uint8_t ether_shost[6];
        uint16_t ether_type;
-};
+} PACKED;
 
 struct nmrp_pkt {
        struct eth_hdr eh;
@@ -341,7 +341,7 @@ int nmrp_do(struct nmrpd_args *args)
        beg = time(NULL);
 
        while (1) {
-               printf("\rAdvertising NMRP server on %s ... %c", args->intf,
+               printf("\rAdvertising NMRP server on interface ... %c",
                                spinner[i]);
                fflush(stdout);
                i = (i + 1) & 3;