Hi All did anyone worked on this dhcpcd/ faced this issue?
if i added in init.rc file setprop dhcp.eth0.ipaddress "" setprop dhcp.eth0.mask "" setprop dhcp,eth0.server "" setprop dhcp.eth0.leasetime "" then it is initializing the these, but does not initialize dns1 and dns2? Please let me know why this behavior? Guru On Aug 17, 10:19 am, guru <guru.nav...@gmail.com> wrote: > Hi All, > > When I enable the wifi in froyo and connect to AP, it is trying to get > IP address, but output at wifiStateTraker level shows that many fields > are 0. > > V/WifiStateTracker( 1029): IP configuration: ipaddr 0.0.0.0 gateway > 0.0.0.0 netmask 0.0.0.0 dns1 10.50.201.5 dns2 125.22.47.125 DHCP > server 0.0.0.0 lease 1111001036 seconds > > from dhcpcd logs, it shows that it is setting above properties(BELOW). > But if i do getprop at adb shell, it only shows > > dhcp.eth0.dns2 125.22.47.125 > dhcp.eth0.dns3 202.56.250.5 > > but not others. > > I am new to this dhcpcd, please let me know where I am going wrong in > this. Any configuration issue here? > > I//system/bin/dhcpcd( 1200): + count=2 > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.dns2 125.22.47.125 > I//system/bin/dhcpcd( 1200): + count=3 > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.dns3 202.56.250.5 > D/dalvikvm( 795): GC_EXPLICIT freed 2 objects / 48 bytes in 121ms > I//system/bin/dhcpcd( 1200): + count=4 > I//system/bin/dhcpcd( 1200): + ls /system/etc/dhcpcd/dhcpcd-hooks/95- > configured > I//system/bin/dhcpcd( 1200): + . /system/etc/dhcpcd/dhcpcd-hooks/95- > configured > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.reason BOUND > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.ipaddress > 10.50.200.200 > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.gateway 10.50.200.1 > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.mask 255.255.255.0 > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.leasetime 86400 > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.server 10.50.200.5 > E/dalvikvm( 1246): could not disable core file generation for pid > 1246, errno=1 > I/ActivityManager( 1029): Start proc com.android.deskclock for > broadcast com.android.deskclock/.AlarmInitReceiver: pid=1246 uid=10007 > gids={} > I//system/bin/dhcpcd( 1200): + setprop dhcp.eth0.result ok > I//system/bin/dhcpcd( 1200): + ls /system/etc/dhcpcd/dhcpcd.exit-hook > I//system/bin/dhcpcd( 1200): + set +x > I//system/bin/dhcpcd( 1200): eth0: renew in 43200 seconds > E/ ( 1029): After setting the system property > E/ ( 1029): ipaddr 1234386276 > E/ ( 1029): gateway 1234386272 > E/ ( 1029): mask 1234386268 > E/ ( 1029): dns1 1234386264 > E/ ( 1029): dns2 1234386260 > E/ ( 1029): server 1234386256 > E/ ( 1029): lease 1234386252 > I/ActivityThread( 1246): Publishing provider com.android.deskclock: > com.android.deskclock.AlarmProvider > E/dalvikvm( 1259): could not disable core file generation for pid > 1259, errno=1 > I/ActivityManager( 1029): Start proc com.android.email for broadcast > com.android.email/com.android.exchange.BootReceiver: pid=1259 > uid=10006 gids={3003, 1015} > D/wpa_supplicant( 1135): EAPOL: startWhen --> 0 > I/ActivityThread( 1259): Publishing provider > com.android.email.provider: com.android.email.provider.EmailProvider > E/dalvikvm( 1266): could not disable core file generation for pid > 1266, errno=1 > I/ActivityManager( 1029): Start proc android.process.media for content > provider com.android.providers.downloads/.DownloadProvider: pid=1266 > uid=10001 gids={1015, 2001, 3003} > I/ActivityThread( 1259): Publishing provider > com.android.email.attachmentprovider: > com.android.email.provider.AttachmentProvider > I/ActivityThread( 1259): Publishing provider > com.android.exchange.provider: > com.android.exchange.provider.ExchangeProvider > E/ ( 1029): Guru: fill_ip_info IN > E/ ( 1029): **** > E/ ( 1029): **** > E/ ( 1029): ****10.50.201.5 > E/ ( 1029): ****125.22.47.125 > E/ ( 1029): **** > E/ ( 1029): Guru: fill_ip_info OUT > V/WifiStateTracker( 1029): DhcpHandler: DHCP request succeeded > D/WifiHW ( 1029): enter into wifi_command > D/NetworkStateTracker( 1029): setDetailed state, old =OBTAINING_IPADDR > and new state=CONNECTED > V/WifiStateTracker( 1029): IP configuration: ipaddr 0.0.0.0 gateway > 0.0.0.0 netmask 0.0.0.0 dns1 10.50.201.5 dns2 125.22.47.125 DHCP > server 0.0.0.0 lease 1111001036 seconds > > Thanks > Gururaja B O -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting