Bug fix on M-SEARCH response
Devices must respond to M-SEARCH requests for any supported version and the response should specify the same version as was contained in the search target. Previously, the device did not answer if the M-SEARCH request did not contain the same version number than the version number of the device. (cherry picked from commit 4966423d96a2a7d81a5765587f219d11d9bee511)
This commit is contained in:
parent
5ead3f6fee
commit
6567f7ec0d
@ -221,6 +221,15 @@ Version 1.8.0
|
|||||||
Version 1.6.7
|
Version 1.6.7
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2010-09-22 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
|
||||||
|
|
||||||
|
Bug fix on M-SEARCH response
|
||||||
|
|
||||||
|
Devices must respond to M-SEARCH requests for any supported version and the
|
||||||
|
response should specify the same version as was contained in the search target.
|
||||||
|
Previously, the device did not answer if the M-SEARCH request did not
|
||||||
|
contain the same version number than the version number of the device.
|
||||||
|
|
||||||
2010-09-21 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
|
2010-09-21 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
|
||||||
|
|
||||||
Add Content-Language iff Accept-Language
|
Add Content-Language iff Accept-Language
|
||||||
|
@ -268,7 +268,7 @@ int AdvertiseAndReply(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case SSDP_DEVICETYPE: {
|
case SSDP_DEVICETYPE: {
|
||||||
if (!strncasecmp(DeviceType, devType, strlen(DeviceType))) {
|
if (!strncasecmp(DeviceType, devType, strlen(DeviceType)-2)) {
|
||||||
if (atoi(&DeviceType[strlen(DeviceType)-1]) <= atoi(&devType[strlen(devType)-1])) {
|
if (atoi(&DeviceType[strlen(DeviceType)-1]) <= atoi(&devType[strlen(devType)-1])) {
|
||||||
/* the requested version is lower than the device version
|
/* the requested version is lower than the device version
|
||||||
* must reply with the lower version number */
|
* must reply with the lower version number */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user