• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Ip address of VPN
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Ip address of VPN


  • Subject: RE: Ip address of VPN
  • From: "Vasavi Mahadev" <email@hidden>
  • Date: Wed, 23 Dec 2009 16:15:30 +0530
  • Thread-topic: Ip address of VPN

Title: RE: Ip address of VPN

Quinn,
I fired Cisco VPN and then called getifaddrs and it returned the below data:


       address: <fe80::1%lo0>

        address: <127.0.0.1>

        address: <::1>

        address: <fe80::225:4bff:feaf:e918%en0>

        address: <172.21.128.230>

        address: <172.21.128.231>



where <172.21.128.230> is my Ethernet and
             <172.21.128.231> is my Airport

No VPN  address is returned.

-Vasavi

At 09:34 +0530 23/12/09, Vasavi Mahadev wrote:
>I am not using built-in support for Cisco VPNs.
>
>[...]
>
>But the IP address for Cisco VPN client is same as that of Ethernet(en0).

Yeah, that's weird.  That's not how things are meant to work.  I
suspect that it's Cisco code doing this, so it's not something that I
can explain (I have a hard enough time explaining Apple's code :-).
If you have any contacts at Cisco, you might want to ping them.

Regarding a workaround, have you tried looking at
<x-man-page://3/getifaddrs>.  It's simultaneously a better and worse
way to get at the information you need.  It's better because it's
tied more closely to the TCP/IP stack, and hence it's hard to create
an interface without it appearing it.  Here's worse for pretty much
the same reason (-:, in that it returns a very raw interpretation of
what's going on.  Also, unlike the dynamic store, it doesn't notify
you when things change.

So, fire up your Cisco VPN and then call getifaddrs and see what it returns.

S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Ip address of VPN (From: Scott Ribe <email@hidden>)
 >RE: Ip address of VPN (From: "Vasavi Mahadev" <email@hidden>)
 >RE: Ip address of VPN (From: Quinn <email@hidden>)

  • Prev by Date: RE: Ip address of VPN
  • Next by Date: Cisco vpn client version compatible with Snow Leopard
  • Previous by thread: RE: Ip address of VPN
  • Next by thread: VPN interface IP address
  • Index(es):
    • Date
    • Thread