Scripts/programs to test FreeBSD ethernet interfaces.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
523 B

  1. #!/usr/bin/awk
  2. BEGIN {
  3. print "#include <sys/types.h>"
  4. print "#include <sys/ioctl.h>"
  5. print "#include <sys/time.h>"
  6. print "#include <sys/socket.h>"
  7. print "#include <net/if.h>"
  8. print "#include <net/route.h>"
  9. print "#include <netinet/in.h>"
  10. print "#include <netinet/ip_mroute.h>"
  11. print "#include <sys/sockio.h>"
  12. print "#include <stdio.h>"
  13. print "int"
  14. print "main()"
  15. print "{"
  16. }
  17. $1 == "#define" && $3 ~ "^_IO[WR]" {
  18. printf("\tprintf(\"%s = %%ld\\n\", %s);\n", $2, $2)
  19. }
  20. END {
  21. print " return 0;"
  22. print "}"
  23. }