Switch to unified view
a/libupnpp/getsyshwaddr.c | b/libupnpp/getsyshwaddr.c | ||
---|---|---|---|
... |
... |
||
54 | #endif |
54 | #endif |
55 | #endif |
55 | #endif |
56 | 56 | ||
57 | #include "getsyshwaddr.h" |
57 | #include "getsyshwaddr.h" |
58 | 58 | ||
59 | #ifdef __cplusplus |
||
60 | extern "C" { |
||
61 | #endif |
||
62 | |||
59 | #define MACADDR_IS_ZERO(x) \ |
63 | #define MACADDR_IS_ZERO(x) \ |
60 | ((x[0] == 0x00) && \ |
64 | ((x[0] == 0x00) && \ |
61 | (x[1] == 0x00) && \ |
65 | (x[1] == 0x00) && \ |
62 | (x[2] == 0x00) && \ |
66 | (x[2] == 0x00) && \ |
63 | (x[3] == 0x00) && \ |
67 | (x[3] == 0x00) && \ |
... |
... |
||
184 | memmove(buf, mac, 6); |
188 | memmove(buf, mac, 6); |
185 | } |
189 | } |
186 | return ret; |
190 | return ret; |
187 | } |
191 | } |
188 | 192 | ||
193 | #ifdef __cplusplus |
||
194 | } |
||
195 | #endif |
||
196 | |||
189 | /* Local Variables: */ |
197 | /* Local Variables: */ |
190 | /* mode: c++ */ |
198 | /* mode: c++ */ |
191 | /* c-basic-offset: 4 */ |
199 | /* c-basic-offset: 4 */ |
192 | /* tab-width: 4 */ |
200 | /* tab-width: 4 */ |
193 | /* indent-tabs-mode: t */ |
201 | /* indent-tabs-mode: t */ |