Show netmask as /%d
[oweals/nmrpflash.git] / nmrp.c
diff --git a/nmrp.c b/nmrp.c
index 3f7c7b84a354160b168e2a79c36eab6309b7918f..e4fcbf1bec742d1d0c9455c768bf4fcfda5fc87c 100644 (file)
--- a/nmrp.c
+++ b/nmrp.c
@@ -541,8 +541,8 @@ int nmrp_do(struct nmrpd_args *args)
 
                                memcpy(tx.eh.ether_dhost, rx.eh.ether_shost, 6);
 
-                               printf("Sending configuration: %s, netmask %s.\n",
-                                               args->ipaddr, args->ipmask);
+                               printf("Sending configuration: %s/%d.\n",
+                                               args->ipaddr, bitcount(ipmask.s_addr));
 
                                if (ethsock_arp_add(sock, rx.eh.ether_shost, ipaddr.s_addr, &arp_undo) != 0) {
                                        goto out;