mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-09 14:36:48 +00:00
Merged revisions 321044 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r321044 | rmudgett | 2011-05-26 13:10:17 -0500 (Thu, 26 May 2011) | 1 line Update ast_sockaddr comment with an important note. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@321045 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -43,12 +43,22 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Socket address structure. The first member is big enough to contain addresses
|
* \brief Socket address structure.
|
||||||
* of any family. The second member contains the length (in bytes) used in the
|
|
||||||
* first member.
|
|
||||||
*
|
*
|
||||||
* Some BSDs have the length embedded in sockaddr structs. We ignore them.
|
* \details
|
||||||
* (This is the right thing to do.)
|
* The first member is big enough to contain addresses of any
|
||||||
|
* family. The second member contains the length (in bytes) used
|
||||||
|
* in the first member.
|
||||||
|
*
|
||||||
|
* \note
|
||||||
|
* Some BSDs have the length embedded in sockaddr structs. We
|
||||||
|
* ignore them. (This is the right thing to do.)
|
||||||
|
*
|
||||||
|
* \note
|
||||||
|
* It is important to always initialize ast_sockaddr before use
|
||||||
|
* -- even if they are passed to ast_sockaddr_copy() as the
|
||||||
|
* underlying storage could be bigger than what ends up being
|
||||||
|
* copied -- leaving part of the data unitialized.
|
||||||
*/
|
*/
|
||||||
struct ast_sockaddr {
|
struct ast_sockaddr {
|
||||||
struct sockaddr_storage ss;
|
struct sockaddr_storage ss;
|
||||||
|
Reference in New Issue
Block a user