blob: 4587a8076ec8fe65824050032a006383958866b8 [file] [log] [blame]
Pavel Kotucekc4d1cf72016-12-20 10:01:20 +01001/*
2 * Copyright (c) 2015-2016 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/** \brief l2tpv3 tunnel interface create request
17 @param client_index - opaque cookie to identify the sender
18 @param context - sender context, to match reply w/ request
19 @param client_address - remote client tunnel ip address
20 @param client_address - local tunnel ip address
21 @param is_ipv6 - ipv6 if non-zero, else ipv4
22 @param local_session_id - local tunnel session id
23 @param remote_session_id - remote tunnel session id
24 @param local_cookie - local tunnel cookie
25 @param l2_sublayer_present - l2 sublayer is present in packets if non-zero
26 @param encap_vrf_id - fib identifier used for outgoing encapsulated packets
27*/
28define l2tpv3_create_tunnel
29{
30 u32 client_index;
31 u32 context;
32 u8 client_address[16];
33 u8 our_address[16];
34 u8 is_ipv6;
35 u32 local_session_id;
36 u32 remote_session_id;
37 u64 local_cookie;
38 u64 remote_cookie;
39 u8 l2_sublayer_present;
40 u32 encap_vrf_id;
41};
42
43/** \brief l2tpv3 tunnel interface create response
44 @param context - sender context, to match reply w/ request
45 @param retval - return code for the request
46 @param sw_if_index - index of the new tunnel interface
47*/
48define l2tpv3_create_tunnel_reply
49{
50 u32 context;
51 i32 retval;
52 u32 sw_if_index;
53};
54
Dave Barach11b8dbf2017-04-24 10:46:54 -040055autoreply define l2tpv3_set_tunnel_cookies
Pavel Kotucekc4d1cf72016-12-20 10:01:20 +010056{
57 u32 client_index;
58 u32 context;
59 u32 sw_if_index;
60 u64 new_local_cookie;
61 u64 new_remote_cookie;
62};
63
Pavel Kotucekc4d1cf72016-12-20 10:01:20 +010064define sw_if_l2tpv3_tunnel_details
65{
66 u32 context;
67 u32 sw_if_index;
68 u8 interface_name[64];
69 u8 client_address[16];
70 u8 our_address[16];
71 u32 local_session_id;
72 u32 remote_session_id;
73 u64 local_cookie[2];
74 u64 remote_cookie;
75 u8 l2_sublayer_present;
76};
77
78define sw_if_l2tpv3_tunnel_dump
79{
80 u32 client_index;
81 u32 context;
82};
83
Dave Barach11b8dbf2017-04-24 10:46:54 -040084autoreply define l2tpv3_interface_enable_disable
Pavel Kotucekc4d1cf72016-12-20 10:01:20 +010085{
86 u32 client_index;
87 u32 context;
88 u8 enable_disable;
89 u32 sw_if_index;
90};
91
Dave Barach11b8dbf2017-04-24 10:46:54 -040092autoreply define l2tpv3_set_lookup_key
Pavel Kotucekc4d1cf72016-12-20 10:01:20 +010093{
94 u32 client_index;
95 u32 context;
96 /* 0 = ip6 src_address, 1 = ip6 dst_address, 2 = session_id */
97 u8 key;
98};
99
Pavel Kotucekc4d1cf72016-12-20 10:01:20 +0100100/*
101 * Local Variables:
102 * eval: (c-set-style "gnu")
103 * End:
104 */