Changeset 4656
- Timestamp:
- 11/14/08 14:12:07 (2 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/charon/plugins/kernel_netlink/kernel_netlink_ipsec.c
r4654 r4656 1210 1210 host_t *src, host_t *dst, 1211 1211 host_t *new_src, host_t *new_dst, 1212 bool encap, bool new_encap)1212 bool old_encap, bool new_encap) 1213 1213 { 1214 1214 unsigned char request[NETLINK_BUFFER_SIZE], *pos; … … 1321 1321 { 1322 1322 /* copy all attributes, but not XFRMA_ENCAP if we are disabling it */ 1323 if (rta->rta_type != XFRMA_ENCAP || encap)1323 if (rta->rta_type != XFRMA_ENCAP || new_encap) 1324 1324 { 1325 1325 if (rta->rta_type == XFRMA_ENCAP) … … 1337 1337 1338 1338 rta = (struct rtattr*)pos; 1339 if (tmpl == NULL && encap)1339 if (tmpl == NULL && new_encap) 1340 1340 { /* add tmpl if we are enabling it */ 1341 1341 rta->rta_type = XFRMA_ENCAP;
