people/sha0/mDNSResponder.git
10 years agoDon't advertise smb print/file shares if m->AdvertiseLocalAddresses is false
sherscher@apple.com [Fri, 23 Oct 2009 18:09:18 +0000 (18:09 +0000)]
Don't advertise smb print/file shares if m->AdvertiseLocalAddresses is false

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6756 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoUpdate the implementations of gettimeofday() and localtime_r()
sherscher@apple.com [Fri, 23 Oct 2009 18:05:03 +0000 (18:05 +0000)]
Update the implementations of gettimeofday() and localtime_r()

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6755 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoNo longer need to link in mDNSWindows/SystemService/Service.c due to the single-threa...
sherscher@apple.com [Fri, 23 Oct 2009 18:03:04 +0000 (18:03 +0000)]
No longer need to link in mDNSWindows/SystemService/Service.c due to the single-threading code changes that have been made.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6754 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7323353> BTMM: Need to turn on support for SMB
marc@apple.com [Fri, 23 Oct 2009 02:35:39 +0000 (02:35 +0000)]
<rdar://problem/7323353> BTMM: Need to turn on support for SMB

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6753 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agomDNSResponder-215
rlpm@apple.com [Fri, 23 Oct 2009 01:58:31 +0000 (01:58 +0000)]
mDNSResponder-215

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6751 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7324365> Windows machine name does not disappear from Mac Finder...
sherscher@apple.com [Thu, 22 Oct 2009 18:11:41 +0000 (18:11 +0000)]
<rdar://problem/7324365> Windows machine name does not disappear from Mac Finder window

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6750 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7299177> DNS-SD sometimes delivers duplicate browse add events during...
mparthasarathy@apple.com [Tue, 20 Oct 2009 19:45:37 +0000 (19:45 +0000)]
<rdar://problem/7299177> DNS-SD sometimes delivers duplicate browse add events during network transitions

mDNSInterfaceMark has the special interfaceID value -1 which conflicts with mDNSInterface_LocalOnly. There is also code (for NSEC) that uses 1 as special value for InterfaceID. This fix now keeps all the special InterfaceID values in one place to avoid future conflicts and NSEC related code now starts using mDNSInterfaceMark.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6749 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7274595> Don't downgrade long-lived queries to polling queries if...
rlpm@apple.com [Tue, 20 Oct 2009 16:30:07 +0000 (16:30 +0000)]
<rdar://problem/7274595> Don't downgrade long-lived queries to polling queries if SSLHandshake fails

Fix bug in previous commit that broke renewing LLQ leases: We were setting ThisQInterval to 0 in
the (currently completely expected) case where the server closes the connection¬†after we initially
setup the LLQ. ¬†Setting ThisQInterval to 0 makes the question inactive, never to be resurrected.

This fix is two-fold:
1) don't handle tcp-close as an error if we've received at least one response packet over this tcp connection
2) ensure we never set ThisQInterval to 0

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6748 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7302554> mDNSResponder keeps sending WAB queries when DNS configurati...
mparthasarathy@apple.com [Tue, 20 Oct 2009 01:06:01 +0000 (01:06 +0000)]
<rdar://problem/7302554> mDNSResponder keeps sending WAB queries when DNS configuration changes

Need to set the unansweredQueries to zero when we get a positive response so that we don't end up penalizing servers

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6747 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7302554> mDNSResponder keeps sending WAB queries when DNS configurati...
mparthasarathy@apple.com [Mon, 19 Oct 2009 20:16:47 +0000 (20:16 +0000)]
<rdar://problem/7302554> mDNSResponder keeps sending WAB queries when DNS configuration changes

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6746 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoMinor improvements to syslog messages
cheshire@apple.com [Sat, 17 Oct 2009 00:19:26 +0000 (00:19 +0000)]
Minor improvements to syslog messages

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6745 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoMove the InterfaceNameForID extern definition out of APPLE_OSX_mDNSResponder as the...
mparthasarathy@apple.com [Wed, 14 Oct 2009 16:17:03 +0000 (16:17 +0000)]
Move the InterfaceNameForID extern definition out of APPLE_OSX_mDNSResponder as the Windows build also needs it

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6744 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoDefining StrictUnicastOrdering in Platform code breaks builds for other platforms...
mparthasarathy@apple.com [Tue, 13 Oct 2009 23:28:35 +0000 (23:28 +0000)]
Defining StrictUnicastOrdering in Platform code breaks builds for other platforms. Move the definition to Core.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6743 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoBump version to 2.0.0.17
sherscher@apple.com [Tue, 13 Oct 2009 20:56:53 +0000 (20:56 +0000)]
Bump version to 2.0.0.17

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6741 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoFix compile errors on Windows by moving variable declarations to beginning of block.
sherscher@apple.com [Tue, 13 Oct 2009 20:36:05 +0000 (20:36 +0000)]
Fix compile errors on Windows by moving variable declarations to beginning of block.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6740 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7292153> Control Panel icon is blurry
sherscher@apple.com [Tue, 13 Oct 2009 20:22:14 +0000 (20:22 +0000)]
<rdar://problem/7292153> Control Panel icon is blurry

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6739 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7299177> DNS-SD sometimes delivers duplicate browse add events during...
mparthasarathy@apple.com [Tue, 13 Oct 2009 19:54:00 +0000 (19:54 +0000)]
<rdar://problem/7299177> DNS-SD sometimes delivers duplicate browse add events during network transitions

The Platform layer registers interface indices instead of Interface pointers so that registering multiple times with the Core does not cause duplicate events

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6738 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7274595> Don't downgrade long-lived queries to polling queries if...
rlpm@apple.com [Tue, 13 Oct 2009 19:45:47 +0000 (19:45 +0000)]
<rdar://problem/7274595> Don't downgrade long-lived queries to polling queries if SSLHandshake fails

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6737 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7292155> Control Panel name should just be "Bonjour"
sherscher@apple.com [Tue, 13 Oct 2009 19:42:35 +0000 (19:42 +0000)]
<rdar://problem/7292155> Control Panel name should just be "Bonjour"

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6736 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7296909> Changing the Computer Description should update service...
sherscher@apple.com [Tue, 13 Oct 2009 19:06:55 +0000 (19:06 +0000)]
<rdar://problem/7296909> Changing the Computer Description should update service names without requiring a restart

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6735 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoConditionally compile https browsing code
sherscher@apple.com [Fri, 9 Oct 2009 17:44:58 +0000 (17:44 +0000)]
Conditionally compile https browsing code

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6734 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/4262109> IE Plugin should browse for https
sherscher@apple.com [Thu, 8 Oct 2009 18:59:26 +0000 (18:59 +0000)]
<rdar://problem/4262109> IE Plugin should browse for https

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6733 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7276482> Bonjour Printer Wizard should give user more feedback when...
sherscher@apple.com [Thu, 8 Oct 2009 18:08:40 +0000 (18:08 +0000)]
<rdar://problem/7276482> Bonjour Printer Wizard should give user more feedback when configuring printer

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6732 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7144871> back-merge v6, No IOPOWER, No IPSec, etc. changes
rlpm@apple.com [Fri, 2 Oct 2009 00:06:59 +0000 (00:06 +0000)]
<rdar://problem/7144871> back-merge v6, No IOPOWER, No IPSec, etc. changes

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6731 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoClean up the logic in OnBrowse() and add clarifying comments.
sherscher@apple.com [Wed, 30 Sep 2009 20:58:59 +0000 (20:58 +0000)]
Clean up the logic in OnBrowse() and add clarifying comments.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6729 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7265273> Bonjour for Windows doesn't work on Windows 2000
sherscher@apple.com [Wed, 30 Sep 2009 19:04:03 +0000 (19:04 +0000)]
<rdar://problem/7265273> Bonjour for Windows doesn't work on Windows 2000

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6726 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoFix build dependency problem by making mDNSNetMonitor depend on mDNSResponder
sherscher@apple.com [Wed, 30 Sep 2009 07:28:01 +0000 (07:28 +0000)]
Fix build dependency problem by making mDNSNetMonitor depend on mDNSResponder

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6718 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoBump to version 2.0.0.15
sherscher@apple.com [Wed, 30 Sep 2009 07:11:03 +0000 (07:11 +0000)]
Bump to version 2.0.0.15

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6715 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoDon't truncate the portname if installing IPP printer
sherscher@apple.com [Wed, 30 Sep 2009 07:05:05 +0000 (07:05 +0000)]
Don't truncate the portname if installing IPP printer

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6714 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoEnsure that printer port is created before calling AddPrinter()
sherscher@apple.com [Wed, 30 Sep 2009 06:19:34 +0000 (06:19 +0000)]
Ensure that printer port is created before calling AddPrinter()

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6713 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoAdd StrictUnicastOrdering declaration to fix link error
sherscher@apple.com [Wed, 30 Sep 2009 06:16:58 +0000 (06:16 +0000)]
Add StrictUnicastOrdering declaration to fix link error

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6712 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7222658> Sleep Proxy + BTMM: (proxy side) SS wakes on its own 2-5...
cheshire@apple.com [Wed, 30 Sep 2009 01:31:29 +0000 (01:31 +0000)]
<rdar://problem/7222658> Sleep Proxy + BTMM: (proxy side) SS wakes on its own 2-5 minutes after it's gone to sleep
BPF filter needs to capture 20 more bytes, so we have the complete IKE Header to inspect

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6711 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoChanges to solution file to support ControlPanel localization
sherscher@apple.com [Tue, 29 Sep 2009 23:37:33 +0000 (23:37 +0000)]
Changes to solution file to support ControlPanel localization

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6710 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoConfigure ControlPanel for localization
sherscher@apple.com [Tue, 29 Sep 2009 23:36:47 +0000 (23:36 +0000)]
Configure ControlPanel for localization

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6709 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/6813991> BTMM: sleeping server wakes 2-5 minutes after it's gone...
rlpm@apple.com [Tue, 29 Sep 2009 23:00:30 +0000 (23:00 +0000)]
<rdar://problem/6813991> BTMM: sleeping server wakes 2-5 minutes after it's gone to sleep
- No longer rekey unless necessary by adding an idle disconnect to outbound connection configuration files
- Increase the window in which the rekey will happen before the disconnect by increasing the rekey interval

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6708 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7252936> Add a new Services tab to control panel that lets you enable...
sherscher@apple.com [Mon, 28 Sep 2009 20:13:31 +0000 (20:13 +0000)]
<rdar://problem/7252936> Add a new Services tab to control panel that lets you enable/disable SMB

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6707 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7252936> Add a new Services tab to control panel that lets you enable...
sherscher@apple.com [Mon, 28 Sep 2009 19:09:35 +0000 (19:09 +0000)]
<rdar://problem/7252936> Add a new Services tab to control panel that lets you enable/disable SMB

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6706 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoUpdated comments, about NAT uptime calculation, and about when we return NAT error...
cheshire@apple.com [Sat, 26 Sep 2009 01:40:35 +0000 (01:40 +0000)]
Updated comments, about NAT uptime calculation, and about when we return NAT error results to the caller

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6698 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoAdded comments about UpdateAnonymousRacoonConfig()
cheshire@apple.com [Sat, 26 Sep 2009 00:38:39 +0000 (00:38 +0000)]
Added comments about UpdateAnonymousRacoonConfig()

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6697 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7252523> The solution to the problem consists of many parts.
mparthasarathy@apple.com [Fri, 25 Sep 2009 23:18:47 +0000 (23:18 +0000)]
<rdar://problem/7252523> The solution to the problem consists of many parts.

1) Now we don't move the server to the end. Instead, it penalizes the server for 60 seconds so that new questions pick a different unpenalized server if any.

2) If all servers are penalized, it picks the one that is least penalized. Also, we don't penalize a server if it fails to respond to PTR queries as this was one of the common things seen with WAB queries.

3)To avoid doing any sort of learning, "-StrictUnicastOrdering" can now be added to the plist which will prevent penalizing servers but then move on with the next server on the list.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6696 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years agoChange all references from "workgroup" to "domain"
sherscher@apple.com [Fri, 25 Sep 2009 23:07:24 +0000 (23:07 +0000)]
Change all references from "workgroup" to "domain"

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6694 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7245154> Should advertise netbios name in SMB TXT record
sherscher@apple.com [Fri, 25 Sep 2009 21:05:31 +0000 (21:05 +0000)]
<rdar://problem/7245154> Should advertise netbios name in SMB TXT record

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6693 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

10 years ago<rdar://problem/7245171> Should register file and print subtypes for SMB
sherscher@apple.com [Fri, 25 Sep 2009 18:54:48 +0000 (18:54 +0000)]
<rdar://problem/7245171> Should register file and print subtypes for SMB

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6692 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7249438> Bonjour control panel needs a higher resolution icon
sherscher@apple.com [Thu, 24 Sep 2009 20:07:42 +0000 (20:07 +0000)]
<rdar://problem/7249438> Bonjour control panel needs a higher resolution icon

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6691 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7245119> device-info should have model=Windows
sherscher@apple.com [Thu, 24 Sep 2009 19:41:54 +0000 (19:41 +0000)]
<rdar://problem/7245119> device-info should have model=Windows

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6690 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFix potential crasher if an event source is removed while iterating through the event...
sherscher@apple.com [Thu, 24 Sep 2009 18:04:09 +0000 (18:04 +0000)]
Fix potential crasher if an event source is removed while iterating through the event source list.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6689 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoTidy up logic in mDNSPlatformReadTCP
sherscher@apple.com [Thu, 24 Sep 2009 18:00:24 +0000 (18:00 +0000)]
Tidy up logic in mDNSPlatformReadTCP

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6688 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7222658> Sleep Proxy + BTMM: (proxy side) SS wakes on its own 2-5...
cheshire@apple.com [Wed, 23 Sep 2009 03:37:07 +0000 (03:37 +0000)]
<rdar://problem/7222658> Sleep Proxy + BTMM: (proxy side) SS wakes on its own 2-5 minutes after it's gone to sleep
Ignore informational IKE packets

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6687 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBy default project now builds 64-bit on Intel, so if we try to build Bonjour.prefPane...
cheshire@apple.com [Wed, 23 Sep 2009 00:46:36 +0000 (00:46 +0000)]
By default project now builds 64-bit on Intel, so if we try to build Bonjour.prefPane (and ddnswriteconfig) for 10.4 we get:
"Mac OS X version 10.5 or later is needed for use of the new objc abi"
For now I'll just change MACOSX_DEPLOYMENT_TARGET to 10.5 for those targets. We can revisit this later if it's important.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6686 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7239579> WAB/BTMM: Wrong RData length used for TXT record when domain...
rlpm@apple.com [Mon, 21 Sep 2009 17:54:20 +0000 (17:54 +0000)]
<rdar://problem/7239579> WAB/BTMM: Wrong RData length used for TXT record when domain added after TXT record data updated
- Set the servicereg.txtlen when updating a TXT record, so that the correct length will be used if a new domain is added
- Also removed redundant code setting servicereg.txtdata to NULL when it is already known to be NULL

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6684 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBump version to 2.0.0.14
sherscher@apple.com [Mon, 21 Sep 2009 17:51:56 +0000 (17:51 +0000)]
Bump version to 2.0.0.14

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6683 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7193592> Make sure all string compares are case-insensitive
cheshire@apple.com [Sat, 19 Sep 2009 01:36:30 +0000 (01:36 +0000)]
<rdar://problem/7193592> Make sure all string compares are case-insensitive
With YAMAHA RT58i PPPoE router the SSDP response packet says "location:" instead of "Location:"

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6682 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7237146> Allow service types up to 15 characters instead of only 14
cheshire@apple.com [Sat, 19 Sep 2009 01:12:59 +0000 (01:12 +0000)]
<rdar://problem/7237146> Allow service types up to 15 characters instead of only 14

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6681 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/6583331> Configure system service to cleanly log events
sherscher@apple.com [Thu, 17 Sep 2009 22:07:45 +0000 (22:07 +0000)]
<rdar://problem/6583331> Configure system service to cleanly log events

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6680 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoUse RRExpireTime(rr) macro instead of "rr->TimeRcvd + TicksTTL(rr)" expression.
cheshire@apple.com [Thu, 17 Sep 2009 21:20:21 +0000 (21:20 +0000)]
Use RRExpireTime(rr) macro instead of "rr->TimeRcvd + TicksTTL(rr)" expression.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6679 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7186576> Incorrect handling of uDNS records with large TTLs (over...
cheshire@apple.com [Thu, 17 Sep 2009 21:19:21 +0000 (21:19 +0000)]
<rdar://problem/7186576> Incorrect handling of uDNS records with large TTLs (over 21 days)

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6678 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoImproved packet logging display of records with large TTLs
cheshire@apple.com [Thu, 17 Sep 2009 21:14:25 +0000 (21:14 +0000)]
Improved packet logging display of records with large TTLs

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6677 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoAdded packet length to information recorded in "Received packet from ..." syslog...
cheshire@apple.com [Tue, 15 Sep 2009 19:25:50 +0000 (19:25 +0000)]
Added packet length to information recorded in "Received packet from ..." syslog messages

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6676 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/5709564> mDNSResponder is building with MACOSX_DEPLOYMENT_TARGET...
cheshire@apple.com [Tue, 15 Sep 2009 19:24:16 +0000 (19:24 +0000)]
<rdar://problem/5709564> mDNSResponder is building with MACOSX_DEPLOYMENT_TARGET of 10.4
Set VERSION_MIN_REQUIRED to 10.4 to avoid "bootstrap_register is deprecated" warnings from bootstrap.h

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6675 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/5709564> mDNSResponder is building with MACOSX_DEPLOYMENT_TARGET...
cheshire@apple.com [Tue, 15 Sep 2009 00:19:53 +0000 (00:19 +0000)]
<rdar://problem/5709564> mDNSResponder is building with MACOSX_DEPLOYMENT_TARGET of 10.4

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6674 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFixed missing dependency -- Bonjour.prefPane is supposed to build and embed a copy...
cheshire@apple.com [Tue, 15 Sep 2009 00:12:03 +0000 (00:12 +0000)]
Fixed missing dependency -- Bonjour.prefPane is supposed to build and embed a copy of ddnswriteconfig

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6673 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7218255> uDNS: CNAME loop issues
mparthasarathy@apple.com [Sat, 12 Sep 2009 01:01:38 +0000 (01:01 +0000)]
<rdar://problem/7218255> uDNS: CNAME loop issues

1) By bumping up CNAMEReferrals before mDNS_StopQuery_internal, a higher value is propagated to the duplicates question on the list and hence eventually the CNAME referrals stops at 10

2) If a CNAME refers to itself, then don't add it to the cache.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6672 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBump to version 2.0.0.13
sherscher@apple.com [Fri, 11 Sep 2009 22:48:50 +0000 (22:48 +0000)]
Bump to version 2.0.0.13

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6670 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7217108> Bonjour for Windows: After updating registration and/or...
sherscher@apple.com [Fri, 11 Sep 2009 19:45:13 +0000 (19:45 +0000)]
<rdar://problem/7217108> Bonjour for Windows: After updating registration and/or browse domains, the system service is not reflecting those changes

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6669 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBump version to 2.0.0.12
sherscher@apple.com [Fri, 11 Sep 2009 17:53:44 +0000 (17:53 +0000)]
Bump version to 2.0.0.12

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6666 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7213647> Wide-Area for Bonjour does not work
sherscher@apple.com [Thu, 10 Sep 2009 22:08:49 +0000 (22:08 +0000)]
<rdar://problem/7213647> Wide-Area for Bonjour does not work

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6665 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoInitial revision of readme.txt that describes how to setup Visual Studio to build...
sherscher@apple.com [Thu, 10 Sep 2009 06:03:31 +0000 (06:03 +0000)]
Initial revision of readme.txt that describes how to setup Visual Studio to build the extension

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6664 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFix problem with sleep proxy wakeup event
sherscher@apple.com [Thu, 10 Sep 2009 05:38:20 +0000 (05:38 +0000)]
Fix problem with sleep proxy wakeup event

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6662 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBoth mDNS.c and mDNSWin32.h define the UDPSocket_struct type, so #define that name...
sherscher@apple.com [Thu, 10 Sep 2009 04:41:22 +0000 (04:41 +0000)]
Both mDNS.c and mDNSWin32.h define the UDPSocket_struct type, so #define that name before including mDNSWin32.h to fix the compiler error.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6661 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoExplicity use __stdcall calling convention for APC queue callback functions.
sherscher@apple.com [Thu, 10 Sep 2009 04:38:47 +0000 (04:38 +0000)]
Explicity use __stdcall calling convention for APC queue callback functions.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6660 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBump version to 2.0.0.11
sherscher@apple.com [Thu, 10 Sep 2009 00:13:58 +0000 (00:13 +0000)]
Bump version to 2.0.0.11

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6658 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7179778> Remove tcp connect thread by integrating tcp connect event...
sherscher@apple.com [Wed, 9 Sep 2009 22:52:03 +0000 (22:52 +0000)]
<rdar://problem/7179778> Remove tcp connect thread by integrating tcp connect event handling into the WaitForMultipleObject event loop. Unify the mDNSPlatformTCP socket handling code with the udsSupport implementations.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6657 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7179778> Tidy up the alertable I/O code. Unify the duplicated UDPEndR...
sherscher@apple.com [Wed, 9 Sep 2009 00:23:41 +0000 (00:23 +0000)]
<rdar://problem/7179778> Tidy up the alertable I/O code. Unify the duplicated UDPEndRecv code in previous checkin.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6656 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoIncrease readbility of mDNS_NewMessageID
rlpm@apple.com [Tue, 8 Sep 2009 21:33:24 +0000 (21:33 +0000)]
Increase readbility of mDNS_NewMessageID
- use helper functions so we can use conditional short-circuiting
- remove goto & label

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6655 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agom->NextScheduledSPRetry only relevant when m->DelaySleep is not set
cheshire@apple.com [Fri, 4 Sep 2009 18:32:01 +0000 (18:32 +0000)]
m->NextScheduledSPRetry only relevant when m->DelaySleep is not set

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6651 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoChanged mDNSCoreReceiveRawPacket to use common shared definition of IPSECPort instead...
cheshire@apple.com [Fri, 4 Sep 2009 00:33:28 +0000 (00:33 +0000)]
Changed mDNSCoreReceiveRawPacket to use common shared definition of IPSECPort instead of having its own local definition

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6649 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoMinor code tidying and comments
cheshire@apple.com [Fri, 4 Sep 2009 00:26:24 +0000 (00:26 +0000)]
Minor code tidying and comments

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6648 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7196046> Need to wake for IPSec to port 4500 for Back to My Mac
cheshire@apple.com [Fri, 4 Sep 2009 00:23:48 +0000 (00:23 +0000)]
<rdar://problem/7196046> Need to wake for IPSec to port 4500 for Back to My Mac

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6647 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoAdded comment that local_port & remote_port are expressed as numeric integer values
cheshire@apple.com [Thu, 3 Sep 2009 23:58:09 +0000 (23:58 +0000)]
Added comment that local_port & remote_port are expressed as numeric integer values

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6646 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcement...
cheshire@apple.com [Thu, 3 Sep 2009 23:24:31 +0000 (23:24 +0000)]
<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcements to avoid conflicts
Code simplification: Instead of adding question to packet and then immediately retracting that question if
we decide that it would no longer leave enough space in the packet for 'answerforecast' additional bytes,
it's smarter to just subtract 'answerforecast' bytes from the buffer limit, and then the 'putQuestion' itself
will fail if there's not enough space to add the question and still leave 'answerforecast' bytes of free space.

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6645 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcement...
cheshire@apple.com [Wed, 2 Sep 2009 20:38:03 +0000 (20:38 +0000)]
<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcements to avoid conflicts
Additional refinement: Loop that adds questions to the packet needs to take into account
the amount of space that will be needed to add the Owner Option at the end

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6643 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBump version to 2.0.0.10
sherscher@apple.com [Wed, 2 Sep 2009 08:47:09 +0000 (08:47 +0000)]
Bump version to 2.0.0.10

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6642 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7179778> mDNSResponder on Windows should be simplified to avoid creat...
sherscher@apple.com [Wed, 2 Sep 2009 08:36:37 +0000 (08:36 +0000)]
<rdar://problem/7179778> mDNSResponder on Windows should be simplified to avoid creating a thread per client

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6641 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcement...
cheshire@apple.com [Wed, 2 Sep 2009 01:01:16 +0000 (01:01 +0000)]
<rdar://problem/6434656> Sleep Proxy: Put owner OPT records in multicast announcements to avoid conflicts
Fixed incorrect calculation of OwnerRecordSpace.
Because of missing parentheses, and '+' binding tighter than '?:', the expression:
 DNSOpt_Header_Space +  mDNSSameEthAddress(&m->PrimaryMAC, &intf->MAC)  ? DNSOpt_OwnerData_ID_Space : DNSOpt_OwnerData_ID_Wake_Space
evaluated as
(DNSOpt_Header_Space +  mDNSSameEthAddress(&m->PrimaryMAC, &intf->MAC)) ? DNSOpt_OwnerData_ID_Space : DNSOpt_OwnerData_ID_Wake_Space
instead of
 DNSOpt_Header_Space + (mDNSSameEthAddress(&m->PrimaryMAC, &intf->MAC)  ? DNSOpt_OwnerData_ID_Space : DNSOpt_OwnerData_ID_Wake_Space)
This made the result *always* DNSOpt_OwnerData_ID_Space, when it should have been one of
(DNSOpt_Header_Space + DNSOpt_OwnerData_ID_Space) or
(DNSOpt_Header_Space + DNSOpt_OwnerData_ID_Wake_Space)

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6640 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFixes so the project compiles properly (specifically mDNSResponderHelper) when vproc...
cheshire@apple.com [Tue, 1 Sep 2009 23:58:25 +0000 (23:58 +0000)]
Fixes so the project compiles properly (specifically mDNSResponderHelper) when vproc.h does not exist

git-svn-id: http://svn.macosforge.org/repository/mDNSResponder/trunk@6636 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoRemoved DOS carriage return characters from the end of lines
cheshire@apple.com [Fri, 28 Aug 2009 19:28:16 +0000 (19:28 +0000)]
Removed DOS carriage return characters from the end of lines

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6635 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFixed fat-fingered typing mistake: Revision 6623 was only supposed to check in the...
cheshire@apple.com [Fri, 28 Aug 2009 19:23:34 +0000 (19:23 +0000)]
Fixed fat-fingered typing mistake: Revision 6623 was only supposed to check in the fix for mDNS.c, not all my locally-modified files

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6634 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoRe-comment out declaration of TEST_NEW_CLIENTSTUB macro
sherscher@apple.com [Fri, 28 Aug 2009 06:17:16 +0000 (06:17 +0000)]
Re-comment out declaration of TEST_NEW_CLIENTSTUB macro

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6631 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/3807636> Add Apache license verbiage to source code
sherscher@apple.com [Fri, 28 Aug 2009 05:55:45 +0000 (05:55 +0000)]
<rdar://problem/3807636> Add Apache license verbiage to source code

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6630 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/3807636> Firefox plugin example code
sherscher@apple.com [Fri, 28 Aug 2009 05:40:45 +0000 (05:40 +0000)]
<rdar://problem/3807636> Firefox plugin example code

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6629 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoRemoved DOS carriage return characters from the end of lines
cheshire@apple.com [Fri, 28 Aug 2009 01:10:57 +0000 (01:10 +0000)]
Removed DOS carriage return characters from the end of lines

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6624 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFixed compile error on OS X: Need to initialize OwnerOptData owner using "zeroOwner...
cheshire@apple.com [Fri, 28 Aug 2009 00:32:41 +0000 (00:32 +0000)]
Fixed compile error on OS X: Need to initialize OwnerOptData owner using "zeroOwner" not "{ 0 }"

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6623 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFixed "declaration of 'time' shadows a global declaration" warning
cheshire@apple.com [Fri, 28 Aug 2009 00:29:56 +0000 (00:29 +0000)]
Fixed "declaration of 'time' shadows a global declaration" warning

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6622 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoHide the back button on the initial wizard screen.
sherscher@apple.com [Thu, 27 Aug 2009 04:59:19 +0000 (04:59 +0000)]
Hide the back button on the initial wizard screen.

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6621 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoFix warnings when compiling for Windows
sherscher@apple.com [Thu, 27 Aug 2009 04:48:00 +0000 (04:48 +0000)]
Fix warnings when compiling for Windows

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6620 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/7170175> Project file changes for Apple TV
cheshire@apple.com [Wed, 26 Aug 2009 01:00:44 +0000 (01:00 +0000)]
<rdar://problem/7170175> Project file changes for Apple TV

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6619 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/6123911> Use /dynamicbase compiler flag for libraries and executables...
sherscher@apple.com [Tue, 25 Aug 2009 21:23:51 +0000 (21:23 +0000)]
<rdar://problem/6123911> Use /dynamicbase compiler flag for libraries and executables in Bonjour for Windows

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6618 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years ago<rdar://problem/6139342> Need higher resolution version of Printer Wizard icon for...
sherscher@apple.com [Tue, 25 Aug 2009 18:34:18 +0000 (18:34 +0000)]
<rdar://problem/6139342> Need higher resolution version of Printer Wizard icon for Vista

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6617 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoBump to version 2.0.0.9
sherscher@apple.com [Fri, 21 Aug 2009 16:14:09 +0000 (16:14 +0000)]
Bump to version 2.0.0.9

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6615 214c2c4a-bf3b-4dcf-9390-e4dd3010487d

11 years agoWorkaround build error on Windows due to lack of sa_len member in sockaddr struct.
sherscher@apple.com [Fri, 21 Aug 2009 06:10:09 +0000 (06:10 +0000)]
Workaround build error on Windows due to lack of sa_len member in sockaddr struct.

git-svn-id: http://svn.macosforge.org/repository/mdnsresponder/trunk@6614 214c2c4a-bf3b-4dcf-9390-e4dd3010487d