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 /ipv4.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 'ipv4.c')
-rw-r--r-- | ipv4.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -31,8 +31,8 @@ * len - size of ip payload * returns: the highest position in the output clat_packet that's filled in */ -int icmp_packet(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t checksum, - size_t len) { +int icmp_packet(clat_packet out, clat_packet_index pos, const struct icmphdr *icmp, + uint32_t checksum, size_t len) { const uint8_t *payload; size_t payload_size; @@ -54,7 +54,7 @@ int icmp_packet(clat_packet out, int pos, const struct icmphdr *icmp, uint32_t c * len - size of packet * returns: the highest position in the output clat_packet that's filled in */ -int ipv4_packet(clat_packet out, int pos, const uint8_t *packet, size_t len) { +int ipv4_packet(clat_packet out, clat_packet_index pos, const uint8_t *packet, size_t len) { const struct iphdr *header = (struct iphdr *) packet; struct ip6_hdr *ip6_targ = (struct ip6_hdr *) out[pos].iov_base; struct ip6_frag *frag_hdr; |