- Change History (most recent first):
-
-$Log: mDNSEmbeddedAPI.h,v $
-Revision 1.575 2009/07/11 01:57:00 cheshire
-<rdar://problem/6613674> Sleep Proxy: Add support for using sleep proxy in local network interface hardware
-Added declaration of ActivateLocalProxy
-
-Revision 1.574 2009/07/10 23:03:17 cheshire
-Made SecondLabel(X) more defensive, to guard against the case where the name doesn't have a second label
-
-Revision 1.573 2009/06/30 18:17:45 herscher
-Add to 64 bit macro check for 64 bit Windows OSes
-
-Revision 1.572 2009/06/27 00:52:27 cheshire
-<rdar://problem/6959273> mDNSResponder taking up 13% CPU with 400 KBps incoming bonjour requests
-Removed overly-complicate and ineffective multi-packet known-answer snooping code
-(Bracketed it with "#if ENABLE_MULTI_PACKET_QUERY_SNOOPING" for now; will delete actual code later)
-
-Revision 1.571 2009/06/26 01:55:54 cheshire
-<rdar://problem/6890712> mDNS: iChat's Buddy photo always appears as the "shadow person" over Bonjour
-Additional refinements -- except for the case of explicit queries for record types we don't have (for names we own),
-add additional NSEC records only when there's space to do that without having to generate an additional packet
-
-Revision 1.570 2009/06/24 22:14:21 cheshire
-<rdar://problem/6911445> Plugging and unplugging the power cable shouldn't cause a network change event
-
-Revision 1.569 2009/06/03 23:07:12 cheshire
-<rdar://problem/6890712> mDNS: iChat's Buddy photo always appears as the "shadow person" over Bonjour
-Large records were not being added in cases where an NSEC record was also required
-
-Revision 1.568 2009/05/19 22:37:04 cheshire
-<rdar://problem/6903507> Sleep Proxy: Retransmission logic not working reliably on quiet networks
-Added NextScheduledSPRetry field
-
-Revision 1.567 2009/05/13 17:25:33 mkrochma
-<rdar://problem/6879926> Should not schedule maintenance wake when machine has no advertised services
-Sleep proxy client should only look for services being advertised via Multicast
-
-Revision 1.566 2009/05/12 23:09:24 cheshire
-<rdar://problem/6879926> Should not schedule maintenance wake when machine has no advertised services
-Declare mDNSCoreHaveAdvertisedServices routine so it can be called from daemon.c
-
-Revision 1.565 2009/05/09 00:10:58 jessic2
-Change expected size of NetworkInterfaceInfo to fix build failure
-
-Revision 1.564 2009/05/07 23:31:26 cheshire
-<rdar://problem/6601427> Sleep Proxy: Retransmit and retry Sleep Proxy Server requests
-Added NextSPSAttempt and NextSPSAttemptTime fields to NetworkInterfaceInfo_struct
-
-Revision 1.563 2009/04/24 21:06:38 cheshire
-Added comment about UDP length field (includes UDP header, so minimum value is 8 bytes)
-
-Revision 1.562 2009/04/24 00:22:23 cheshire
-<rdar://problem/3476350> Return negative answers when host knows authoritatively that no answer exists
-Added definition of rdataNSEC
-
-Revision 1.561 2009/04/23 22:06:29 cheshire
-Added CacheRecord and InterfaceID parameters to MakeNegativeCacheRecord, in preparation for:
-<rdar://problem/3476350> Return negative answers when host knows authoritatively that no answer exists
-
-Revision 1.560 2009/04/23 21:54:50 cheshire
-Updated comments
-
-Revision 1.559 2009/04/22 00:37:38 cheshire
-<rdar://problem/6814427> Remove unused kDNSType_MAC
-
-Revision 1.558 2009/04/21 23:36:25 cheshire
-<rdar://problem/6814427> Remove unused kDNSType_MAC
-
-Revision 1.557 2009/04/15 20:42:51 mcguire
-<rdar://problem/6768947> uDNS: Treat RCODE 5 (Refused) responses as failures
-
-Revision 1.556 2009/04/11 00:19:43 jessic2
-<rdar://problem/4426780> Daemon: Should be able to turn on LogOperation dynamically
-
-Revision 1.555 2009/04/01 21:12:27 herscher
-<rdar://problem/5925472> Current Bonjour code does not compile on Windows.
-
-Revision 1.554 2009/04/01 17:50:11 mcguire
-cleanup mDNSRandom
-
-Revision 1.553 2009/03/26 03:59:00 jessic2
-Changes for <rdar://problem/6492552&6492593&6492609&6492613&6492628&6492640&6492699>
-
-Revision 1.552 2009/03/20 23:53:03 jessic2
-<rdar://problem/6646228> SIGHUP should restart all in-progress queries
-
-Revision 1.551 2009/03/18 20:41:04 cheshire
-Added definition of the all-ones mDNSOpaque16 ID
-
-Revision 1.550 2009/03/17 19:10:29 mcguire
-Fix sizechecks for x86_64
-
-Revision 1.549 2009/03/17 01:22:56 cheshire
-<rdar://problem/6601427> Sleep Proxy: Retransmit and retry Sleep Proxy Server requests
-Initial support for resolving up to three Sleep Proxies in parallel
-
-Revision 1.548 2009/03/14 01:42:56 mcguire
-<rdar://problem/5457116> BTMM: Fix issues with multiple .Mac accounts on the same machine
-
-Revision 1.547 2009/03/10 01:14:30 cheshire
-Sleep Proxies with invalid names need to be ignored (score 10000),
-not treated as "Sleep Proxy of last resort" (score 9999)
-
-Revision 1.546 2009/03/06 23:51:51 mcguire
-Fix broken build by defining DiscardPort
-
-Revision 1.545 2009/03/06 22:39:23 cheshire
-<rdar://problem/6655850> Ignore prototype base stations when picking Sleep Proxy to register with
-
-Revision 1.544 2009/03/04 01:33:30 cheshire
-Add m->ProxyRecords counter
-
-Revision 1.543 2009/03/03 23:04:43 cheshire
-For clarity, renamed "MAC" field to "HMAC" (Host MAC, as opposed to Interface MAC)
-
-Revision 1.542 2009/03/03 22:51:53 cheshire
-<rdar://problem/6504236> Sleep Proxy: Waking on same network but different interface will cause conflicts
-
-Revision 1.541 2009/03/03 00:45:19 cheshire
-Added m->PrimaryMAC field
-
-Revision 1.540 2009/02/27 02:56:57 cheshire
-Moved struct SearchListElem definition from uDNS.c into mDNSEmbeddedAPI.h
-
-Revision 1.539 2009/02/17 23:29:01 cheshire
-Throttle logging to a slower rate when running on SnowLeopard
-
-Revision 1.538 2009/02/11 02:31:57 cheshire
-Moved SystemWakeOnLANEnabled from mDNSMacOSX.h, so it's accessible to mDNSCore routines
-
-Revision 1.537 2009/02/07 02:51:48 cheshire
-<rdar://problem/6084043> Sleep Proxy: Need to adopt IOPMConnection
-Added new functions and timing variables
-
-Revision 1.536 2009/01/30 23:50:31 cheshire
-Added LastLabel() routine to get the last label of a domainname
-
-Revision 1.535 2009/01/23 00:38:36 mcguire
-<rdar://problem/5570906> BTMM: Doesn't work with Linksys WRT54GS firmware 4.71.1
-
-Revision 1.534 2009/01/22 02:14:25 cheshire
-<rdar://problem/6515626> Sleep Proxy: Set correct target MAC address, instead of all zeroes
-
-Revision 1.533 2009/01/21 03:43:57 mcguire
-<rdar://problem/6511765> BTMM: Add support for setting kDNSServiceErr_NATPortMappingDisabled in DynamicStore
-
-Revision 1.532 2009/01/16 19:50:36 cheshire
-Oops. Fixed definition of SleepProxyServiceType.
-
-Revision 1.531 2009/01/16 19:48:09 cheshire
-Added definition of SleepProxyServiceType
-
-Revision 1.530 2009/01/15 00:22:49 mcguire
-<rdar://problem/6437092> NAT-PMP: mDNSResponder needs to listen on 224.0.0.1:5350/UDP with REUSEPORT
-
-Revision 1.529 2009/01/13 00:31:44 cheshire
-Fixed off-by-one error in computing the implicit limit pointer in the "DomainNameLength(name)" macro
-
-Revision 1.528 2009/01/10 01:43:52 cheshire
-Changed misleading function name 'AnsweredLOQ' to more informative 'AnsweredLocalQ'
-
-Revision 1.527 2008/12/12 01:23:19 cheshire
-Added m->SPSProxyListChanged state variable to flag when we need to update our BPF filter program
-
-Revision 1.526 2008/12/12 00:51:14 cheshire
-Added structure definitions for IPv6Header, etc.
-
-Revision 1.525 2008/12/10 02:18:31 cheshire
-Increased MaxMsg to 160 for showing longer TXT records in SIGINFO output
-
-Revision 1.524 2008/12/10 01:49:39 cheshire
-Fixes for alignment issues on ARMv5
-
-Revision 1.523 2008/12/05 02:35:24 mcguire
-<rdar://problem/6107390> Write to the DynamicStore when a Sleep Proxy server is available on the network
-
-Revision 1.522 2008/12/04 21:08:51 mcguire
-<rdar://problem/6116863> mDNS: Provide mechanism to disable Multicast advertisements
-
-Revision 1.521 2008/12/04 02:19:24 cheshire
-Updated comment
-
-Revision 1.520 2008/11/26 20:28:05 cheshire
-Added new SSHPort constant
-
-Revision 1.519 2008/11/25 22:46:30 cheshire
-For ease of code searching, renamed ZoneData field of ServiceRecordSet_struct from "nta" to "srs_nta"
-
-Revision 1.518 2008/11/25 05:07:15 cheshire
-<rdar://problem/6374328> Advertise Sleep Proxy metrics in service name
-
-Revision 1.517 2008/11/20 01:51:19 cheshire
-Exported RecreateNATMappings so it's callable from other files
-
-Revision 1.516 2008/11/16 16:49:25 cheshire
-<rdar://problem/6375808> LLQs broken in mDNSResponder-184
-DNSOpt_LLQData_Space was incorrectly defined to be 18 instead of 22
-
-Revision 1.515 2008/11/14 20:59:41 cheshire
-Added mDNSEthAddressIsZero(A) macro
-
-Revision 1.514 2008/11/14 02:17:41 cheshire
-Added NextScheduledSPS task scheduling variable
-
-Revision 1.513 2008/11/14 00:47:19 cheshire
-Added TimeRcvd and TimeExpire fields to AuthRecord_struct
-
-Revision 1.512 2008/11/14 00:00:53 cheshire
-After client machine wakes up, Sleep Proxy machine need to remove any records
-it was temporarily holding as proxy for that client
-
-Revision 1.511 2008/11/13 19:04:44 cheshire
-Added definition of OwnerOptData
-
-Revision 1.510 2008/11/06 23:48:32 cheshire
-Changed SleepProxyServerType to mDNSu8
-
-Revision 1.509 2008/11/04 23:06:50 cheshire
-Split RDataBody union definition into RDataBody and RDataBody2, and removed
-SOA from the normal RDataBody union definition, saving 270 bytes per AuthRecord
-
-Revision 1.508 2008/11/04 22:21:43 cheshire
-Changed zone field of AuthRecord_struct from domainname to pointer, saving 252 bytes per AuthRecord
-
-Revision 1.507 2008/11/04 22:13:43 cheshire
-Made RDataBody parameter to GetRRDisplayString_rdb "const"
-
-Revision 1.506 2008/11/04 20:06:19 cheshire
-<rdar://problem/6186231> Change MAX_DOMAIN_NAME to 256
-
-Revision 1.505 2008/11/03 23:49:47 mkrochma
-Increase NATMAP_DEFAULT_LEASE to 2 hours so we do maintenance wake less often
-
-Revision 1.504 2008/10/31 22:55:04 cheshire
-Initial support for structured SPS names
-
-Revision 1.503 2008/10/24 23:58:47 cheshire
-Ports should be mDNSIPPort, not mDNSOpaque16
-
-Revision 1.502 2008/10/23 22:25:56 cheshire
-Renamed field "id" to more descriptive "updateid"
-
-Revision 1.501 2008/10/22 22:22:27 cheshire
-Added packet structure definitions
-
-Revision 1.500 2008/10/22 19:55:35 cheshire
-Miscellaneous fixes; renamed FindFirstAnswerInCache to FindSPSInCache
-
-Revision 1.499 2008/10/22 17:15:47 cheshire
-Updated definitions of mDNSIPv4AddressIsZero/mDNSIPv4AddressIsOnes, etc.
-
-Revision 1.498 2008/10/22 01:01:52 cheshire
-Added onesEthAddr constant, used for sending ARP broadcasts
-
-Revision 1.497 2008/10/21 00:51:11 cheshire
-Added declaration of mDNSPlatformSetBPF(), used by uds_daemon.c to pass BPF fd to mDNSMacOSX.c
-
-Revision 1.496 2008/10/16 22:38:52 cheshire
-Added declaration of mDNSCoreReceiveRawPacket()
-
-Revision 1.495 2008/10/15 22:53:51 cheshire
-Removed unused "#define LocalReverseMapDomain"
-
-Revision 1.494 2008/10/15 20:37:17 cheshire
-Added "#define DNSOpt_Lease_Space 19"
-
-Revision 1.493 2008/10/14 21:37:56 cheshire
-Removed unnecessary m->BeSleepProxyServer variable
-
-Revision 1.492 2008/10/14 20:26:36 cheshire
-Added definition of a new kDNSType_MAC rdata type
-
-Revision 1.491 2008/10/09 22:29:04 cheshire
-Added "mDNSEthAddr MAC" to NetworkInterfaceInfo_struct
-
-Revision 1.490 2008/10/09 21:39:20 cheshire
-Update list of DNS types
-
-Revision 1.489 2008/10/09 18:59:19 cheshire
-Added NetWakeResolve code, removed unused m->SendDeregistrations and m->SendImmediateAnswers
-
-Revision 1.488 2008/10/08 01:02:03 cheshire
-Added mDNS_SetupQuestion() convenience function
-
-Revision 1.487 2008/10/07 21:41:57 mcguire
-Increase sizecheck limits to account for DNSQuestion added to NetworkInterfaceInfo_struct in 64bit builds
-
-Revision 1.486 2008/10/07 15:56:24 cheshire
-Increase sizecheck limits to account for DNSQuestion added to NetworkInterfaceInfo_struct
-
-Revision 1.485 2008/10/04 00:48:37 cheshire
-Added DNSQuestion to NetworkInterfaceInfo_struct, used for browsing for Sleep Proxy Servers
-
-Revision 1.484 2008/10/04 00:01:45 cheshire
-Move NetworkInterfaceInfo_struct further down in file (we'll need to add a DNSQuestion to it later)
-
-Revision 1.483 2008/10/03 23:28:41 cheshire
-Added declaration of mDNSPlatformSendRawPacket
-
-Revision 1.482 2008/10/03 17:30:05 cheshire
-Added declaration of mDNS_ConfigChanged(mDNS *const m);
-
-Revision 1.481 2008/10/02 22:38:58 cheshire
-Added SleepProxyServer fields, and mDNSCoreBeSleepProxyServer() call for turning SleepProxyServer on and off
-
-Revision 1.480 2008/10/01 21:22:17 cheshire
-Added NetWake field to NetworkInterfaceInfo structure, to signal when Wake-On-Magic-Packet is enabled for that interface
-
-Revision 1.479 2008/09/29 20:12:37 cheshire
-Rename 'AnswerLocalQuestions' to more descriptive 'AnswerLocalOnlyQuestions' and 'AnsweredLocalQ' to 'AnsweredLOQ'
-
-Revision 1.478 2008/09/23 02:37:10 cheshire
-Added FirstLabel/SecondLabel macros
-
-Revision 1.477 2008/09/20 00:34:22 mcguire
-<rdar://problem/6129039> BTMM: Add support for WANPPPConnection
-
-Revision 1.476 2008/09/05 22:22:01 cheshire
-Move "UDPSocket *LocalSocket" field to more logical place in DNSQuestion_struct
-
-Revision 1.475 2008/07/25 22:34:11 mcguire
-fix sizecheck issues for 64bit
-
-Revision 1.474 2008/07/24 20:23:03 cheshire
-<rdar://problem/3988320> Should use randomized source ports and transaction IDs to avoid DNS cache poisoning
-
-Revision 1.473 2008/07/18 21:37:42 mcguire
-<rdar://problem/5736845> BTMM: alternate SSDP queries between multicast & unicast
-
-Revision 1.472 2008/07/01 01:39:59 mcguire
-<rdar://problem/5823010> 64-bit fixes
-
-Revision 1.471 2008/06/26 17:24:11 mkrochma
-<rdar://problem/5450912> BTMM: Stop listening on UDP 5351 for NAT Status Announcements
-
-Revision 1.470 2008/06/19 01:20:49 mcguire
-<rdar://problem/4206534> Use all configured DNS servers
-
-Revision 1.469 2008/03/07 18:56:02 cheshire
-<rdar://problem/5777647> dnsbugtest query every three seconds when source IP address of response doesn't match
-
-Revision 1.468 2008/03/06 02:48:34 mcguire
-<rdar://problem/5321824> write status to the DS
-
-Revision 1.467 2008/02/26 20:48:46 cheshire
-Need parentheses around use of macro argument in mDNS_TimeNow_NoLock(m)
-
-Revision 1.466 2008/02/21 21:36:32 cheshire
-Updated comment about record type values (kDNSRecordTypePacketAns/Auth/Add)
-
-Revision 1.465 2008/02/20 00:39:05 mcguire
-<rdar://problem/5427102> Some device info XML blobs too large
-
-Revision 1.464 2008/01/31 23:33:29 mcguire
-<rdar://problem/5614450> changes to build using gcc 4.2 with -Werror
-
-Revision 1.463 2007/12/17 23:53:25 cheshire
-Added DNSDigest_SignMessageHostByteOrder, for signing messages not yet converted to network byte order
-
-Revision 1.462 2007/12/17 23:48:29 cheshire
-DNSDigest_SignMessage doesn't need to return a result -- it already updates the 'end' parameter
-
-Revision 1.461 2007/12/15 00:18:51 cheshire
-Renamed question->origLease to question->ReqLease
-
-Revision 1.460 2007/12/14 23:55:28 cheshire
-Moved "struct tcpInfo_t" definition from uDNS.c to mDNSEmbeddedAPI.h
-
-Revision 1.459 2007/12/07 22:40:34 cheshire
-Rename 'LocalAnswer' to more descriptive 'AnsweredLocalQ'
-
-Revision 1.458 2007/12/07 00:45:58 cheshire
-<rdar://problem/5526800> BTMM: Need to clean up registrations on shutdown
-
-Revision 1.457 2007/12/06 00:22:27 mcguire
-<rdar://problem/5604567> BTMM: Doesn't work with Linksys WAG300N 1.01.06 (sending from 1026/udp)
-
-Revision 1.456 2007/12/05 01:45:35 cheshire
-Renamed markedForDeletion -> MarkedForDeletion
-
-Revision 1.455 2007/12/01 01:21:27 jgraessley
-<rdar://problem/5623140> mDNSResponder unicast DNS improvements
-
-Revision 1.454 2007/12/01 00:34:03 cheshire
-Fixes from Bob Bradley for building on EFI
-
-Revision 1.453 2007/10/29 23:51:22 cheshire
-Added comment about NATTraversalInfo ExternalAddress field
-
-Revision 1.452 2007/10/29 18:13:40 cheshire
-Added Question_uDNS macro, analogous to AuthRecord_uDNS macro
-
-Revision 1.451 2007/10/26 23:42:57 cheshire
-Removed unused "mDNSs32 expire" field from ServiceRecordSet_struct
-
-Revision 1.450 2007/10/26 22:24:08 cheshire
-Added AuthRecord_uDNS() macro to determine when a given AuthRecord needs to be registered via unicast DNS
-
-Revision 1.449 2007/10/25 20:48:47 cheshire
-For naming consistency (with AuthRecord's UpdateServer) renamed 'ns' to 'SRSUpdateServer'
-
-Revision 1.448 2007/10/22 22:19:44 cheshire
-Tidied up code alignment
-
-Revision 1.447 2007/10/22 19:40:30 cheshire
-<rdar://problem/5519458> BTMM: Machines don't appear in the sidebar on wake from sleep
-Made subroutine mDNSPlatformSourceAddrForDest(mDNSAddr *const src, const mDNSAddr *const dst)
-
-Revision 1.446 2007/10/17 22:49:54 cheshire
-<rdar://problem/5519458> BTMM: Machines don't appear in the sidebar on wake from sleep
-
-Revision 1.445 2007/10/17 22:37:23 cheshire
-<rdar://problem/5536979> BTMM: Need to create NAT port mapping for receiving LLQ events
-
-Revision 1.444 2007/09/29 03:14:52 cheshire
-<rdar://problem/5513168> BTMM: mDNSResponder memory corruption in GetAuthInfoForName_internal
-Added AutoTunnelUnregistered macro to check state of DomainAuthInfo AuthRecords
-
-Revision 1.443 2007/09/27 21:21:39 cheshire
-Export CompleteDeregistration so it's callable from other files
-
-Revision 1.442 2007/09/27 00:25:39 cheshire
-Added ttl_seconds parameter to MakeNegativeCacheRecord in preparation for:
-<rdar://problem/4947392> uDNS: Use SOA to determine TTL for negative answers
-
-Revision 1.441 2007/09/26 23:17:49 cheshire
-Get rid of unused kWideAreaTTL constant
-
-Revision 1.440 2007/09/26 22:06:02 cheshire
-<rdar://problem/5507399> BTMM: No immediate failure notifications for BTMM names
-
-Revision 1.439 2007/09/21 21:12:36 cheshire
-DNSDigest_SignMessage does not need separate "mDNSu16 *numAdditionals" parameter
-
-Revision 1.438 2007/09/19 20:32:09 cheshire
-Export GetAuthInfoForName so it's callable from other files
-
-Revision 1.437 2007/09/18 21:42:29 cheshire
-To reduce programming mistakes, renamed ExtPort to RequestedPort
-
-Revision 1.436 2007/09/14 21:26:08 cheshire
-<rdar://problem/5482627> BTMM: Need to manually avoid port conflicts when using UPnP gateways
-
-Revision 1.435 2007/09/13 00:16:41 cheshire
-<rdar://problem/5468706> Miscellaneous NAT Traversal improvements
-
-Revision 1.434 2007/09/12 23:03:07 cheshire
-<rdar://problem/5476978> DNSServiceNATPortMappingCreate callback not giving correct interface index
-
-Revision 1.433 2007/09/12 22:19:28 cheshire
-<rdar://problem/5476977> Need to listen for port 5350 NAT-PMP announcements
-
-Revision 1.432 2007/09/12 19:22:19 cheshire
-Variable renaming in preparation for upcoming fixes e.g. priv/pub renamed to intport/extport
-Made NAT Traversal packet handlers take typed data instead of anonymous "mDNSu8 *" byte pointers
-
-Revision 1.431 2007/09/11 19:19:16 cheshire
-Correct capitalization of "uPNP" to "UPnP"
-
-Revision 1.430 2007/09/10 22:06:50 cheshire
-Rename uptime => upseconds and LastNATUptime => LastNATupseconds to make it clear these time values are in seconds
-
-Revision 1.429 2007/09/07 21:16:58 cheshire
-Add new symbol "NATPMPAnnouncementPort" (5350)
-
-Revision 1.428 2007/09/05 21:48:01 cheshire
-<rdar://problem/5385864> BTMM: mDNSResponder flushes wide-area Bonjour records after an hour for a zone.
-Now that we're respecting the TTL of uDNS records in the cache, the LLQ maintenance code needs
-to update the cache lifetimes of all relevant records every time it successfully renews an LLQ,
-otherwise those records will expire and vanish from the cache.
-
-Revision 1.427 2007/09/05 20:47:12 cheshire
-Tidied up alignment of code layout
-
-Revision 1.426 2007/09/04 20:37:06 cheshire
-<rdar://problem/5457287> mDNSResponder taking up 100% CPU in ReissueBlockedQuestions
-Reorder fields into more logical order, with AuthInfo before DuplicateOf
-
-Revision 1.425 2007/08/31 19:53:14 cheshire
-<rdar://problem/5431151> BTMM: IPv6 address lookup should not succeed if autotunnel cannot be setup
-If AutoTunnel setup fails, the code now generates a fake NXDomain error saying that the requested AAAA record does not exist
-
-Revision 1.424 2007/08/31 18:49:49 vazquez
-<rdar://problem/5393719> BTMM: Need to properly deregister when stopping BTMM
-
-Revision 1.423 2007/08/31 00:04:28 cheshire
-Added comment explaining deltime in DomainAuthInfo structure
-
-Revision 1.422 2007/08/28 23:58:42 cheshire
-Rename HostTarget -> AutoTarget
-
-Revision 1.421 2007/08/27 20:30:43 cheshire
-Only include TunnelClients list when building for OS X
-
-Revision 1.420 2007/08/23 21:47:09 vazquez
-<rdar://problem/5427316> BTMM: mDNSResponder sends NAT-PMP packets on public network
-make sure we clean up port mappings on base stations by sending a lease value of 0,
-and only send NAT-PMP packets on private networks; also save some memory by
-not using packet structs in NATTraversals.
-
-Revision 1.419 2007/08/08 21:07:47 vazquez
-<rdar://problem/5244687> BTMM: Need to advertise model information via wide-area bonjour
-
-Revision 1.418 2007/08/01 16:09:13 cheshire
-Removed unused NATTraversalInfo substructure from AuthRecord; reduced structure sizecheck values accordingly
-
-Revision 1.417 2007/08/01 03:04:59 cheshire
-Add NATTraversalInfo structures to HostnameInfo and DomainAuthInfo
-
-Revision 1.416 2007/08/01 00:04:13 cheshire
-<rdar://problem/5261696> Crash in tcpKQSocketCallback
-Half-open TCP connections were not being cancelled properly
-
-Revision 1.415 2007/07/31 02:28:35 vazquez
-<rdar://problem/3734269> NAT-PMP: Detect public IP address changes and base station reboot
-
-Revision 1.414 2007/07/30 23:34:19 cheshire
-Remove unused "udpSock" from DNSQuestion
-
-Revision 1.413 2007/07/28 01:25:56 cheshire
-<rdar://problem/4780038> BTMM: Add explicit UDP event port to LLQ setup request, to fix LLQs not working behind NAT
-
-Revision 1.412 2007/07/27 23:57:23 cheshire
-Added compile-time structure size checks
-
-Revision 1.411 2007/07/27 22:50:08 vazquez
-Allocate memory for UPnP request and reply buffers instead of using arrays
-
-Revision 1.410 2007/07/27 19:37:19 cheshire
-Moved AutomaticBrowseDomainQ into main mDNS object
-
-Revision 1.409 2007/07/27 19:30:39 cheshire
-Changed mDNSQuestionCallback parameter from mDNSBool to QC_result,
-to properly reflect tri-state nature of the possible responses
-
-Revision 1.408 2007/07/27 18:44:01 cheshire
-Rename "AnswerQuestionWithResourceRecord" to more informative "AnswerCurrentQuestionWithResourceRecord"
-
-Revision 1.407 2007/07/26 21:19:26 vazquez
-Retry port mapping with incremented port number (up to max) in order to handle
-port mapping conflicts on UPnP gateways
-
-Revision 1.406 2007/07/25 22:19:59 cheshire
-ClientTunnel structure also needs a rmt_outer_port field
-
-Revision 1.405 2007/07/25 03:05:02 vazquez
-Fixes for:
-<rdar://problem/5338913> LegacyNATTraversal: UPnP heap overflow
-<rdar://problem/5338933> LegacyNATTraversal: UPnP stack buffer overflow
-and a myriad of other security problems
-
-Revision 1.404 2007/07/24 20:22:07 cheshire
-Add AutoTunnelHostAddrActive flag
-
-Revision 1.403 2007/07/24 04:14:29 cheshire
-<rdar://problem/5356281> LLQs not working in with NAT Traversal
-
-Revision 1.402 2007/07/21 00:54:44 cheshire
-<rdar://problem/5344576> Delay IPv6 address callback until AutoTunnel route and policy is configured
-
-Revision 1.401 2007/07/20 20:01:38 cheshire
-Rename "mDNS_DomainTypeBrowseLegacy" as "mDNS_DomainTypeBrowseAutomatic"
-
-Revision 1.400 2007/07/20 00:54:18 cheshire
-<rdar://problem/4641118> Need separate SCPreferences for per-user .Mac settings
-
-Revision 1.399 2007/07/18 03:22:35 cheshire
-SetupLocalAutoTunnelInterface_internal needs to be callable from uDNS.c
-
-Revision 1.398 2007/07/18 02:26:56 cheshire
-Don't need to declare UpdateTunnels here
-
-Revision 1.397 2007/07/18 01:03:50 cheshire
-<rdar://problem/5303834> Automatically configure IPSec policy when resolving services
-Add list of client tunnels so we can automatically reconfigure when local address changes
-
-Revision 1.396 2007/07/16 23:54:48 cheshire
-<rdar://problem/5338850> Crash when removing or changing DNS keys
-
-Revision 1.395 2007/07/16 20:12:33 vazquez
-<rdar://problem/3867231> LegacyNATTraversal: Need complete rewrite
-
-Revision 1.394 2007/07/12 02:51:27 cheshire
-<rdar://problem/5303834> Automatically configure IPSec policy when resolving services
-
-Revision 1.393 2007/07/11 23:43:42 cheshire
-Rename PurgeCacheResourceRecord to mDNS_PurgeCacheResourceRecord
-
-Revision 1.392 2007/07/11 22:44:40 cheshire
-<rdar://problem/5328801> SIGHUP should purge the cache
-
-Revision 1.391 2007/07/11 20:30:45 cheshire
-<rdar://problem/5304766> Register IPSec tunnel with IPv4-only hostname and create NAT port mappings
-Added AutoTunnelTarget and AutoTunnelService to DomainAuthInfo structure
-
-Revision 1.390 2007/07/11 18:56:55 cheshire
-Added comments about AutoTunnelHostAddr and AutoTunnelLabel
-
-Revision 1.389 2007/07/11 02:44:03 cheshire
-<rdar://problem/5303807> Register IPv6-only hostname and don't create port mappings for AutoTunnel services
-Added AutoTunnel fields to structures
-
-Revision 1.388 2007/07/10 01:53:18 cheshire
-<rdar://problem/5196524> uDNS: mDNSresponder is leaking TCP connections to DNS server
-AuthRecord, ServiceRecordSet, and DNSQuestion structures need tcpInfo_t pointers
-so they can keep track of what TCP connections they open
-
-Revision 1.387 2007/07/06 18:55:15 cheshire
-Add explicit NextScheduledNATOp scheduling variable
-
-Revision 1.386 2007/07/03 20:54:11 cheshire
-Tidied up code layout of NATTraversalInfo_struct fields and comments
-
-Revision 1.385 2007/07/03 00:40:23 vazquez
-More changes for <rdar://problem/5301908> Clean up NAT state machine (necessary for 6 other fixes)
-Safely deal with packet replies and client callbacks
-
-Revision 1.384 2007/06/29 00:08:07 vazquez
-<rdar://problem/5301908> Clean up NAT state machine (necessary for 6 other fixes)
-
-Revision 1.383 2007/06/20 01:10:12 cheshire
-<rdar://problem/5280520> Sync iPhone changes into main mDNSResponder code
-
-Revision 1.382 2007/06/19 20:31:59 cheshire
-Add DNSServer_Disabled state
-Add mDNSInterfaceID for DNS servers reachable over specific interfaces
-
-Revision 1.381 2007/06/15 18:11:16 cheshire
-<rdar://problem/5174466> mDNSResponder crashed in memove() near end of MobileSafari stress test
-Made AssignDomainName more defensive when source name is garbage
-
-Revision 1.380 2007/05/25 00:04:51 cheshire
-Added comment explaining rdlength
-
-Revision 1.379 2007/05/21 18:04:40 cheshire
-Updated comments -- port_mapping_create_reply renamed to port_mapping_reply
-
-Revision 1.378 2007/05/17 19:11:46 cheshire
-Tidy up code layout
-
-Revision 1.377 2007/05/15 00:43:33 cheshire
-Remove unused regState_Cancelled
-
-Revision 1.376 2007/05/14 23:51:49 cheshire
-Added constants MAX_REVERSE_MAPPING_NAME_V4 and MAX_REVERSE_MAPPING_NAME_V6
-
-Revision 1.375 2007/05/10 21:19:18 cheshire
-Rate-limit DNS test queries to at most one per three seconds
-(useful when we have a dozen active WAB queries, and then we join a new network)
-
-Revision 1.374 2007/05/07 22:07:47 cheshire
-<rdar://problem/4738025> Enhance GetLargeResourceRecord to decompress more record types
-
-Revision 1.373 2007/05/07 20:43:45 cheshire
-<rdar://problem/4241419> Reduce the number of queries and announcements
-
-Revision 1.372 2007/05/04 22:15:29 cheshire
-Get rid of unused q->RestartTime
-
-Revision 1.371 2007/05/03 22:40:37 cheshire
-<rdar://problem/4669229> mDNSResponder ignores bogus null target in SRV record
-
-Revision 1.370 2007/05/02 22:18:09 cheshire
-Renamed NATTraversalInfo_struct context to NATTraversalContext
-
-Revision 1.369 2007/05/01 21:21:42 cheshire
-Add missing parentheses in LEASE_OPT_RDLEN definition
-
-Revision 1.368 2007/04/30 21:33:38 cheshire
-Fix crash when a callback unregisters a service while the UpdateSRVRecords() loop
-is iterating through the m->ServiceRegistrations list
-
-Revision 1.367 2007/04/28 01:31:59 cheshire
-Improve debugging support for catching memory corruption problems
-
-Revision 1.366 2007/04/27 19:28:02 cheshire
-Any code that calls StartGetZoneData needs to keep a handle to the structure, so
-it can cancel it if necessary. (First noticed as a crash in Apple Remote Desktop
--- it would start a query and then quickly cancel it, and then when
-StartGetZoneData completed, it had a dangling pointer and crashed.)
-
-Revision 1.365 2007/04/26 00:35:15 cheshire
-<rdar://problem/5140339> uDNS: Domain discovery not working over VPN
-Fixes to make sure results update correctly when connectivity changes (e.g. a DNS server
-inside the firewall may give answers where a public one gives none, and vice versa.)
-
-Revision 1.364 2007/04/24 02:07:42 cheshire
-<rdar://problem/4246187> Identical client queries should reference a single shared core query
-Deleted some more redundant code
-
-Revision 1.363 2007/04/24 00:09:47 cheshire
-Remove MappedV4 field from mDNS_struct (not actually used anywhere)
-
-Revision 1.362 2007/04/22 06:02:02 cheshire
-<rdar://problem/4615977> Query should immediately return failure when no server
-
-Revision 1.361 2007/04/21 19:43:33 cheshire
-Code tidying: represent NAT opcodes as bitwise combinations rather than numerical additions
-
-Revision 1.360 2007/04/20 21:17:24 cheshire
-For naming consistency, kDNSRecordTypeNegative should be kDNSRecordTypePacketNegative
-
-Revision 1.359 2007/04/19 22:50:53 cheshire
-<rdar://problem/4246187> Identical client queries should reference a single shared core query
-
-Revision 1.358 2007/04/19 20:06:41 cheshire
-Rename field 'Private' (sounds like a boolean) to more informative 'AuthInfo' (it's a DomainAuthInfo pointer)
-
-Revision 1.357 2007/04/19 18:14:51 cheshire
-In mDNS_AddSearchDomain_CString check for NULL pointer before calling MakeDomainNameFromDNSNameString()
-
-Revision 1.356 2007/04/18 20:56:46 cheshire
-Added mDNS_AddSearchDomain_CString macro
-
-Revision 1.355 2007/04/17 19:21:29 cheshire
-<rdar://problem/5140339> Domain discovery not working over VPN
-
-Revision 1.354 2007/04/05 22:55:34 cheshire
-<rdar://problem/5077076> Records are ending up in Lighthouse without expiry information
-
-Revision 1.353 2007/04/05 20:40:37 cheshire
-Remove unused mDNSPlatformTCPGetFlags()
-
-Revision 1.352 2007/04/04 21:48:52 cheshire
-<rdar://problem/4720694> Combine unicast authoritative answer list with multicast list
-
-Revision 1.351 2007/04/04 01:27:45 cheshire
-Update comment
-
-Revision 1.350 2007/04/04 00:03:26 cheshire
-<rdar://problem/5089862> DNSServiceQueryRecord is returning kDNSServiceErr_NoSuchRecord for empty rdata
-
-Revision 1.349 2007/04/03 19:37:58 cheshire
-Rename mDNSAddrIsv4Private() to more precise mDNSAddrIsRFC1918()
-
-Revision 1.348 2007/04/03 19:13:39 cheshire
-Added macros mDNSSameIPPort, mDNSSameOpaque16, mDNSIPPortIsZero, mDNSOpaque16IsZero
-
-Revision 1.347 2007/03/28 20:59:26 cheshire
-<rdar://problem/4743285> Remove inappropriate use of IsPrivateV4Addr()
-
-Revision 1.346 2007/03/28 15:56:37 cheshire
-<rdar://problem/5085774> Add listing of NAT port mapping and GetAddrInfo requests in SIGINFO output
-
-Revision 1.345 2007/03/22 19:29:23 cheshire
-Add comment and check to ensure StandardAuthRDSize is at least 256 bytes
-
-Revision 1.344 2007/03/22 18:31:48 cheshire
-Put dst parameter first in mDNSPlatformStrCopy/mDNSPlatformMemCopy, like conventional Posix strcpy/memcpy
-
-Revision 1.343 2007/03/22 00:49:20 cheshire
-<rdar://problem/4848295> Advertise model information via Bonjour
-
-Revision 1.342 2007/03/21 23:06:00 cheshire
-Rename uDNS_HostnameInfo to HostnameInfo; deleted some unused fields
-
-Revision 1.341 2007/03/21 20:44:11 cheshire
-Added mDNSAddressIsv4LinkLocal macro
-
-Revision 1.340 2007/03/21 00:30:02 cheshire
-<rdar://problem/4789455> Multiple errors in DNameList-related code
-
-Revision 1.339 2007/03/20 17:07:15 cheshire
-Rename "struct uDNS_TCPSocket_struct" to "TCPSocket", "struct uDNS_UDPSocket_struct" to "UDPSocket"
-
-Revision 1.338 2007/03/10 02:28:28 cheshire
-Added comment explaining NATResponseHndlr
-
-Revision 1.337 2007/03/10 02:02:58 cheshire
-<rdar://problem/4961667> uDNS: LLQ refresh response packet causes cached records to be removed from cache
-Eliminate unnecessary "InternalResponseHndlr responseCallback" function pointer
-
-Revision 1.336 2007/02/28 22:12:24 cheshire
-Get rid of unused mDNSVal32 and mDNSOpaque32fromIntVal
-
-Revision 1.335 2007/02/28 21:49:07 cheshire
-Off-by-one error: SameDomainLabelCS (case-sensitive) was stopping one character short of
-the end of the label, e.g. it would fail to detect that "chesh1" and "chesh2" are different.
-
-Revision 1.334 2007/02/28 01:44:26 cheshire
-<rdar://problem/5027863> Byte order bugs in uDNS.c, uds_daemon.c, dnssd_clientstub.c
-
-Revision 1.333 2007/02/27 22:55:22 cheshire
-Get rid of unused AllDNSLinkGroupv4 and AllDNSLinkGroupv6
-
-Revision 1.332 2007/02/27 02:48:24 cheshire
-Parameter to LNT_GetPublicIP function is IPv4 address, not anonymous "mDNSOpaque32" object
-
-Revision 1.331 2007/02/14 03:16:39 cheshire
-<rdar://problem/4789477> Eliminate unnecessary malloc/free in mDNSCore code
-
-Revision 1.330 2007/02/08 21:12:28 cheshire
-<rdar://problem/4386497> Stop reading /etc/mDNSResponder.conf on every sleep/wake
-
-Revision 1.329 2007/02/07 01:19:36 cheshire
-<rdar://problem/4849427> API: Reconcile conflicting error code values
-
-Revision 1.328 2007/01/25 00:19:40 cheshire
-Add CNAMEReferrals field to DNSQuestion_struct
-
-Revision 1.327 2007/01/23 02:56:10 cheshire
-Store negative results in the cache, instead of generating them out of pktResponseHndlr()
-
-Revision 1.326 2007/01/20 01:30:49 cheshire
-Update comments
-
-Revision 1.325 2007/01/19 18:39:11 cheshire
-Fix a bunch of parameters that should have been declared "const"
-
-Revision 1.324 2007/01/19 18:04:04 cheshire
-For naming consistency, use capital letters for RR types: rdataOpt should be rdataOPT
-
-Revision 1.323 2007/01/17 21:46:02 cheshire
-Remove redundant duplicated "isPrivate" field from LLQ_Info
-
-Revision 1.322 2007/01/10 22:51:56 cheshire
-<rdar://problem/4917539> Add support for one-shot private queries as well as long-lived private queries
-
-Revision 1.321 2007/01/09 22:37:18 cheshire
-Provide ten-second grace period for deleted keys, to give mDNSResponder
-time to delete host name before it gives up access to the required key.
-
-Revision 1.320 2007/01/05 08:30:41 cheshire
-Trim excessive "$Log" checkin history from before 2006
-(checkin history still available via "cvs log ..." of course)
-
-Revision 1.319 2007/01/04 23:11:11 cheshire
-<rdar://problem/4720673> uDNS: Need to start caching unicast records
-When an automatic browsing domain is removed, generate appropriate "remove" events for legacy queries
-
-Revision 1.318 2007/01/04 20:57:48 cheshire
-Rename ReturnCNAME to ReturnIntermed (for ReturnIntermediates)
-
-Revision 1.317 2007/01/04 02:39:53 cheshire
-<rdar://problem/4030599> Hostname passed into DNSServiceRegister ignored for Wide-Area service registrations
-
-Revision 1.316 2006/12/22 20:59:49 cheshire
-<rdar://problem/4742742> Read *all* DNS keys from keychain,
- not just key for the system-wide default registration domain
-
-Revision 1.315 2006/12/20 04:07:35 cheshire
-Remove uDNS_info substructure from AuthRecord_struct
-
-Revision 1.314 2006/12/19 22:49:23 cheshire
-Remove uDNS_info substructure from ServiceRecordSet_struct
-
-Revision 1.313 2006/12/19 02:38:20 cheshire
-Get rid of unnecessary duplicate query ID field from DNSQuestion_struct
-
-Revision 1.312 2006/12/19 02:18:48 cheshire
-Get rid of unnecessary duplicate "void *context" field from DNSQuestion_struct
-
-Revision 1.311 2006/12/16 01:58:31 cheshire
-<rdar://problem/4720673> uDNS: Need to start caching unicast records
-
-Revision 1.310 2006/12/15 19:09:56 cheshire
-<rdar://problem/4769083> ValidateRData() should be stricter about malformed MX and SRV records
-Made DomainNameLength() more defensive by adding a limit parameter, so it can be
-safely used to inspect potentially malformed data received from external sources.
-Without this, a domain name that starts off apparently valid, but extends beyond the end of
-the received packet data, could have appeared valid if the random bytes are already in memory
-beyond the end of the packet just happened to have reasonable values (e.g. all zeroes).
-
-Revision 1.309 2006/12/14 03:02:37 cheshire
-<rdar://problem/4838433> Tools: dns-sd -G 0 only returns IPv6 when you have a routable IPv6 address
-
-Revision 1.308 2006/11/30 23:07:56 herscher
-<rdar://problem/4765644> uDNS: Sync up with Lighthouse changes for Private DNS
-
-Revision 1.307 2006/11/18 05:01:30 cheshire
-Preliminary support for unifying the uDNS and mDNS code,
-including caching of uDNS answers
-
-Revision 1.306 2006/11/10 07:44:04 herscher
-<rdar://problem/4825493> Fix Daemon locking failures while toggling BTMM
-
-Revision 1.305 2006/11/10 00:54:15 cheshire
-<rdar://problem/4816598> Changing case of Computer Name doesn't work
-
-Revision 1.304 2006/10/20 05:35:05 herscher
-<rdar://problem/4720713> uDNS: Merge unicast active question list with multicast list.
-
-Revision 1.303 2006/10/04 21:37:33 herscher
-Remove uDNS_info substructure from DNSQuestion_struct
-
-Revision 1.302 2006/09/26 01:53:25 herscher
-<rdar://problem/4245016> NAT Port Mapping API (for both NAT-PMP and UPnP Gateway Protocol)
-
-Revision 1.301 2006/09/15 21:20:15 cheshire
-Remove uDNS_info substructure from mDNS_struct
-
-Revision 1.300 2006/08/14 23:24:23 cheshire
-Re-licensed mDNSResponder daemon source code under Apache License, Version 2.0
-
-Revision 1.299 2006/07/15 02:01:28 cheshire
-<rdar://problem/4472014> Add Private DNS client functionality to mDNSResponder
-Fix broken "empty string" browsing
-
-Revision 1.298 2006/07/05 22:55:03 cheshire
-<rdar://problem/4472014> Add Private DNS client functionality to mDNSResponder
-Need Private field in uDNS_RegInfo
-
-Revision 1.297 2006/07/05 22:20:03 cheshire
-<rdar://problem/4472014> Add Private DNS client functionality to mDNSResponder
-
-Revision 1.296 2006/06/29 05:28:01 cheshire
-Added comment about mDNSlocal and mDNSexport
-
-Revision 1.295 2006/06/29 03:02:43 cheshire
-<rdar://problem/4607042> mDNSResponder NXDOMAIN and CNAME support
-
-Revision 1.294 2006/06/28 06:50:08 cheshire
-In future we may want to change definition of mDNSs32 from "signed long" to "signed int"
-I doubt anyone is building mDNSResponder on systems where int is 16-bits,
-but lets add a compile-time assertion to make sure.
-
-Revision 1.293 2006/06/12 18:00:43 cheshire
-To make code a little more defensive, check _ILP64 before _LP64,
-in case both are set by mistake on some platforms
-
-Revision 1.292 2006/03/19 17:00:57 cheshire
-Define symbol MaxMsg instead of using hard-coded constant value '80'
-
-Revision 1.291 2006/03/19 02:00:07 cheshire
-<rdar://problem/4073825> Improve logic for delaying packets after repeated interface transitions
-
-Revision 1.290 2006/03/08 22:42:23 cheshire
-Fix spelling mistake: LocalReverseMapomain -> LocalReverseMapDomain
-
-Revision 1.289 2006/02/26 00:54:41 cheshire
-Fixes to avoid code generation warning/error on FreeBSD 7
-
-*/
-
-#ifndef __mDNSClientAPI_h
-#define __mDNSClientAPI_h