sssemil / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
1 stars 0 forks source link

DHCP not working #1051

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Which device (manufacturer, type)?
motorola triumph
Which firmware is installed?
stock 2.2
What version of wireless tether are you using?
3.1 beta 2, 3.0 pre 14
What steps will reproduce the problem?
1.Start tethering
2.Connect by ad-hoc from client
3.Wireshark capturing packets

What is the expected output? What do you see instead?
The phone (WiFi tether)Responds to DHCP Discover
No DHCP packets sent from the phone.

Please provide any additional information below.
If I manually set ip address at client to 192.168.2.x and gateway 
192.168.2.254, and a public dns server. I can use non-http applications like 
FTP, or HTTP based google services(include youtube), but for any other site I 
get too much TCP slow respond/reset.

Original issue reported on code.google.com by legendm...@gmail.com on 21 Jul 2011 at 9:11

GoogleCodeExporter commented 8 years ago
Is a process called "dnsmasq" running after tethering-start?

Original comment by harald....@gmail.com on 22 Jul 2011 at 3:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes. 
root      22339 1     708    336   00000000 6fd0e6ac R 
/data/data/com.googlecode.android.wifi.tether
/bin/dnsmasq
dnsmasq seems to be running, am i missing some kernel-modules?

# ps
ps
USER     PID   PPID  VSIZE  RSS     WCHAN    PC         NAME
root      1     0     276    264   80168c10 0000eccc S /init
root      2     0     0      0     800f3e24 00000000 S kthreadd
root      3     2     0      0     800e030c 00000000 S ksoftirqd/0
root      4     2     0      0     800f0434 00000000 S events/0
root      5     2     0      0     800f0434 00000000 S khelper
root      6     2     0      0     800fad2c 00000000 S async/mgr
root      7     2     0      0     800f0434 00000000 S suspend
root      8     2     0      0     80116bac 00000000 S irq/155-pm8058-
root      9     2     0      0     80142948 00000000 S sync_supers
root      10    2     0      0     801433ac 00000000 S bdi-default
root      11    2     0      0     800f0434 00000000 S kblockd/0
root      12    2     0      0     800f0434 00000000 S ksuspend_usbd
root      13    2     0      0     803134d4 00000000 S khubd
root      14    2     0      0     800f0434 00000000 S kmmcd
root      15    2     0      0     800f0434 00000000 S bluetooth
root      16    2     0      0     800f0434 00000000 S rpciod/0
root      17    2     0      0     800f0434 00000000 S modem_notifier
root      18    2     0      0     800f0434 00000000 S qmi
root      19    2     0      0     800f0434 00000000 S nmea
root      20    2     0      0     800f0434 00000000 S rpcrouter
root      21    2     0      0     8005b8d0 00000000 D rpcrotuer_smd_x
root      22    2     0      0     800f0434 00000000 S dalrpc_rcv_DAL0
root      23    2     0      0     8005fa84 00000000 S krpcserversd
root      24    2     0      0     8005dc34 00000000 D krmt_storagecln
root      25    2     0      0     80061314 00000000 D krmt_storagecln
root      26    2     0      0     8013a8dc 00000000 S kswapd0
root      27    2     0      0     800f0434 00000000 S aio/0
root      28    2     0      0     800f0434 00000000 S nfsiod
root      29    2     0      0     800f0434 00000000 S crypto/0
root      39    2     0      0     800f0434 00000000 S mdp_dma_wq
root      40    2     0      0     800f0434 00000000 S mdp_vsync_wq
root      41    2     0      0     800f0434 00000000 S mdp_pipe_ctrl_w
root      42    2     0      0     800f0434 00000000 S vidc_worker_que
root      43    2     0      0     800f0434 00000000 S vidc_timer_wq
root      44    2     0      0     800f0434 00000000 S diag_wq
root      45    2     0      0     800f0434 00000000 S scsi_tgtd/0
root      46    2     0      0     802ebb74 00000000 S mtdblockd
root      53    2     0      0     800f0434 00000000 S k_otg
root      54    2     0      0     803479e0 00000000 S usb_mass_storag
root      55    2     0      0     800f0434 00000000 S k_gserial
root      56    2     0      0     800f0434 00000000 S k_rmnet_work
root      57    2     0      0     800f0434 00000000 S headset_hook
root      58    2     0      0     800f0434 00000000 S fwupdate_wq
root      59    2     0      0     8005dc34 00000000 D krtcclntd
root      60    2     0      0     80061314 00000000 D krtcclntcbd
root      61    2     0      0     80399940 00000000 D mt9p111_flashle
root      62    2     0      0     8005dc34 00000000 D kbatteryclntd
root      63    2     0      0     80061314 00000000 D kbatteryclntcbd
root      64    2     0      0     800f0434 00000000 S kstriped
root      65    2     0      0     800f0434 00000000 S kondemand/0
root      66    2     0      0     800f0434 00000000 S kconservative/0
root      67    2     0      0     80116bac 00000000 S irq/270-msm-sdc
root      68    2     0      0     800f0434 00000000 S switch_gpio
root      69    2     0      0     800f0434 00000000 S usbhid_resumer
root      70    2     0      0     800f0434 00000000 S binder
root      71    2     0      0     805087c8 00000000 S krfcommd
root      72    2     0      0     8006b76c 00000000 D voice
root      73    2     0      0     800b5af4 00000000 S acdb_cb_thread
root      74    2     0      0     8005dc34 00000000 D khsclntd
root      75    2     0      0     803ce22c 00000000 S mmcqd
root      76    2     0      0     801ca904 00000000 S kjournald
root      79    2     0      0     803ce22c 00000000 S mmcqd
root      80    2     0      0     801ca904 00000000 S kjournald
root      81    2     0      0     801ca904 00000000 S kjournald
root      82    2     0      0     801ca904 00000000 S kjournald
root      85    2     0      0     801ca904 00000000 S kjournald
system    87    1     700    276   803e14b4 6fd0dbbc S 
/system/bin/servicemanager
root      88    1     3636   424   ffffffff 6fd0e22c S /system/bin/vold
root      89    1     3960   648   ffffffff 6fd0e22c S /system/bin/netd
root      90    1     588    276   804108c8 6fd0e54c S /system/bin/debuggerd
radio     91    1     8044   508   ffffffff 6fd0dce4 S /system/bin/qmuxd
radio     92    1     19152  2488  ffffffff ffff0520 S /system/bin/rild
root      94    1     146784 18108 80168c10 6fd0dce4 S zygote
media     95    1     36488  4224  ffffffff 6fd0dbbc S /system/bin/mediaserver
bluetooth 96    1     1160   356   80168c10 ffff0520 S /system/bin/dbus-daemon
root      97    1     720    340   804adb6c 6fd0d91c S /system/bin/installd
system    98    1     784    288   804108c8 6fd0e54c S /system/bin/fm_server
system    99    1     772    244   804108c8 6fd0e54c S /system/bin/runit
compass   100   1     712    288   80355d74 6fd0d91c S /system/bin/geomagneticd
compass   101   1     2744   292   ffffffff 6fd0eb8c S /system/bin/orientationd
compass   102   1     2744   300   ffffffff 6fd0eb8c S /system/bin/proximityd
compass   103   1     2748   316   ffffffff 6fd0eb8c S /system/bin/lightd
keystore  104   1     1512   264   804108c8 6fd0e54c S /system/bin/keystore
system    105   1     560    252   8010e8b4 6fd0d91c S /system/bin/logfile
root      107   1     2020   492   ffffffff 6fd0d91c S /system/bin/port-bridge
root      108   1     5348   620   ffffffff 6fd0eb8c S /system/bin/netmgrd
root      111   1     5808   292   ffffffff 6fd0dbbc S /system/bin/rmt_storage
root      112   1     4672   768   ffffffff 6fd0dbbc S /system/bin/hdmid
system    158   1     1896   496   ffffffff 6fd0dce4 S /system/bin/logcat
system    159   1     1896   496   ffffffff 6fd0dce4 S /system/bin/logcat
system    160   1     1868   448   ffffffff 6fd0dce4 S /system/bin/logcat
system    161   1     1892   488   ffffffff 6fd0dce4 S /system/bin/logcat
root      185   2     0      0     80178c20 00000000 S flush-179:0
system    214   94    386324 57292 ffffffff 6fd0dbbc S system_server
radio     296   94    232520 23140 ffffffff 6fd0eb8c S com.android.phone
app_79    297   94    286948 43384 ffffffff 6fd0eb8c S com.android.launcher
system    301   94    218512 24364 ffffffff 6fd0eb8c S com.android.settings
app_19    342   94    242508 23544 ffffffff 6fd0eb8c S com.google.process.gapps
root      384   2     0      0     802c35f0 00000000 S loop1
system    386   1     636    248   80161874 6fd0d91c S /system/bin/sh
system    506   1     3604   800   ffffffff 6fd0e22c S /system/bin/icdr-auto
app_76    721   94    231908 27732 ffffffff 6fd0eb8c S 
com.google.android.apps.maps:LocationFriendSe
rvice
shell     3450  1     3316   204   ffffffff 000100f4 S /sbin/adbd
root      3977  1     632    240   800dd0f0 6fd0e82c S sh
root      3979  3977  572    284   8046a66c 6fd0e54c S 
/data/data/com.estrongs.android.pop/lib/libes
tool.so
app_76    7320  94    238924 25588 ffffffff 6fd0eb8c S 
com.google.android.apps.maps
app_70    7875  94    205200 16012 ffffffff 6fd0eb8c S 
com.android.providers.calendar
app_93    16514 94    221312 27100 ffffffff 6fd0eb8c S com.touchtype.swiftkey
app_33    16930 94    202476 14736 ffffffff 6fd0eb8c S com.android.voicedialer
app_100   17432 94    213108 20560 ffffffff 6fd0eb8c S com.jim2
app_64    21668 94    245192 35036 ffffffff 6fd0eb8c S com.google.android.gm
app_81    22060 94    202736 15764 ffffffff 6fd0eb8c S net.androgames.move2sd
app_84    22069 94    203648 18652 ffffffff 6fd0eb8c S com.noshufou.android.su
app_68    22083 94    211788 19588 ffffffff 6fd0eb8c S com.android.vending
app_92    22092 94    214012 21396 ffffffff 6fd0eb8c S com.amazon.venezia
app_23    22105 94    206216 17084 ffffffff 6fd0eb8c S 
com.google.android.googlequicksearchbox
app_76    22120 94    230640 26912 ffffffff 6fd0eb8c S 
com.google.android.apps.maps:NetworkLocationS
ervice
app_94    22141 94    222900 25536 ffffffff 6fd0eb8c S com.google.android.music
app_47    22151 94    205088 17832 ffffffff 6fd0eb8c S android.process.media
app_54    22226 94    202352 14628 ffffffff 6fd0eb8c S com.svox.pico
app_85    22237 94    208164 21200 ffffffff 6fd0eb8c S 
com.googlecode.android.wifi.tether
root      22274 2     0      0     7f010060 00000000 S WD_Thread
root      22275 2     0      0     803cc708 00000000 S ksdioirqd/mmc1
root      22276 2     0      0     7f010858 00000000 S MC_Thread
root      22277 2     0      0     7f010388 00000000 S TX_Thread
root      22339 1     708    336   00000000 6fd0e6ac R 
/data/data/com.googlecode.android.wifi.tether
/bin/dnsmasq
system    22424 386   780    308   8010ff88 6fd0d91c S cat
app_101   22432 94    227776 27740 ffffffff 6fd0eb8c S org.connectbot
app_101   22476 22432 632    324   800dd0f0 6fd0e82c S /system/bin/sh
root      22499 22476 632    324   800dd0f0 6fd0e82c S sh
root      22526 22499 3536   2152  ffffffff 6fd0d93c S logcat
app_32    22598 94    212220 21444 ffffffff 6fd0eb8c S android.process.acore
app_10    22610 94    234136 28328 ffffffff 6fd0eb8c S com.facebook.katana
shell     22734 3450  632    328   800dd0f0 6fd0e82c S /system/bin/sh
root      22735 22734 632    328   800dd0f0 6fd0e82c S sh
root      22739 22735 784    344   00000000 6fd0d91c R ps
#

# cat /proc/sys/net/ipv4/ip_forward
cat /proc/sys/net/ipv4/ip_forward
1

# lsmod
lsmod
libra 1653378 0 - Live 0x7f008000
librasdioif 5564 1 libra, Live 0x7f000000
#

Original comment by legendm...@gmail.com on 22 Jul 2011 at 6:36

GoogleCodeExporter commented 8 years ago
Here's the log file.
Sorry I am not sure which parts are related to tether... I just uploaded the 
entire log.

Original comment by legendm...@gmail.com on 22 Jul 2011 at 6:38