X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fplugins%2Fpppoe%2Fpppoe.h;h=26e14f5d9f4fade2857887b4ee600e39abce00fa;hb=HEAD;hp=9c5073b08f7f0adcb5c17a205f0e522b9b9da5d7;hpb=e94a5fcb7620cf399ad1c2666b8093d6ca3df24b;p=ppp.git diff --git a/pppd/plugins/pppoe/pppoe.h b/pppd/plugins/pppoe/pppoe.h index 9c5073b..9360edd 100644 --- a/pppd/plugins/pppoe/pppoe.h +++ b/pppd/plugins/pppoe/pppoe.h @@ -13,14 +13,12 @@ * ***********************************************************************/ -#include "config.h" - #include /* For FILE */ #include /* For pid_t */ #include #include -#include "pppd/pppd.h" /* For error */ +#include /* For error */ /* How do we access raw Ethernet devices? */ #undef USE_LINUX_PACKET @@ -324,3 +322,10 @@ do {\ #define NOT_UNICAST(e) ((e[0] & 0x01) != 0) #define BROADCAST(e) ((e[0] & e[1] & e[2] & e[3] & e[4] & e[5]) == 0xFF) #define NOT_BROADCAST(e) ((e[0] & e[1] & e[2] & e[3] & e[4] & e[5]) != 0xFF) + +#ifndef MIN +#define MIN(a, b) ((a) < (b)? (a): (b)) +#endif +#ifndef MAX +#define MAX(a, b) ((a) > (b)? (a): (b)) +#endif