diff options
author | Rocco Yue <rocco.yue@mediatek.com> | 2020-10-20 11:18:21 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-10-20 11:18:21 +0000 |
commit | 598be4f9d49186c25971d78b1e767b41d86702b7 (patch) | |
tree | 502f105f02f56b2d69eb282a074b6eecdc9f405f | |
parent | dac409f6014f58b20cc433e725f573330fd318a2 (diff) | |
parent | af4ed3d356abb8f204770469bcee1c10ef8ad05f (diff) | |
download | android-clat-598be4f9d49186c25971d78b1e767b41d86702b7.tar.gz |
Fix some build errors when CLAT_DEBUG is set to 1 am: df33869985 am: ad7caf81ea am: af4ed3d356
Original change: https://android-review.googlesource.com/c/platform/external/android-clat/+/1465871
Change-Id: I38479a640f000cbd73b28eb9dfb1591af29e8a41
-rw-r--r-- | dump.c | 2 | ||||
-rw-r--r-- | dump.h | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -21,6 +21,7 @@ #include <arpa/inet.h> #include <linux/icmp.h> +#include <linux/if_tun.h> #include <netinet/icmp6.h> #include <netinet/in.h> #include <netinet/ip.h> @@ -33,6 +34,7 @@ #include "clatd.h" #include "debug.h" +#include "dump.h" #include "logging.h" #if CLAT_DEBUG @@ -31,14 +31,14 @@ void dump_icmp(struct icmphdr *icmp); void dump_udp(const struct udphdr *udp, const struct iphdr *ip, const uint8_t *payload, size_t payload_size); void dump_tcp(const struct tcphdr *tcp, const struct iphdr *ip, const uint8_t *payload, - size_t payload_size, const char *options, size_t options_size); + size_t payload_size, const uint8_t *options, size_t options_size); void dump_ip6(struct ip6_hdr *header); void dump_icmp6(struct icmp6_hdr *icmp6); void dump_udp6(const struct udphdr *udp, const struct ip6_hdr *ip6, const uint8_t *payload, size_t payload_size); void dump_tcp6(const struct tcphdr *tcp, const struct ip6_hdr *ip6, const uint8_t *payload, - size_t payload_size, const char *options, size_t options_size); + size_t payload_size, const uint8_t *options, size_t options_size); void logcat_hexdump(const char *info, const uint8_t *data, size_t len); void dump_iovec(const struct iovec *iov, int iov_len); |