What exactly means iOS networking interface name? what's pdp_ip ? what's ap?

前端 未结 3 2097
天涯浪人
天涯浪人 2020-12-11 02:16

I use following code to print all interface and it\'s mac address

- ( void )interfaceInfo{

int                 mib[6];
size_t              len;
char                 


        
3条回答
  •  萌比男神i
    2020-12-11 02:22

    ap1, en0, en1 are names of the interfaces on iOS as well as on Mac. If you type in Terminal on Mac ifconfig you would get the same, en0, en1, etc.

    pdp_ip interfaces are those that are used for 3G and cellular data, while ap1 is used to represent currently active data connection, Wi-Fi, cellular data or bluetooth.

提交回复
热议问题