patch-pppd_plugins_rp-pppoe_pppoe-discovery_c 591 B

12345678910111213141516171819202122
  1. --- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/pppoe-discovery.c 2009-11-16 23:26:07.000000000 +0100
  2. +++ ppp-2.4.5/pppd/plugins/rp-pppoe/pppoe-discovery.c 2014-03-17 16:32:55.000000000 +0100
  3. @@ -27,10 +27,6 @@
  4. #include <linux/if_packet.h>
  5. #endif
  6. -#ifdef HAVE_NET_ETHERNET_H
  7. -#include <net/ethernet.h>
  8. -#endif
  9. -
  10. #ifdef HAVE_ASM_TYPES_H
  11. #include <asm/types.h>
  12. #endif
  13. @@ -55,6 +51,8 @@ void die(int status)
  14. exit(status);
  15. }
  16. +#define error(x...) fprintf(stderr, x)
  17. +
  18. /* Initialize frame types to RFC 2516 values. Some broken peers apparently
  19. use different frame types... sigh... */