diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2014-02-25 09:27:31 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2014-02-25 14:42:22 +0900 |
commit | a4454bfda99803c287b78f8d1cd7bdc1b56065db (patch) | |
tree | cfd53ea75be3ab1de009c549e703319a4ad2473a /ipv6.c | |
parent | fcac410fa15613873a07143ccd46470b869346a3 (diff) | |
download | android_external_android-clat-a4454bfda99803c287b78f8d1cd7bdc1b56065db.tar.gz android_external_android-clat-a4454bfda99803c287b78f8d1cd7bdc1b56065db.tar.bz2 android_external_android-clat-a4454bfda99803c287b78f8d1cd7bdc1b56065db.zip |
Declare pos as clat_packet_index instead of int
Bug: 11542311
Change-Id: Id5771c9685286b70a8ad283c259c7f83662e8b76
Diffstat (limited to 'ipv6.c')
-rw-r--r-- | ipv6.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -34,7 +34,8 @@ * len - size of ip payload * returns: the highest position in the output clat_packet that's filled in */ -int icmp6_packet(clat_packet out, int pos, const struct icmp6_hdr *icmp6, size_t len) { +int icmp6_packet(clat_packet out, clat_packet_index pos, const struct icmp6_hdr *icmp6, + size_t len) { const uint8_t *payload; size_t payload_size; @@ -74,7 +75,7 @@ void log_bad_address(const char *fmt, const struct in6_addr *src, const struct i * len - size of packet * returns: the highest position in the output clat_packet that's filled in */ -int ipv6_packet(clat_packet out, int pos, const uint8_t *packet, size_t len) { +int ipv6_packet(clat_packet out, clat_packet_index pos, const uint8_t *packet, size_t len) { const struct ip6_hdr *ip6 = (struct ip6_hdr *) packet; struct iphdr *ip_targ = (struct iphdr *) out[pos].iov_base; struct ip6_frag *frag_hdr = NULL; |