Skip to content

Commit

Permalink
Set MAC env var to the address used for ARP
Browse files Browse the repository at this point in the history
  • Loading branch information
jclehner committed Jul 11, 2024
1 parent 9478aae commit a040651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nmrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ int nmrp_do(struct nmrpd_args *args)
printf("Executing '%s' ... \n", args->tftpcmd);
setenv("IP", inet_ntoa(ipaddr), 1);
setenv("PORT", lltostr(args->port, 10), 1);
setenv("MAC", mac_to_str(rx.eh.ether_shost), 1);
setenv("MAC", mac_to_str(arp_mac), 1);
setenv("NETMASK", inet_ntoa(ipmask), 1);
//setenv("FILENAME", args->file_remote ? args->file_remote : "", 1);
setenv("INTERFACE", args->intf, 1);
Expand Down

0 comments on commit a040651

Please sign in to comment.