2 * Copyright (c) 2017 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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 /** \brief /** \brief Set or delete an GTPU tunnel
17 @param client_index - opaque cookie to identify the sender
18 @param context - sender context, to match reply w/ request
19 @param is_add - add address if non-zero, else delete
20 @param is_ipv6 - src_address and dst_address is ipv6 or not
21 @param src_address - GTPU tunnel's source address.
22 @param dst_address - GTPU tunnel's destination address.
23 @param mcast_sw_if_index - version, O-bit and C-bit (see nsh_packet.h)
24 @param encap_vrf_id - fib identifier used for outgoing encapsulated packets
25 @param decap_next_index - the index of the next node if success
26 @param teid - Local Tunnel Endpoint Identifier
28 define gtpu_add_del_tunnel
36 u32 mcast_sw_if_index;
42 /** \brief reply for set or delete an GTPU tunnel
43 @param context - sender context, to match reply w/ request
44 @param retval - return code
45 @param sw_if_index - software index of the interface
47 define gtpu_add_del_tunnel_reply
54 /** \brief Dump GTPU tunnel
55 @param client_index - opaque cookie to identify the sender
56 @param context - sender context, to match reply w/ request
57 @param sw_if_index - software index of the interface
59 define gtpu_tunnel_dump
66 /** \brief /** \brief dump details of an GTPU tunnel
67 @param context - sender context, to match reply w/ request
68 @param sw_if_index - software index of the interface
69 @param is_ipv6 - src_address and dst_address is ipv6 or not
70 @param src_address - GTPU tunnel's source address.
71 @param dst_address - GTPU tunnel's destination address.
72 @param mcast_sw_if_index - version, O-bit and C-bit (see nsh_packet.h)
73 @param encap_vrf_id - fib identifier used for outgoing encapsulated packets
74 @param decap_next_index - the index of the next node if success
75 @param teid - Local Tunnel Endpoint Identifier
77 define gtpu_tunnel_details
84 u32 mcast_sw_if_index;
90 /** \brief Interface set gtpu-bypass request
91 @param client_index - opaque cookie to identify the sender
92 @param context - sender context, to match reply w/ request
93 @param sw_if_index - interface used to reach neighbor
94 @param is_ipv6 - if non-zero, enable ipv6-gtpu-bypass, else ipv4-gtpu-bypass
95 @param enable - if non-zero enable, else disable
97 define sw_interface_set_gtpu_bypass
106 /** \brief Interface set gtpu-bypass response
107 @param context - sender context, to match reply w/ request
108 @param retval - return code for the request
110 define sw_interface_set_gtpu_bypass_reply
118 * eval: (c-set-style "gnu")