blob: 5426d03af69ce13e2e32142a6cd6ba57f69cf397 [file] [log] [blame]
Neale Rannscbe25aa2019-09-30 10:53:31 +00001/*
2 * l2/l2_arp_term.c: IP v4 ARP L2 BD termination
3 *
4 * Copyright (c) 2010 Cisco and/or its affiliates.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#include <vnet/ip/ip46_address.h>
19#include <vnet/ethernet/arp_packet.h>
20
21typedef struct l2_arp_term_publish_ctx_t_
22{
23 u32 sw_if_index;
24 ip46_type_t type;
25 ip46_address_t ip;
26 mac_address_t mac;
27} l2_arp_term_publish_event_t;
28
29enum
30{
31 L2_ARP_TERM_EVENT_PUBLISH,
32};
33
34typedef struct l2_arp_term_main_t_
35{
36 bool publish;
37
38 l2_arp_term_publish_event_t *publish_events;
39
40} l2_arp_term_main_t;
41
42extern l2_arp_term_main_t l2_arp_term_main;
43extern vlib_node_registration_t l2_arp_term_process_node;
44
45extern void l2_arp_term_set_publisher_node (bool on);
46
47
48/*
49 * fd.io coding-style-patch-verification: ON
50 *
51 * Local Variables:
52 * eval: (c-set-style "gnu")
53 * End:
54 */