diff options
author | Neale Ranns <nranns@cisco.com> | 2018-05-22 08:40:52 -0700 |
---|---|---|
committer | Damjan Marion <dmarion.lists@gmail.com> | 2018-05-25 11:45:48 +0000 |
commit | 0053de63ec4bf8b9bce7817f1b61c9791baf6c26 (patch) | |
tree | 17fe95628d3b9f5c3d226c3ff79fb2b3027a2b80 /src/vnet/ethernet/arp.h | |
parent | 096e6be4bda3b409aa6fc400d0ce507ea415f26b (diff) |
ARP proxy dumps
Change-Id: I8335ebf266becf2f42bb3f28a17dfed8d9b08f97
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/ethernet/arp.h')
-rw-r--r-- | src/vnet/ethernet/arp.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/vnet/ethernet/arp.h b/src/vnet/ethernet/arp.h new file mode 100644 index 00000000000..7b50ed77538 --- /dev/null +++ b/src/vnet/ethernet/arp.h @@ -0,0 +1,56 @@ +/* + * Copyright (c) 2015 Cisco and/or its affiliates. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __ARP_H__ +#define __ARP_H__ + +#include <vnet/ethernet/ethernet.h> +#include <vnet/ethernet/arp_packet.h> +#include <vnet/ip/ip.h> + +extern int vnet_proxy_arp_add_del (ip4_address_t * lo_addr, + ip4_address_t * hi_addr, + u32 fib_index, int is_del); + +extern 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); + +extern int vnet_arp_unset_ip4_over_ethernet (vnet_main_t * vnm, + u32 sw_if_index, void *a_arg); + +extern int vnet_proxy_arp_fib_reset (u32 fib_id); + +/** + * call back function when walking the DB of proxy ARPs + * @return 0 to stop the walk !0 to continue + */ +typedef walk_rc_t (proxy_arp_walk_t) (const ip4_address_t * lo_addr, + const ip4_address_t * hi_addr, + u32 fib_index, void *dat); + +extern void proxy_arp_walk (proxy_arp_walk_t cb, void *data); + +#endif + +/* + * fd.io coding-style-patch-verification: ON + * + * Local Variables: + * eval: (c-set-style "gnu") + * End: + */ |