diff options
| author | Roy Marples <roy@marples.name> | 2007-11-09 16:08:49 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-11-09 16:08:49 +0000 |
| commit | b0e24b8d2184d574f385896537485a8a6a317687 (patch) | |
| tree | e35a893e6c69ca86c0a5e3fb4e106b031af5fc04 /interface.h | |
| parent | 836e73524da9836d53be15c276df462788dd5a6a (diff) | |
| download | dhcpcd-b0e24b8d2184d574f385896537485a8a6a317687.tar.xz | |
We should not use ntohl in IN_LOCAL define, instead where we use it.
Diffstat (limited to 'interface.h')
| -rw-r--r-- | interface.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/interface.h b/interface.h index f49afd89..3115452e 100644 --- a/interface.h +++ b/interface.h @@ -45,9 +45,9 @@ * 192.168/16 */ #ifndef IN_PRIVATE -# define IN_PRIVATE(addr) (((ntohl (addr) & IN_CLASSA_NET) == 0x0a000000) || \ - ((ntohl (addr) & 0xfff00000) == 0xac100000) || \ - ((ntohl (addr) & IN_CLASSB_NET) == 0xc0a80000)) +# define IN_PRIVATE(addr) (((addr & IN_CLASSA_NET) == 0x0a000000) || \ + ((addr & 0xfff00000) == 0xac100000) || \ + ((addr & IN_CLASSB_NET) == 0xc0a80000)) #endif #define LINKLOCAL_ADDR 0xa9fe0000 @@ -55,7 +55,7 @@ #define LINKLOCAL_BRDC 0xa9feffff #ifndef IN_LINKLOCAL -# define IN_LINKLOCAL(addr) ((ntohl (addr) & IN_CLASSB_NET) == LINKLOCAL_ADDR) +# define IN_LINKLOCAL(addr) ((addr & IN_CLASSB_NET) == LINKLOCAL_ADDR) #endif typedef struct route_t |
