FD.io VPP  v18.10-34-gcce845e
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 
29  const
30  ethernet_arp_ip4_over_ethernet_address_t
31  * a, int is_static,
32  int is_no_fib_entry);
33 
36  const
37  ethernet_arp_ip4_over_ethernet_address_t
38  * a);
39 
40 extern int vnet_proxy_arp_fib_reset (u32 fib_id);
41 
42 /**
43  * call back function when walking the DB of proxy ARPs
44  * @return 0 to stop the walk !0 to continue
45  */
46 typedef walk_rc_t (proxy_arp_walk_t) (const ip4_address_t * lo_addr,
47  const ip4_address_t * hi_addr,
48  u32 fib_index, void *dat);
49 
50 extern void proxy_arp_walk (proxy_arp_walk_t cb, void *data);
51 
52 #endif
53 
54 /*
55  * fd.io coding-style-patch-verification: ON
56  *
57  * Local Variables:
58  * eval: (c-set-style "gnu")
59  * End:
60  */
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:1994
a
Definition: bitmap.h:538
int vnet_arp_set_ip4_over_ethernet(vnet_main_t *vnm, u32 sw_if_index, const ethernet_arp_ip4_over_ethernet_address_t *a, int is_static, int is_no_fib_entry)
Definition: arp.c:1962
int vnet_proxy_arp_fib_reset(u32 fib_id)
Definition: arp.c:2035
enum walk_rc_t_ walk_rc_t
Walk return code.
u32 sw_if_index
Definition: vxlan_gbp.api:39
unsigned int u32
Definition: types.h:88
int vnet_arp_unset_ip4_over_ethernet(vnet_main_t *vnm, u32 sw_if_index, const ethernet_arp_ip4_over_ethernet_address_t *a)
Control Plane hook to remove an ARP entry.
Definition: arp.c:1550
void proxy_arp_walk(proxy_arp_walk_t cb, void *data)
Definition: arp.c:1981
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:46