• 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: attached gateways
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: attached gateways


  • Subject: Re: attached gateways
  • From: Chase <email@hidden>
  • Date: Tue, 28 Jun 2005 13:26:11 -0500

OMG! THAT ACTUALLY WORKED!

I was hoping for a POSIXy solution to keep the codebase portable, but this will work just fine at this point!

Thanks so much!

Now, I do have a question though. Look at the output below and tell me why there is a difference between how the en0 and en0 states are stored:

blablabla:~ chase$ scutil
> open
> list
subKey [0] = DirectoryService:PID
subKey [1] = Plugin:IPConfiguration
subKey [2] = Setup:
subKey [3] = Setup:/
subKey [4] = Setup:/Network/Global/IPv4
subKey [5] = Setup:/Network/HostNames
subKey [6] = Setup:/Network/Interface/en1/AirPort
subKey [7] = Setup:/Network/Interface/modem/AirPort
subKey [8] = Setup:/Network/Service/0
subKey [9] = Setup:/Network/Service/0/DNS
subKey [10] = Setup:/Network/Service/0/Ethernet
subKey [11] = Setup:/Network/Service/0/IPv4
subKey [12] = Setup:/Network/Service/0/IPv6
subKey [13] = Setup:/Network/Service/0/Interface
subKey [14] = Setup:/Network/Service/0/Proxies
subKey [15] = Setup:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D
subKey [16] = Setup:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/DNS
subKey [17] = Setup:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/IPv4
subKey [18] = Setup:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/IPv6
subKey [19] = Setup:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/Interface
subKey [20] = Setup:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/Proxies
subKey [21] = Setup:/Network/Service/99B98B8F-AEFF-4659-A92F- E6F06542F032
subKey [22] = Setup:/Network/Service/99B98B8F-AEFF-4659-A92F- E6F06542F032/IPv4
subKey [23] = Setup:/Network/Service/99B98B8F-AEFF-4659-A92F- E6F06542F032/IPv6
subKey [24] = Setup:/Network/Service/99B98B8F-AEFF-4659-A92F- E6F06542F032/Interface
subKey [25] = Setup:/Network/Service/99B98B8F-AEFF-4659-A92F- E6F06542F032/Proxies
subKey [26] = Setup:/Network/Service/C6F2723D-FCFF-463D-8935- B252C095F90B
subKey [27] = Setup:/Network/Service/C6F2723D-FCFF-463D-8935- B252C095F90B/IPv4
subKey [28] = Setup:/Network/Service/C6F2723D-FCFF-463D-8935- B252C095F90B/IPv6
subKey [29] = Setup:/Network/Service/C6F2723D-FCFF-463D-8935- B252C095F90B/Interface
subKey [30] = Setup:/Network/Service/C6F2723D-FCFF-463D-8935- B252C095F90B/Modem
subKey [31] = Setup:/Network/Service/C6F2723D-FCFF-463D-8935- B252C095F90B/PPP
subKey [32] = Setup:/Network/Service/C6F2723D-FCFF-463D-8935- B252C095F90B/Proxies
subKey [33] = Setup:/Network/Service/D693D265- AAD9-4620-8867-75EAACCC2D02
subKey [34] = Setup:/Network/Service/D693D265- AAD9-4620-8867-75EAACCC2D02/IPv4
subKey [35] = Setup:/Network/Service/D693D265- AAD9-4620-8867-75EAACCC2D02/IPv6
subKey [36] = Setup:/Network/Service/D693D265- AAD9-4620-8867-75EAACCC2D02/Interface
subKey [37] = Setup:/Network/Service/D693D265- AAD9-4620-8867-75EAACCC2D02/Modem
subKey [38] = Setup:/Network/Service/D693D265- AAD9-4620-8867-75EAACCC2D02/PPP
subKey [39] = Setup:/Network/Service/D693D265- AAD9-4620-8867-75EAACCC2D02/Proxies
subKey [40] = Setup:/System
subKey [41] = State:/IOKit/PowerManagement/CurrentSettings
subKey [42] = State:/IOKit/PowerSources/InternalBattery-0
subKey [43] = State:/Network/Global/DNS
subKey [44] = State:/Network/Global/IPv4
subKey [45] = State:/Network/Global/Proxies
subKey [46] = State:/Network/Interface
subKey [47] = State:/Network/Interface/en0/IPv4
subKey [48] = State:/Network/Interface/en0/IPv6
subKey [49] = State:/Network/Interface/en0/Link
subKey [50] = State:/Network/Interface/en1/AirPort
subKey [51] = State:/Network/Interface/en1/IPv4
subKey [52] = State:/Network/Interface/en1/IPv6
subKey [53] = State:/Network/Interface/en1/Link
subKey [54] = State:/Network/Interface/fw0/Link
subKey [55] = State:/Network/Interface/lo0/IPv4
subKey [56] = State:/Network/Interface/lo0/IPv6
subKey [57] = State:/Network/Service/0/DHCP
subKey [58] = State:/Network/Service/0/DNS
subKey [59] = State:/Network/Service/0/IPv4
subKey [60] = State:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/DHCP
subKey [61] = State:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/DNS
subKey [62] = State:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/IPv4
subKey [63] = State:/Users/ConsoleUser
subKey [64] = com.apple.BluetoothMenuExtraStatus
subKey [65] = com.apple.DirectoryService.NotifyTypeStandard:DirectoryNodeAdded
subKey [66] = com.apple.DirectoryService.NotifyTypeStandard:DirectoryNodeDeleted


> show State:/Network/Service/0/IPv4
<dictionary> {
  SubnetMasks : <array> {
    0 : 255.255.255.0
  }
  Addresses : <array> {
    0 : 192.168.0.102
  }
  Router : 192.168.0.250
  InterfaceName : en0
}

> show State:/Network/Service/1/IPv4
  No such key

> show State:/Network/Service/683BC9D3-F3AC-451C-85C1-538A691DFB8D/IPv4
<dictionary> {
  SubnetMasks : <array> {
    0 : 255.255.255.0
  }
  Addresses : <array> {
    0 : 192.168.1.104
  }
  Router : 192.168.1.1
  InterfaceName : en1
}


(Note: I've changed one of the router addresses, but this output correctly reflects the change.)


But, why is en0 stored under: State:/Network/Service/0/IPv4

while en1 is at: State:/Network/Service/683BC9D3- F3AC-451C-85C1-538A691DFB8D/IPv4

??

In the meantime, I'll start reading throut the API docs to get a feel for how it works and how I'll be interacting with it.

Thanks again.

- Chase



_______________________________________________
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


  • Follow-Ups:
    • Re: attached gateways
      • From: Chase <email@hidden>
References: 
 >Re: attached gateways (From: "Jamie Wood" <email@hidden>)

  • Prev by Date: Re: attached gateways
  • Next by Date: Re: attached gateways
  • Previous by thread: Re: attached gateways
  • Next by thread: Re: attached gateways
  • Index(es):
    • Date
    • Thread