]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't use a few more blocks either.
authorMichael Jerris <mike@jerris.com>
Thu, 8 Feb 2007 21:21:12 +0000 (21:21 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 8 Feb 2007 21:21:12 +0000 (21:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4173 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 7c9a0e8da4567fc982952ff16cb5f1f7d16dd014..3c111db1d21655dd7a06404b086ad5646c864d65 100644 (file)
@@ -2551,6 +2551,8 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
                                         (strncasecmp(candidates[x].address, "10.", 3) && 
                                          strncasecmp(candidates[x].address, "192.168.", 8) &&
                                          strncasecmp(candidates[x].address, "127.", 4) &&
+                                         strncasecmp(candidates[x].address, "255.", 4) &&
+                                         strncasecmp(candidates[x].address, "0.", 2) &&
                                          strncasecmp(candidates[x].address, "1.", 2) &&
                                          strncasecmp(candidates[x].address, "2.", 2) &&
                                          strncasecmp(candidates[x].address, "172.16.", 7) &&
@@ -2560,6 +2562,7 @@ static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsessi
                                          strncasecmp(candidates[x].address, "172.2", 5) &&
                                          strncasecmp(candidates[x].address, "172.30.", 7) &&
                                          strncasecmp(candidates[x].address, "172.31.", 7)  &&
+                                         strncasecmp(candidates[x].address, "192.0.2.", 8)  && // 192.0.0.0 - 192.0.127.255 is marked as reserved, should we filter all of them?
                                          strncasecmp(candidates[x].address, "169.254.", 8)
                                          ))) {
                                        ldl_payload_t payloads[5];