2
0

fuzz.c 420 B

1234567891011121314151617181920212223242526
  1. #include "nmrpd.h"
  2. int main(int argc, char** argv)
  3. {
  4. verbosity = 2;
  5. struct nmrpd_args args = {
  6. .rx_timeout = 60,
  7. .ul_timeout = 60,
  8. .ipaddr = "10.10.10.10",
  9. .ipmask = "255.255.255.0",
  10. .mac = "ff:ff:ff:ff:ff:ff",
  11. .op = NMRP_UPLOAD_FW,
  12. .port = 69,
  13. };
  14. #ifdef NMRPFLASH_FUZZ_TFTP
  15. if (argc != 2) {
  16. return 1;
  17. }
  18. args.file_local = argv[1];
  19. return tftp_put(&args);
  20. #else
  21. return nmrp_do(&args);
  22. #endif
  23. }