mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
automerge commit
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@44970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -235,4 +235,19 @@ char *ast_process_quotes_and_slashes(char *start, char find, char replace_with);
|
||||
int getloadavg(double *list, int nelem);
|
||||
#endif
|
||||
|
||||
/*!
|
||||
\brief Disable PMTU discovery on a socket
|
||||
\param sock The socket to manipulate
|
||||
\return Nothing
|
||||
|
||||
On Linux, UDP sockets default to sending packets with the Dont Fragment (DF)
|
||||
bit set. This is supposedly done to allow the application to do PMTU
|
||||
discovery, but Asterisk does not do this.
|
||||
|
||||
Because of this, UDP packets sent by Asterisk that are larger than the MTU
|
||||
of any hop in the path will be lost. This function can be called on a socket
|
||||
to ensure that the DF bit will not be set.
|
||||
*/
|
||||
void ast_enable_packet_fragmentation(int sock);
|
||||
|
||||
#endif /* _ASTERISK_UTILS_H */
|
||||
|
Reference in New Issue
Block a user