2 *------------------------------------------------------------------
3 * nat64_tcp_sm.h - Stateful NAT64 translation TCP State machine
5 * Copyright (c) 2011 Cisco and/or its affiliates.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at:
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *------------------------------------------------------------------
19 #ifndef __NAT64_TCP_SM_H__
20 #define __NAT64_TCP_SM_H__
52 TCP_COND_FORWARD, /* Conditional forward, based on presence of
53 * session and bib entries */
64 nat64_tcp_states next_state;
65 nat64_tcp_actions action;
69 nat64_tcp_trans_t event[TCP_EV_COUNT];
70 } nat64_tcp_state_trans_t;
72 extern nat64_tcp_state_trans_t nat64_tcp_sm_lookup[TCP_NONE];
76 nat64_update_v6_to_v4_tcp (nat64_v6_to_v4_pipeline_data_t *pctx_ptr,
77 nat64_bib_entry_t *bib_ptr);
79 inline u8 nat64_v6_to_v4_tcp_perform_action (
81 nat64_v6_to_v4_pipeline_data_t *pctx_ptr,
82 nat64_bib_entry_t *bib_db,
83 nat64_session_entry_t *session_db);
86 nat64_copy_tcp_into_pctx (nat64_v6_to_v4_pipeline_data_t *pctx_ptr);