diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-12 18:31:26 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-12 18:31:26 +0000 |
commit | b8e500649197199ddefffb2b93dc875a7f1934df (patch) | |
tree | 46586ceeff7c93a40e6160e95a9064297cee7408 /netsock.c | |
parent | 54b6e50502ff33fd6c68d2ae03b2af0f5eedaa9e (diff) |
ensure that IAX2 and SIP sockets allow UDP fragmentation when running on Linux (thanks to Brian Candler on the asterisk-dev list for the tip)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@44955 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'netsock.c')
-rw-r--r-- | netsock.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -147,6 +147,8 @@ struct ast_netsock *ast_netsock_bindaddr(struct ast_netsock_list *list, struct i if (setsockopt(netsocket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos))) ast_log(LOG_WARNING, "Unable to set TOS to %d\n", tos); + ast_enable_packet_fragmentation(netsocket); + ns = malloc(sizeof(struct ast_netsock)); if (ns) { /* Establish I/O callback for socket read */ |