changeset 172:9c5dfc6399a4

Fix bug with Debian Lenny kernel
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 03 Feb 2010 11:27:27 +0900
parents 8ccbfdb49f1c
children 4c0f358b8982
files freeDiameter/sctp.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/sctp.c	Tue Feb 02 14:36:04 2010 +0900
+++ b/freeDiameter/sctp.c	Wed Feb 03 11:27:27 2010 +0900
@@ -305,6 +305,9 @@
 		struct sctp_paddrparams parms;
 		memset(&parms, 0, sizeof(parms));
 		
+		/* Some kernel versions need this to be set */
+		parms.spp_address.ss_family = AF_INET;
+		
 		if (TRACE_BOOL(SCTP_LEVEL)) {
 			sz = sizeof(parms);
 
@@ -323,7 +326,7 @@
 			// fd_log_debug( "                            spp_ipv4_tos      : %hhu\n",parms.spp_ipv4_tos);
 		}
 
-		parms.spp_flags = SPP_HB_ENABLE;	/* Enable heartbeat for the associtation */
+		parms.spp_flags = SPP_HB_ENABLE;	/* Enable heartbeat for the association */
 		#ifdef SPP_PMTUD_ENABLE
 		parms.spp_flags |= SPP_PMTUD_ENABLE;	/* also enable path MTU discovery mechanism */
 		#endif /* SPP_PMTUD_ENABLE */
"Welcome to our mercurial repository"