Jörn
Jörn

Reputation: 555

Network interface names on iPhone?

I use the following code to get a list of network interfaces currently available on the iPhone:

NetworkInterface[] l__objNetworkInterfaceList = NetworkInterface.GetAllNetworkInterfaces();

foreach (NetworkInterface l__objNetworkInterface in l__objNetworkInterfaceList)
{
   Console.WriteLine("Name: " + l__objNetworkInterface.Name);
}

l__objNetworkInterface.Name returns a short string which identifies the Interface (e.g. lo0 for loopback, en0 for WiFi, pdp_ip for cellular, and so on). But i get some names i can't figure out which type of interface they specify:

ap0
gif0
stf0

Does anyone know this interface types? Is there a documentation where the interfaces are listed?

Upvotes: 5

Views: 2581

Answers (1)

poupou
poupou

Reputation: 43553

  • git is for tunnels in the *BSD (including OSX, iOS) worlds;

  • stf is for six-to-four (IPv6 to IPv4);

  • not quite sure about ap0... I was thinking it could be a typo for tap0 but it seems to be a bridge between en0 and pdp_ip0 (i.e. wifi to 3g) which would make a lot of sense;

You can google books about the subject if you want to know more details.

Upvotes: 3

Related Questions