Retrieve IPv6 addresses in Upnp_Discovery.
Changing sockaddr_in into sockaddr_storage in Upnp_Discovery to be able to retrieve IPv6 addresses of devices in Control Points using pupnp.
This commit is contained in:
parent
80a65e5f61
commit
03bd7759cd
@ -2,6 +2,13 @@
|
|||||||
Version 1.6.15
|
Version 1.6.15
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2012-01-11 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
|
Retrieve IPv6 addresses in Upnp_Discovery.
|
||||||
|
|
||||||
|
Changing sockaddr_in into sockaddr_storage in Upnp_Discovery to be able
|
||||||
|
to retrieve IPv6 addresses of devices in Control Points using pupnp.
|
||||||
|
|
||||||
2012-01-04 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
2012-01-04 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
Bug fix for IPv4-mapped IPv6 addresses.
|
Bug fix for IPv4-mapped IPv6 addresses.
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2003 Intel Corporation
|
* Copyright (c) 2000-2003 Intel Corporation
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (C) 2011 France Telecom All rights reserved.
|
* Copyright (C) 2011-2012 France Telecom All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
@ -756,7 +756,7 @@ struct Upnp_Discovery
|
|||||||
char Ext[LINE_SIZE];
|
char Ext[LINE_SIZE];
|
||||||
|
|
||||||
/** The host address of the device responding to the search. */
|
/** The host address of the device responding to the search. */
|
||||||
struct sockaddr_in DestAddr;
|
struct sockaddr_storage DestAddr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Returned along with a {\bf UPNP_EVENT_SUBSCRIBE_COMPLETE} or {\bf
|
/** Returned along with a {\bf UPNP_EVENT_SUBSCRIBE_COMPLETE} or {\bf
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2003 Intel Corporation
|
* Copyright (c) 2000-2003 Intel Corporation
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (C) 2012 France Telecom All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
@ -128,7 +129,7 @@ void ssdp_handle_ctrlpt_msg(http_message_t *hmsg, struct sockaddr_storage *dest_
|
|||||||
linecopylen(param.Date, hdr_value.buf, hdr_value.length);
|
linecopylen(param.Date, hdr_value.buf, hdr_value.length);
|
||||||
}
|
}
|
||||||
/* dest addr */
|
/* dest addr */
|
||||||
memcpy(¶m.DestAddr, dest_addr, sizeof(struct sockaddr_in));
|
memcpy(¶m.DestAddr, dest_addr, sizeof(struct sockaddr_storage));
|
||||||
/* EXT */
|
/* EXT */
|
||||||
param.Ext[0] = '\0';
|
param.Ext[0] = '\0';
|
||||||
if (httpmsg_find_hdr(hmsg, HDR_EXT, &hdr_value) != NULL) {
|
if (httpmsg_find_hdr(hmsg, HDR_EXT, &hdr_value) != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user