Changeset 4642
- Timestamp:
- 11/12/08 17:47:19 (2 months ago)
- Files:
-
- trunk/src/charon/sa/child_sa.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/charon/sa/child_sa.c
r4639 r4642 336 336 last_use = max(last_use, in); 337 337 } 338 if (this->mode == MODE_TUNNEL)338 if (this->mode != MODE_TRANSPORT) 339 339 { 340 340 if (charon->kernel_interface->query_policy(charon->kernel_interface, … … 619 619 this->my_spi, this->protocol, this->reqid, mode, this->ipcomp, 620 620 this->my_cpi, routed); 621 if (mode == MODE_TUNNEL)621 if (mode != MODE_TRANSPORT) 622 622 { 623 623 status |= charon->kernel_interface->add_policy(charon->kernel_interface, … … 706 706 /* remove old policies first */ 707 707 charon->kernel_interface->del_policy(charon->kernel_interface, 708 my_ts, other_ts, POLICY_OUT, FALSE);708 my_ts, other_ts, POLICY_OUT, FALSE); 709 709 charon->kernel_interface->del_policy(charon->kernel_interface, 710 other_ts, my_ts, POLICY_IN, FALSE);711 if (this->mode == MODE_TUNNEL)710 other_ts, my_ts, POLICY_IN, FALSE); 711 if (this->mode != MODE_TRANSPORT) 712 712 { 713 713 charon->kernel_interface->del_policy(charon->kernel_interface, 714 other_ts, my_ts, POLICY_FWD, FALSE);714 other_ts, my_ts, POLICY_FWD, FALSE); 715 715 } 716 716 … … 744 744 this->protocol, this->reqid, this->mode, this->ipcomp, 745 745 this->my_cpi, FALSE); 746 if (this->mode == MODE_TUNNEL)746 if (this->mode != MODE_TRANSPORT) 747 747 { 748 748 charon->kernel_interface->add_policy(charon->kernel_interface, … … 843 843 { 844 844 charon->kernel_interface->del_policy(charon->kernel_interface, 845 my_ts, other_ts, POLICY_OUT, unrouted);845 my_ts, other_ts, POLICY_OUT, unrouted); 846 846 charon->kernel_interface->del_policy(charon->kernel_interface, 847 other_ts, my_ts, POLICY_IN, unrouted);848 if (this->mode == MODE_TUNNEL)847 other_ts, my_ts, POLICY_IN, unrouted); 848 if (this->mode != MODE_TRANSPORT) 849 849 { 850 850 charon->kernel_interface->del_policy(charon->kernel_interface, 851 other_ts, my_ts, POLICY_FWD, unrouted);851 other_ts, my_ts, POLICY_FWD, unrouted); 852 852 } 853 853 }
