summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet/iptun/iptun.c
diff options
context:
space:
mode:
authorDan McDonald <danmcd@sun.com>2010-01-08 10:55:54 -0500
committerDan McDonald <danmcd@sun.com>2010-01-08 10:55:54 -0500
commit01ac885fda2ffe304eb33dd60f9b54c93d76d08b (patch)
tree5c3180efdefaac7b912a6db039967d82bf58544c /usr/src/uts/common/inet/iptun/iptun.c
parentaf4595ed84fc11745bc4136f8510c528996355f6 (diff)
downloadillumos-gate-01ac885fda2ffe304eb33dd60f9b54c93d76d08b.tar.gz
6877528 flushing tunnel policy doesn't bump tunnel link MTU
Diffstat (limited to 'usr/src/uts/common/inet/iptun/iptun.c')
-rw-r--r--usr/src/uts/common/inet/iptun/iptun.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr/src/uts/common/inet/iptun/iptun.c b/usr/src/uts/common/inet/iptun/iptun.c
index 5d6b5fd0c8..1f2798872a 100644
--- a/usr/src/uts/common/inet/iptun/iptun.c
+++ b/usr/src/uts/common/inet/iptun/iptun.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -1736,9 +1736,12 @@ iptun_set_policy(datalink_id_t linkid, ipsec_tun_pol_t *itp)
ASSERT(iptun->iptun_itp == NULL);
ITP_REFHOLD(itp);
iptun->iptun_itp = itp;
- /* IPsec policy means IPsec overhead, which means lower MTU. */
- (void) iptun_update_mtu(iptun, NULL, 0);
}
+ /*
+ * IPsec policy means IPsec overhead, which means lower MTU.
+ * Refresh the MTU for this tunnel.
+ */
+ (void) iptun_update_mtu(iptun, NULL, 0);
iptun_exit(iptun);
}