オープンソース・ソフトウェアの開発とダウンロード

Subversion リポジトリの参照

Diff of /trunk/1.8.x/ccs-patch/patches/ccs-patch-2.4.37.diff

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2298 by kumaneko, Mon Mar 23 01:27:04 2009 UTC revision 2299 by kumaneko, Mon Mar 23 06:08:10 2009 UTC
# Line 1542  Source code for this patch is http://www Line 1542  Source code for this patch is http://www
1542                          head = &tcp_bhash[tcp_bhashfn(rover)];                          head = &tcp_bhash[tcp_bhashfn(rover)];
1543                          spin_lock(&head->lock);                          spin_lock(&head->lock);
1544  +                       /***** SAKURA Linux start. *****/  +                       /***** SAKURA Linux start. *****/
1545  +                       if (ccs_may_autobind(rover))  +                       if (ccs_lport_reserved(rover))
1546  +                               goto next;  +                               goto next;
1547  +                       /***** SAKURA Linux end. *****/  +                       /***** SAKURA Linux end. *****/
1548                          for (tb = head->chain; tb; tb = tb->next)                          for (tb = head->chain; tb; tb = tb->next)
# Line 1553  Source code for this patch is http://www Line 1553  Source code for this patch is http://www
1553                          head = &tcp_bhash[tcp_bhashfn(rover)];                          head = &tcp_bhash[tcp_bhashfn(rover)];
1554                          spin_lock(&head->lock);                                  spin_lock(&head->lock);        
1555  +                       /***** SAKURA Linux start. *****/  +                       /***** SAKURA Linux start. *****/
1556  +                       if (ccs_may_autobind(rover))  +                       if (ccs_lport_reserved(rover))
1557  +                               goto next_port;  +                               goto next_port;
1558  +                       /***** SAKURA Linux end. *****/  +                       /***** SAKURA Linux end. *****/
1559    
# Line 1576  Source code for this patch is http://www Line 1576  Source code for this patch is http://www
1576                                                  ((result - sysctl_local_port_range[0]) &                                                  ((result - sysctl_local_port_range[0]) &
1577                                                   (UDP_HTABLE_SIZE - 1));                                                   (UDP_HTABLE_SIZE - 1));
1578  +                               /***** SAKURA Linux start. *****/  +                               /***** SAKURA Linux start. *****/
1579  +                               if (ccs_may_autobind(result))  +                               if (ccs_lport_reserved(result))
1580  +                                       continue;  +                                       continue;
1581  +                               /***** SAKURA Linux end. *****/  +                               /***** SAKURA Linux end. *****/
1582                                  goto gotit;                                  goto gotit;
# Line 1587  Source code for this patch is http://www Line 1587  Source code for this patch is http://www
1587                                          + ((result - sysctl_local_port_range[0]) &                                          + ((result - sysctl_local_port_range[0]) &
1588                                             (UDP_HTABLE_SIZE - 1));                                             (UDP_HTABLE_SIZE - 1));
1589  +                       /***** SAKURA Linux start. *****/  +                       /***** SAKURA Linux start. *****/
1590  +                       if (ccs_may_autobind(result))  +                       if (ccs_lport_reserved(result))
1591  +                               continue;  +                               continue;
1592  +                       /***** SAKURA Linux end. *****/  +                       /***** SAKURA Linux end. *****/
1593                          if (!udp_lport_inuse(result))                          if (!udp_lport_inuse(result))
# Line 1610  Source code for this patch is http://www Line 1610  Source code for this patch is http://www
1610                          head = &tcp_bhash[tcp_bhashfn(rover)];                          head = &tcp_bhash[tcp_bhashfn(rover)];
1611                          spin_lock(&head->lock);                          spin_lock(&head->lock);
1612  +                       /***** SAKURA Linux start. *****/  +                       /***** SAKURA Linux start. *****/
1613  +                       if (ccs_may_autobind(rover))  +                       if (ccs_lport_reserved(rover))
1614  +                               goto next;  +                               goto next;
1615  +                       /***** SAKURA Linux end. *****/  +                       /***** SAKURA Linux end. *****/
1616                          for (tb = head->chain; tb; tb = tb->next)                          for (tb = head->chain; tb; tb = tb->next)
# Line 1633  Source code for this patch is http://www Line 1633  Source code for this patch is http://www
1633                                                  ((result - sysctl_local_port_range[0]) &                                                  ((result - sysctl_local_port_range[0]) &
1634                                                   (UDP_HTABLE_SIZE - 1));                                                   (UDP_HTABLE_SIZE - 1));
1635  +                               /***** SAKURA Linux start. *****/  +                               /***** SAKURA Linux start. *****/
1636  +                               if (ccs_may_autobind(result))  +                               if (ccs_lport_reserved(result))
1637  +                                       continue;  +                                       continue;
1638  +                               /***** SAKURA Linux end. *****/  +                               /***** SAKURA Linux end. *****/
1639                                  goto gotit;                                  goto gotit;
# Line 1644  Source code for this patch is http://www Line 1644  Source code for this patch is http://www
1644                                          + ((result - sysctl_local_port_range[0]) &                                          + ((result - sysctl_local_port_range[0]) &
1645                                             (UDP_HTABLE_SIZE - 1));                                             (UDP_HTABLE_SIZE - 1));
1646  +                       /***** SAKURA Linux start. *****/  +                       /***** SAKURA Linux start. *****/
1647  +                       if (ccs_may_autobind(result))  +                       if (ccs_lport_reserved(result))
1648  +                               continue;  +                               continue;
1649  +                       /***** SAKURA Linux end. *****/  +                       /***** SAKURA Linux end. *****/
1650                          if (!udp_lport_inuse(result))                          if (!udp_lport_inuse(result))

Legend:
Removed from v.2298  
changed lines
  Added in v.2299

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26