patch-arpcatch_h 910 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. $OpenBSD: patch-arpcatch_h,v 1.1 2001/04/20 07:53:02 reinhard Exp $
  2. --- arpcatch.h.orig Mon Aug 18 23:51:02 1997
  3. +++ arpcatch.h Tue Apr 17 16:00:13 2001
  4. @@ -5,6 +5,7 @@
  5. #include <stdio.h>
  6. #include <stdlib.h>
  7. +#include <unistd.h>
  8. #include <string.h>
  9. #include <errno.h>
  10. #include <syslog.h>
  11. @@ -12,6 +13,7 @@
  12. #include <limits.h>
  13. #include <fcntl.h>
  14. #include <assert.h>
  15. +#include <ctype.h>
  16. #include <sys/types.h>
  17. #include <sys/socket.h>
  18. #include <sys/param.h>
  19. @@ -25,8 +27,6 @@
  20. #include <net/bpf.h>
  21. #include <net/if.h>
  22. -#include <net/ethernet.h>
  23. -#include <net/if_arp.h>
  24. #include <netinet/if_ether.h>
  25. #include "list.h"
  26. @@ -76,5 +76,12 @@ int bpf_immediate(int, int);
  27. int bpf_promisc(int, int);
  28. table_t *read_config(char *);
  29. +void chop(char *);
  30. +void *NEW(const int);
  31. +u_long resolve(char *);
  32. +
  33. +int arp_send(int, u_long *, u_long *, struct ether_addr *, struct ether_addr *);
  34. +
  35. +
  36. #endif