Linux C get the default interface and its inet address without getifaddrs : "Default interface" refers to ppp0:
<pre><code>Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 wlp3s0
172.30.0.1      0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
192.168.1.0     0.0.0.0         255.255.255.0   U     100    0        0 wlp3s0</code></pre>
Which one is used  by default when I access WAN instead of LAN.
I need to run it on Android,so I can't use <code>getifaddrs</code>,because <code>ifaddrs.h</code> is <strong>NOT</strong> in the Android NDK.