diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-05-01 12:03:39 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2019-05-01 12:26:25 -0700 |
commit | bae04482631df031457551718b5782d8d93f714d (patch) | |
tree | e1ba9fd0d7d9040d0e2d8a34d0cdc9454fd8e04e /utils/device-observatory/patches | |
parent | 4072e78dbe00f9690f94e3c0388ae607cb0b37b1 (diff) |
device-observatory: Fix compilation with uClibc-ng
Two protocol definitions are missing. Took values from Musl.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/device-observatory/patches')
-rw-r--r-- | utils/device-observatory/patches/010-uClibc-ng.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/utils/device-observatory/patches/010-uClibc-ng.patch b/utils/device-observatory/patches/010-uClibc-ng.patch new file mode 100644 index 000000000..077a971b3 --- /dev/null +++ b/utils/device-observatory/patches/010-uClibc-ng.patch @@ -0,0 +1,22 @@ +--- a/src/parse_ether.c ++++ b/src/parse_ether.c +@@ -21,10 +21,18 @@ + #include "parse_ether.h" + + /* tcpdump header (ether.h) defines ETHER_HDRLEN) */ +-#ifndef ETHER_HDRLEN ++#ifndef ETHER_HDRLEN + #define ETHER_HDRLEN 14 + #endif + ++/* uClibc-ng compatibility */ ++#ifndef IPPROTO_BEETPH ++#define IPPROTO_BEETPH 94 ++#endif ++ ++#ifndef IPPROTO_MPLS ++#define IPPROTO_MPLS 137 ++#endif + + const char *ip_protcol_str(int p) + { |