diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2013-04-10 12:24:56 +0900 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2013-04-12 13:42:58 +0900 |
commit | cd70b354eb985678175904a937085bed6094af77 (patch) | |
tree | 0a3664daec00a5a608f851a4f8e767cd5c072d3d /translate.h | |
parent | ee80ca65907d214e2483e315a1ba7f610184de03 (diff) | |
download | android_external_android-clat-cd70b354eb985678175904a937085bed6094af77.tar.gz android_external_android-clat-cd70b354eb985678175904a937085bed6094af77.tar.bz2 android_external_android-clat-cd70b354eb985678175904a937085bed6094af77.zip |
Support translating ICMP errors.
When receiving ICMPv6 messages from IPv6-only nodes, use
255.0.0.<ttl> as a fake IPv4 source address. It's better than
nothing.
Bug: 8276725
Change-Id: Iae93f75764cb9cd875af9bb5f1862a0dce2c2fa7
Diffstat (limited to 'translate.h')
-rw-r--r-- | translate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/translate.h b/translate.h index 120fecf..fded251 100644 --- a/translate.h +++ b/translate.h @@ -27,6 +27,7 @@ // specific parts of the packet. The packet_* functions operate on all the packet segments past a // given position. enum clat_packet_index { CLAT_POS_TUNHDR, CLAT_POS_IPHDR, CLAT_POS_TRANSPORTHDR, + CLAT_POS_ICMPERR_IPHDR, CLAT_POS_ICMPERR_TRANSPORTHDR, CLAT_POS_PAYLOAD, CLAT_POS_MAX }; typedef struct iovec clat_packet[CLAT_POS_MAX]; |