FD.io VPP  v18.07.1-19-g511ce25
Vector Packet Processing
arp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 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 #ifndef __ARP_H__
17 #define __ARP_H__
18 
19 #include <vnet/ethernet/ethernet.h>
21 #include <vnet/ip/ip.h>
22 
23 extern int vnet_proxy_arp_add_del (ip4_address_t * lo_addr,
24  ip4_address_t * hi_addr,
25  u32 fib_index, int is_del);
26 
28  u32 sw_if_index,
29  void *a_arg,
30  int is_static,
31  int is_no_fib_entry);
32 
34  u32 sw_if_index, void *a_arg);
35 
36 extern int vnet_proxy_arp_fib_reset (u32 fib_id);
37 
38 /**
39  * call back function when walking the DB of proxy ARPs
40  * @return 0 to stop the walk !0 to continue
41  */
42 typedef walk_rc_t (proxy_arp_walk_t) (const ip4_address_t * lo_addr,
43  const ip4_address_t * hi_addr,
44  u32 fib_index, void *dat);
45 
46 extern void proxy_arp_walk (proxy_arp_walk_t cb, void *data);
47 
48 #endif
49 
50 /*
51  * fd.io coding-style-patch-verification: ON
52  *
53  * Local Variables:
54  * eval: (c-set-style "gnu")
55  * End:
56  */
int vnet_proxy_arp_add_del(ip4_address_t *lo_addr, ip4_address_t *hi_addr, u32 fib_index, int is_del)
Definition: arp.c:2014
int vnet_proxy_arp_fib_reset(u32 fib_id)
Definition: arp.c:2055
enum walk_rc_t_ walk_rc_t
Walk return code.
unsigned int u32
Definition: types.h:88
int vnet_arp_set_ip4_over_ethernet(vnet_main_t *vnm, u32 sw_if_index, void *a_arg, int is_static, int is_no_fib_entry)
Definition: arp.c:1982
void proxy_arp_walk(proxy_arp_walk_t cb, void *data)
Definition: arp.c:2001
walk_rc_t( proxy_arp_walk_t)(const ip4_address_t *lo_addr, const ip4_address_t *hi_addr, u32 fib_index, void *dat)
call back function when walking the DB of proxy ARPs
Definition: arp.h:42
int vnet_arp_unset_ip4_over_ethernet(vnet_main_t *vnm, u32 sw_if_index, void *a_arg)
Control Plane hook to remove an ARP entry.
Definition: arp.c:1538