if (tls_pre_decrypt(c->c2.tls_multi, &c->c2.from, &c->c2.buf, &co,
floated, &ad_start))
{
- /* Restore pre-NCP frame parameters */
- if (is_hard_reset_method2(opcode))
- {
- c->c2.frame = c->c2.frame_initial;
-#ifdef ENABLE_FRAGMENT
- c->c2.frame_fragment = c->c2.frame_fragment_initial;
-#endif
- }
-
interval_action(&c->c2.tmp_int);
/* reset packet received timer if TLS packet */
*/
frame_finalize_options(c, NULL);
-#ifdef ENABLE_FRAGMENT
- /*
- * Set frame parameter for fragment code. This is necessary because
- * the fragmentation code deals with payloads which have already been
- * passed through the compression code.
- */
- c->c2.frame_fragment = c->c2.frame;
- c->c2.frame_fragment_initial = c->c2.frame_fragment;
-#endif
#if defined(ENABLE_FRAGMENT)
/*
do_init_fragment(struct context *c)
{
ASSERT(c->options.ce.fragment);
+
+ /*
+ * Set frame parameter for fragment code. This is necessary because
+ * the fragmentation code deals with payloads which have already been
+ * passed through the compression code.
+ */
+ c->c2.frame_fragment = c->c2.frame;
+
frame_calculate_dynamic(&c->c2.frame_fragment, &c->c1.ks.key_type,
&c->options, get_link_socket_info(c));
fragment_frame_init(c->c2.fragment, &c->c2.frame_fragment);
c->c2.did_open_tun = do_open_tun(c, &error_flags);
}
- c->c2.frame_initial = c->c2.frame;
-
/* print MTU info */
do_print_data_channel_mtu_parms(c);
/* MTU frame parameters */
struct frame frame; /* Active frame parameters */
- struct frame frame_initial; /* Restored on new session */
#ifdef ENABLE_FRAGMENT
/* Object to handle advanced MTU negotiation and datagram fragmentation */
struct fragment_master *fragment;
struct frame frame_fragment;
- struct frame frame_fragment_initial;
- struct frame frame_fragment_omit;
#endif
/*