Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
426 views
in Technique[技术] by (71.8m points)

ipv6 - What is ipv6proxy in android emulator used for?

According to android source code for emualator (generic/goldfish), a native executable named ipv6proxy is provided for forwarding traffic between wlan1/radio0-peer and eth0.

The network architecture is described in device/generic/goldfish/wifi/init.wifi.sh at https://android-opengrok.bangnimang.net/android-9.0.0_r61/xref/device/generic/goldfish/wifi/init.wifi.sh?r=23c07326.

#          main namespace                     router namespace
#       -------       ----------   |    ---------------
#       | ril |<----->| radio0 |<--+--->| radio0-peer |<-------+
#       -------       ----------   |    ---------------        |
#                                  |            ^              |
#                                  |            |              |
#                                  |            v              v
#                                  |      *************     --------
#                                  |      * ipv6proxy *<--->| eth0 |<--+
#                                  |      *************     --------   |
#                                  |            ^              ^       |
#                                  |            |              |       |
#                                  |            v              |       |
# ------------------   ---------   |        ---------          |       |
# | wpa_supplicant |<->| wlan0 |<--+------->| wlan1 |<---------+       |
# ------------------   ---------   |        ---------                  |
#                                  |         ^     ^                   |
#                                  |         |     |                   v
#                                  |         v     v                --------
#                                  | ***********  ***********       | host |
#                                  | * hostapd *  * dnsmasq *       --------
#                                  | ***********  ***********

According to this script, the ipv4 traffic is NAT forwarded by iptables, but ipv6 is forwarded by ipv6proxy in userspace.

Why?

The module ipv6proxy is located at https://android-opengrok.bangnimang.net/android-9.0.0_r61/xref/device/generic/goldfish/wifi/ipv6proxy/. Command line to start it is ipv6proxy -o eth0 -i wlan1,radio0-peer.

question from:https://stackoverflow.com/questions/65878681/what-is-ipv6proxy-in-android-emulator-used-for

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...