nicolaw@laptop:~ $ ipconfig getpacket en0
label length 99 > 63
op = BOOTREPLY
htype = 1
flags = 0
hlen = 6
hops = 0
xid = 0xb06af108
secs = 2
ciaddr = 0.0.0.0
yiaddr = 172.1.2.65
siaddr = 0.0.0.0
giaddr = 172.1.2.2
chaddr = ba:a9:11:f0:21:f0
sname =
file =
options:
Options count is 10
dhcp_message_type (uint8): ACK 0x5
server_identifier (ip): 172.1.4.3
lease_time (uint32): 0x3849
subnet_mask (ip): 255.255.255.0
router (ip_mult): {172.1.2.1}
domain_name_server (ip_mult): {172.1.4.4, 172.1.4.5}
domain_name (string): dev.acme.com
domain_search (dns_namelist): {}
proxy_auto_discovery_url (string): http://wpad.dev.acme.com:80/wpad.dat
end (none):
PROXY_PAC="http://wpad.dev.acme.com:80/wpad.dat"
proxy () {
local adapter="${1:-Wi-Fi}"
networksetup -setautoproxyurl "${adapter}" "${PROXY_PAC}"
}
unproxy () {
local adapter="${1:-Wi-Fi}"
networksetup -setautoproxystate "${adapter}" off
}