FD.io VPP
v17.01.1-3-gc6833f8
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
adj_rewrite.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 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
17
* A rewrite adjacency has no key, and thus cannot be 'found' from the
18
* FIB resolution code. the client therefore needs to maange these adjacencies
19
*/
20
21
#ifndef __ADJ_REWRITE_H__
22
#define __ADJ_REWRITE_H__
23
24
#include <
vnet/adj/adj_types.h
>
25
26
/**
27
* @brief
28
* Add (and lock) a new or lock an existing neighbour adjacency
29
*
30
* @param nh_proto
31
* The protocol for the next-hop address (v4 or v6)
32
*
33
* @param link_type
34
* A description of the protocol of the packets that will forward
35
* through this adj. On an ethernet interface this is the MAC header's
36
* ether-type
37
*
38
* @param sw_if_index
39
* The interface on which the peer resides
40
*
41
* @param rewrite
42
* The rewrite to prepend to packets
43
*/
44
extern
adj_index_t
adj_rewrite_add_and_lock
(
fib_protocol_t
nh_proto,
45
vnet_link_t
link_type,
46
u32
sw_if_index,
47
u8
*rewrite);
48
49
#endif
adj_rewrite_add_and_lock
adj_index_t adj_rewrite_add_and_lock(fib_protocol_t nh_proto, vnet_link_t link_type, u32 sw_if_index, u8 *rewrite)
A rewrite adjacency has no key, and thus cannot be 'found' from the FIB resolution code...
Definition:
adj_rewrite.c:25
fib_protocol_t
enum fib_protocol_t_ fib_protocol_t
Protocol Type.
adj_types.h
adj_index_t
u32 adj_index_t
An index for adjacencies.
Definition:
adj_types.h:30
u32
unsigned int u32
Definition:
types.h:88
vnet_link_t
enum vnet_link_t_ vnet_link_t
Link Type: A description of the protocol of packets on the link.
u8
unsigned char u8
Definition:
types.h:56
vnet
vnet
adj
adj_rewrite.h
Generated on Tue May 16 2017 01:04:43 for FD.io VPP by
1.8.11