FD.io VPP  v20.05.1-6-gf53edbc3b
Vector Packet Processing
ip6_nd.c
Go to the documentation of this file.
1 /*
2  * ip/ip6_neighbor.c: IP6 neighbor handling
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/ip6-nd/ip6_nd.h>
19 
22 
23 #include <vnet/fib/ip6_fib.h>
24 #include <vnet/ip/ip6_link.h>
25 #include <vnet/ip/ip6_ll_table.h>
26 
27 /**
28  * @file
29  * @brief IPv6 Neighbor Adjacency and Neighbor Discovery.
30  *
31  * The files contains the API and CLI code for managing IPv6 neighbor
32  * adjacency tables and neighbor discovery logic.
33  */
34 
35 #define DEF_MAX_RADV_INTERVAL 200
36 #define DEF_MIN_RADV_INTERVAL .75 * DEF_MAX_RADV_INTERVAL
37 
38 typedef struct ip6_nd_t_
39 {
40  /* local information */
42 
43  /* stats */
46 } ip6_nd_t;
47 
50 
51 
52 typedef enum
53 {
58 
63  uword is_solicitation)
64 {
65  vnet_main_t *vnm = vnet_get_main ();
66  ip6_main_t *im = &ip6_main;
67  uword n_packets = frame->n_vectors;
68  u32 *from, *to_next;
69  u32 n_left_from, n_left_to_next, next_index, n_advertisements_sent;
71  vlib_node_runtime_t *error_node =
73  int bogus_length;
74 
75  from = vlib_frame_vector_args (frame);
76  n_left_from = n_packets;
77  next_index = node->cached_next_index;
78 
79  if (node->flags & VLIB_NODE_FLAG_TRACE)
80  vlib_trace_frame_buffers_only (vm, node, from, frame->n_vectors,
81  /* stride */ 1,
82  sizeof (icmp6_input_trace_t));
83 
84  option_type =
85  (is_solicitation
86  ? ICMP6_NEIGHBOR_DISCOVERY_OPTION_source_link_layer_address
87  : ICMP6_NEIGHBOR_DISCOVERY_OPTION_target_link_layer_address);
88  n_advertisements_sent = 0;
89 
90  while (n_left_from > 0)
91  {
92  vlib_get_next_frame (vm, node, next_index, to_next, n_left_to_next);
93 
94  while (n_left_from > 0 && n_left_to_next > 0)
95  {
96  vlib_buffer_t *p0;
97  ip6_header_t *ip0;
98  icmp6_neighbor_solicitation_or_advertisement_header_t *h0;
99  icmp6_neighbor_discovery_ethernet_link_layer_address_option_t *o0;
100  u32 bi0, options_len0, sw_if_index0, next0, error0;
101  u32 ip6_sadd_link_local, ip6_sadd_unspecified;
102  int is_rewrite0;
103  u32 ni0;
104 
105  bi0 = to_next[0] = from[0];
106 
107  from += 1;
108  to_next += 1;
109  n_left_from -= 1;
110  n_left_to_next -= 1;
111 
112  p0 = vlib_get_buffer (vm, bi0);
113  ip0 = vlib_buffer_get_current (p0);
114  h0 = ip6_next_header (ip0);
115  options_len0 =
116  clib_net_to_host_u16 (ip0->payload_length) - sizeof (h0[0]);
117 
118  error0 = ICMP6_ERROR_NONE;
119  sw_if_index0 = vnet_buffer (p0)->sw_if_index[VLIB_RX];
120  ip6_sadd_link_local =
122  ip6_sadd_unspecified =
124 
125  /* Check that source address is unspecified, link-local or else on-link. */
126  if (!ip6_sadd_unspecified && !ip6_sadd_link_local)
127  {
128  u32 src_adj_index0 = ip6_src_lookup_for_packet (im, p0, ip0);
129 
130  if (ADJ_INDEX_INVALID != src_adj_index0)
131  {
132  ip_adjacency_t *adj0 = adj_get (src_adj_index0);
133 
134  /* Allow all realistic-looking rewrite adjacencies to pass */
135  ni0 = adj0->lookup_next_index;
136  is_rewrite0 = (ni0 >= IP_LOOKUP_NEXT_ARP) &&
137  (ni0 < IP6_LOOKUP_N_NEXT);
138 
139  error0 = ((adj0->rewrite_header.sw_if_index != sw_if_index0
140  || !is_rewrite0)
141  ?
142  ICMP6_ERROR_NEIGHBOR_SOLICITATION_SOURCE_NOT_ON_LINK
143  : error0);
144  }
145  else
146  {
147  error0 =
148  ICMP6_ERROR_NEIGHBOR_SOLICITATION_SOURCE_NOT_ON_LINK;
149  }
150  }
151 
152  o0 = (void *) (h0 + 1);
153  o0 = ((options_len0 == 8 && o0->header.type == option_type
154  && o0->header.n_data_u64s == 1) ? o0 : 0);
155 
156  /* If src address unspecified or link local, donot learn neighbor MAC */
157  if (PREDICT_TRUE (error0 == ICMP6_ERROR_NONE && o0 != 0 &&
158  !ip6_sadd_unspecified))
159  {
160  ip_neighbor_learn_t learn = {
161  .sw_if_index = sw_if_index0,
162  .type = IP46_TYPE_IP6,
163  .ip.ip6 = (is_solicitation ?
164  ip0->src_address : h0->target_address),
165  };
166  memcpy (&learn.mac, o0->ethernet_address, sizeof (learn.mac));
167  ip_neighbor_learn_dp (&learn);
168  }
169 
170  if (is_solicitation && error0 == ICMP6_ERROR_NONE)
171  {
172  /* Check that target address is local to this router. */
173  fib_node_index_t fei;
174  u32 fib_index;
175 
176  fib_index =
178 
179  if (~0 == fib_index)
180  {
181  error0 = ICMP6_ERROR_NEIGHBOR_SOLICITATION_SOURCE_UNKNOWN;
182  }
183  else
184  {
185  if (ip6_address_is_link_local_unicast (&h0->target_address))
186  {
188  (ip6_ll_fib_get (sw_if_index0),
189  &h0->target_address, 128);
190  }
191  else
192  {
193  fei = ip6_fib_table_lookup_exact_match (fib_index,
194  &h0->target_address,
195  128);
196  }
197 
198  if (FIB_NODE_INDEX_INVALID == fei)
199  {
200  /* The target address is not in the FIB */
201  error0 =
202  ICMP6_ERROR_NEIGHBOR_SOLICITATION_SOURCE_UNKNOWN;
203  }
204  else
205  {
209  {
210  /* It's an address that belongs to one of our interfaces
211  * that's good. */
212  }
213  else
215  (fei, FIB_SOURCE_IP6_ND_PROXY) ||
217  {
218  /* The address was added by IPv6 Proxy ND config.
219  * We should only respond to these if the NS arrived on
220  * the link that has a matching covering prefix */
221  }
222  else
223  {
224  error0 =
225  ICMP6_ERROR_NEIGHBOR_SOLICITATION_SOURCE_UNKNOWN;
226  }
227  }
228  }
229  }
230 
231  if (is_solicitation)
232  next0 = (error0 != ICMP6_ERROR_NONE
235  else
236  {
237  next0 = 0;
238  error0 = error0 == ICMP6_ERROR_NONE ?
239  ICMP6_ERROR_NEIGHBOR_ADVERTISEMENTS_RX : error0;
240  }
241 
242  if (is_solicitation && error0 == ICMP6_ERROR_NONE)
243  {
244  vnet_sw_interface_t *sw_if0;
245  ethernet_interface_t *eth_if0;
246  ethernet_header_t *eth0;
247 
248  /* dst address is either source address or the all-nodes mcast addr */
249  if (!ip6_sadd_unspecified)
250  ip0->dst_address = ip0->src_address;
251  else
253  IP6_MULTICAST_SCOPE_link_local,
254  IP6_MULTICAST_GROUP_ID_all_hosts);
255 
256  ip0->src_address = h0->target_address;
257  ip0->hop_limit = 255;
258  h0->icmp.type = ICMP6_neighbor_advertisement;
259 
260  sw_if0 = vnet_get_sup_sw_interface (vnm, sw_if_index0);
262  eth_if0 =
264  if (eth_if0 && o0)
265  {
266  clib_memcpy (o0->ethernet_address, eth_if0->address, 6);
267  o0->header.type =
268  ICMP6_NEIGHBOR_DISCOVERY_OPTION_target_link_layer_address;
269  }
270 
271  h0->advertisement_flags = clib_host_to_net_u32
274 
275  h0->icmp.checksum = 0;
276  h0->icmp.checksum =
278  &bogus_length);
279  ASSERT (bogus_length == 0);
280 
281  /* Reuse current MAC header, copy SMAC to DMAC and
282  * interface MAC to SMAC */
284  eth0 = vlib_buffer_get_current (p0);
285  clib_memcpy (eth0->dst_address, eth0->src_address, 6);
286  if (eth_if0)
287  clib_memcpy (eth0->src_address, eth_if0->address, 6);
288 
289  /* Setup input and output sw_if_index for packet */
290  ASSERT (vnet_buffer (p0)->sw_if_index[VLIB_RX] == sw_if_index0);
291  vnet_buffer (p0)->sw_if_index[VLIB_TX] = sw_if_index0;
292  vnet_buffer (p0)->sw_if_index[VLIB_RX] =
294 
295  n_advertisements_sent++;
296  }
297 
298  p0->error = error_node->errors[error0];
299 
300  vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
301  to_next, n_left_to_next,
302  bi0, next0);
303  }
304 
305  vlib_put_next_frame (vm, node, next_index, n_left_to_next);
306  }
307 
308  /* Account for advertisements sent. */
309  vlib_error_count (vm, error_node->node_index,
310  ICMP6_ERROR_NEIGHBOR_ADVERTISEMENTS_TX,
311  n_advertisements_sent);
312 
313  return frame->n_vectors;
314 }
315 
316 static const ethernet_interface_t *
318 {
319  const vnet_sw_interface_t *sw;
320 
321  /* lookup radv container - ethernet interfaces only */
322  sw = vnet_get_sup_sw_interface (vnet_get_main (), sw_if_index);
325 
326  return (NULL);
327 }
328 
329 /**
330  * @brief called when IP6 is enabled on a link.
331  * create and initialize router advertisement parameters with default
332  * values for this intfc
333  */
334 static void
336 {
337  const ethernet_interface_t *eth;
338  ip6_nd_t *ind;
339 
340  eth = ip6_nd_get_eth_itf (sw_if_index);
341 
342  if (NULL == eth)
343  return;
344 
345  ASSERT (INDEX_INVALID == ip6_link_delegate_get (sw_if_index,
347 
348  pool_get_zero (ip6_nd_pool, ind);
349 
350  ind->sw_if_index = sw_if_index;
351 
353  ind - ip6_nd_pool);
354 }
355 
356 static void
358 {
359  ip6_nd_t *ind;
360 
361  ind = pool_elt_at_index (ip6_nd_pool, indi);
362 
363  pool_put (ip6_nd_pool, ind);
364 }
365 
366 static uword
369 {
370  return icmp6_neighbor_solicitation_or_advertisement (vm, node, frame,
371  /* is_solicitation */
372  1);
373 }
374 
375 static uword
379 {
380  return icmp6_neighbor_solicitation_or_advertisement (vm, node, frame,
381  /* is_solicitation */
382  0);
383 }
384 
385 /* *INDENT-OFF* */
387 {
388  .function = icmp6_neighbor_solicitation,
389  .name = "icmp6-neighbor-solicitation",
390 
391  .vector_size = sizeof (u32),
392 
393  .format_trace = format_icmp6_input_trace,
394 
395  .n_next_nodes = ICMP6_NEIGHBOR_SOLICITATION_N_NEXT,
396  .next_nodes = {
398  [ICMP6_NEIGHBOR_SOLICITATION_NEXT_REPLY] = "interface-output",
399  },
400 };
401 
403 {
404  .function = icmp6_neighbor_advertisement,
405  .name = "icmp6-neighbor-advertisement",
406 
407  .vector_size = sizeof (u32),
408 
409  .format_trace = format_icmp6_input_trace,
410 
411  .n_next_nodes = 1,
412  .next_nodes = {
413  [0] = "ip6-drop",
414  },
415 };
416 /* *INDENT-ON* */
417 
418 static u8 *
419 format_ip6_nd (u8 * s, va_list * args)
420 {
421  CLIB_UNUSED (index_t indi) = va_arg (*args, index_t);
422  u32 indent = va_arg (*args, u32);
423 
424  s = format (s, "%UNeighbor Discovery: enabled\n",
425  format_white_space, indent);
426 
427  s = format (s, "%UICMP redirects are disabled\n",
428  format_white_space, indent + 2);
429  s = format (s, "%UICMP unreachables are not sent\n",
430  format_white_space, indent + 2);
431  s = format (s, "%UND DAD is disabled\n", format_white_space, indent + 2);
432  //s = format (s, "%UND reachable time is %d milliseconds\n",);
433 
434  return (s);
435 }
436 
437 /**
438  * VFT to act as an implementation of a neighbour protocol
439  */
440 const static ip_neighbor_vft_t ip6_nd_impl_vft = {
442  .inv_proxy6_del = ip6_nd_proxy_del,
443 };
444 
445 /**
446  * VFT for registering as a delegate to an IP6 link
447  */
448 const static ip6_link_delegate_vft_t ip6_nd_delegate_vft = {
450  .ildv_enable = ip6_nd_link_enable,
451  .ildv_format = format_ip6_nd,
452 };
453 
454 static clib_error_t *
456 {
457  icmp6_register_type (vm, ICMP6_neighbor_solicitation,
459  icmp6_register_type (vm, ICMP6_neighbor_advertisement,
461 
462  ip_neighbor_register (IP46_TYPE_IP6, &ip6_nd_impl_vft);
463 
464  ip6_nd_delegate_id = ip6_link_delegate_register (&ip6_nd_delegate_vft);
465 
466  return 0;
467 }
468 
469 /* *INDENT-OFF* */
471 {
472  .runs_after = VLIB_INITS("icmp6_init"),
473 };
474 /* *INDENT-ON* */
475 
476 /*
477  * fd.io coding-style-patch-verification: ON
478  *
479  * Local Variables:
480  * eval: (c-set-style "gnu")
481  * End:
482  */
#define ICMP6_NEIGHBOR_ADVERTISEMENT_FLAG_SOLICITED
static vlib_node_registration_t ip6_icmp_neighbor_advertisement_node
(constructor) VLIB_REGISTER_NODE (ip6_icmp_neighbor_advertisement_node)
Definition: ip6_nd.c:402
#define CLIB_UNUSED(x)
Definition: clib.h:86
Route added as a result of interface configuration.
Definition: fib_source.h:56
vnet_main_t * vnet_get_main(void)
Definition: misc.c:46
#define pool_get_zero(P, E)
Allocate an object E from a pool P and zero it.
Definition: pool.h:255
static uword icmp6_neighbor_advertisement(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_nd.c:376
#define PREDICT_TRUE(x)
Definition: clib.h:119
void ip_neighbor_learn_dp(const ip_neighbor_learn_t *l)
APIs invoked by neighbor implementation (i.s.
static void vlib_error_count(vlib_main_t *vm, uword node_index, uword counter, uword increment)
Definition: error_funcs.h:57
IP unicast adjacency.
Definition: adj.h:227
#define ethernet_buffer_header_size(b)
Determine the size of the Ethernet headers of the current frame in the buffer.
Definition: ethernet.h:452
u8 src_address[6]
Definition: packet.h:56
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
Definition: dpo.h:41
static void ip6_nd_delegate_disable(index_t indi)
Definition: ip6_nd.c:357
u8 * format(u8 *s, const char *fmt,...)
Definition: format.c:424
vlib_error_t * errors
Vector of errors for this node.
Definition: node.h:472
ip6_address_t src_address
Definition: ip6_packet.h:310
unsigned char u8
Definition: types.h:56
static ip6_nd_t * ip6_nd_pool
Definition: ip6_nd.c:49
#define clib_memcpy(d, s, n)
Definition: string.h:180
ethernet_main_t ethernet_main
Definition: init.c:45
int ip6_nd_proxy_add(u32 sw_if_index, const ip6_address_t *addr)
Definition: ip6_nd_proxy.c:72
fib_node_index_t ip6_fib_table_lookup_exact_match(u32 fib_index, const ip6_address_t *addr, u32 len)
Definition: ip6_fib.c:223
static ip_adjacency_t * adj_get(adj_index_t adj_index)
Get a pointer to an adjacency object from its index.
Definition: adj.h:459
#define static_always_inline
Definition: clib.h:106
#define VLIB_INIT_FUNCTION(x)
Definition: init.h:173
u32 local_interface_sw_if_index
Definition: vnet.h:54
#define ICMP6_NEIGHBOR_ADVERTISEMENT_FLAG_OVERRIDE
u8 dst_address[6]
Definition: packet.h:55
u8 * format_white_space(u8 *s, va_list *va)
Definition: std-formats.c:129
static vnet_sw_interface_t * vnet_get_sup_sw_interface(vnet_main_t *vnm, u32 sw_if_index)
icmp6_neighbor_solicitation_or_advertisement_next_t
Definition: ip6_nd.c:52
static u32 ip6_src_lookup_for_packet(ip6_main_t *im, vlib_buffer_t *b, ip6_header_t *i)
return the DPO that the LB stacks on.
Definition: ip6_fib.h:118
static_always_inline uword icmp6_neighbor_solicitation_or_advertisement(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame, uword is_solicitation)
Definition: ip6_nd.c:60
unsigned int u32
Definition: types.h:88
u32 ip6_fib_table_get_index_for_sw_if_index(u32 sw_if_index)
Definition: ip6_fib.c:347
ip6_neighbor_proxy_cfg_t inv_proxy6_add
Definition: ip_neighbor.h:113
u32 sw_if_index
Definition: ip6_mld.c:67
static vlib_node_registration_t ip6_icmp_neighbor_solicitation_node
(constructor) VLIB_REGISTER_NODE (ip6_icmp_neighbor_solicitation_node)
Definition: ip6_nd.c:386
vlib_error_t error
Error code for buffers to be enqueued to error handler.
Definition: buffer.h:136
struct ip6_nd_t_ ip6_nd_t
Definition: fib_entry.h:117
static u8 * format_ip6_nd(u8 *s, va_list *args)
Definition: ip6_nd.c:419
#define ADJ_INDEX_INVALID
Invalid ADJ index - used when no adj is known likewise blazoned capitals INVALID speak volumes where ...
Definition: adj_types.h:36
#define pool_elt_at_index(p, i)
Returns pointer to element at given index.
Definition: pool.h:534
void ip_neighbor_register(ip46_type_t type, const ip_neighbor_vft_t *vft)
Definition: ip_neighbor.c:988
static void * vlib_buffer_get_current(vlib_buffer_t *b)
Get pointer to current data to process.
Definition: buffer.h:229
u32 ip6_ll_fib_get(u32 sw_if_index)
For use in the data plane.
Definition: ip6_ll_table.c:28
#define pool_put(P, E)
Free an object E in pool P.
Definition: pool.h:302
enum icmp6_neighbor_discovery_option_type icmp6_neighbor_discovery_option_type_t
vnet_main_t vnet_main
Definition: misc.c:43
ip6_main_t ip6_main
Definition: ip6_forward.c:2784
u32 node_index
Node index.
Definition: node.h:498
#define vlib_validate_buffer_enqueue_x1(vm, node, next_index, to_next, n_left_to_next, bi0, next0)
Finish enqueueing one buffer forward in the graph.
Definition: buffer_node.h:224
#define vlib_get_next_frame(vm, node, next_index, vectors, n_vectors_left)
Get pointer to next frame vector data by (vlib_node_runtime_t, next_index).
Definition: node_funcs.h:338
vlib_main_t * vm
Definition: in2out_ed.c:1599
vlib_node_registration_t ip6_icmp_input_node
(constructor) VLIB_REGISTER_NODE (ip6_icmp_input_node)
Definition: icmp6.c:240
static clib_error_t * ip6_nd_init(vlib_main_t *vm)
Definition: ip6_nd.c:455
This packet matches an "incomplete adjacency" and packets need to be passed to ARP to find rewrite st...
Definition: adj.h:63
int fib_entry_is_sourced(fib_node_index_t fib_entry_index, fib_source_t source)
#define VLIB_REGISTER_NODE(x,...)
Definition: node.h:169
u16 n_vectors
Definition: node.h:399
static vlib_node_runtime_t * vlib_node_get_runtime(vlib_main_t *vm, u32 node_index)
Get node runtime by node index.
Definition: node_funcs.h:89
Virtual function Table for neighbor protocol implementations to register.
Definition: ip_neighbor.h:107
u32 fib_node_index_t
A typedef of a node index.
Definition: fib_types.h:30
void vlib_put_next_frame(vlib_main_t *vm, vlib_node_runtime_t *r, u32 next_index, u32 n_vectors_left)
Release pointer to next frame vector data.
Definition: main.c:483
vlib_main_t vlib_node_runtime_t * node
Definition: in2out_ed.c:1599
static void * ip6_next_header(ip6_header_t *i)
Definition: ip6_packet.h:371
static ip6_link_delegate_id_t ip6_nd_delegate_id
Definition: ip6_nd.c:48
u16 ip6_tcp_udp_icmp_compute_checksum(vlib_main_t *vm, vlib_buffer_t *p0, ip6_header_t *ip0, int *bogus_lengthp)
Definition: ip6_forward.c:1095
u16 cached_next_index
Next frame index that vector arguments were last enqueued to last time this node ran.
Definition: node.h:517
#define ASSERT(truth)
u32 n_solicitations_rcvd
Definition: ip6_nd.c:44
static void vlib_buffer_advance(vlib_buffer_t *b, word l)
Advance current data pointer by the supplied (signed!) amount.
Definition: buffer.h:248
static uword ip6_address_is_link_local_unicast(const ip6_address_t *a)
Definition: ip6_packet.h:253
IPv6 ND (seen in the link-local tables)
Definition: fib_source.h:96
IPv6 Proxy ND.
Definition: fib_source.h:92
fib_entry_flag_t fib_entry_get_flags_for_source(fib_node_index_t fib_entry_index, fib_source_t source)
Definition: defs.h:47
u32 n_solicitations_dropped
Definition: ip6_nd.c:45
void vlib_trace_frame_buffers_only(vlib_main_t *vm, vlib_node_runtime_t *node, u32 *buffers, uword n_buffers, uword next_buffer_stride, uword n_buffer_data_bytes_in_trace)
Definition: trace.c:47
u16 payload_length
Definition: ip6_packet.h:301
ethernet_interface_t * ethernet_get_interface(ethernet_main_t *em, u32 hw_if_index)
Definition: interface.c:967
int ip6_nd_proxy_del(u32 sw_if_index, const ip6_address_t *addr)
Definition: ip6_nd_proxy.c:78
#define FIB_NODE_INDEX_INVALID
Definition: fib_types.h:31
void icmp6_register_type(vlib_main_t *vm, icmp6_type_t type, u32 node_index)
Definition: icmp6.c:750
ip_lookup_next_t lookup_next_index
Next hop after ip4-lookup.
Definition: adj.h:329
static uword icmp6_neighbor_solicitation(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: ip6_nd.c:367
#define INDEX_INVALID
Invalid index - used when no index is known blazoned capitals INVALID speak volumes where ~0 does not...
Definition: dpo.h:47
VLIB buffer representation.
Definition: buffer.h:102
u64 uword
Definition: types.h:112
static void * vlib_frame_vector_args(vlib_frame_t *f)
Get pointer to frame vector data.
Definition: node_funcs.h:244
static uword ip6_address_is_unspecified(const ip6_address_t *a)
Definition: ip6_packet.h:237
#define vnet_buffer(b)
Definition: buffer.h:417
vnet_sw_interface_type_t type
Definition: interface.h:722
static const ethernet_interface_t * ip6_nd_get_eth_itf(u32 sw_if_index)
Definition: ip6_nd.c:317
vlib_main_t vlib_node_runtime_t vlib_frame_t * frame
Definition: in2out_ed.c:1600
u16 flags
Copy of main node flags.
Definition: node.h:511
#define VLIB_NODE_FLAG_TRACE
Definition: node.h:304
static void ip6_nd_link_enable(u32 sw_if_index)
called when IP6 is enabled on a link.
Definition: ip6_nd.c:335
#define VLIB_INITS(...)
Definition: init.h:344
static vlib_buffer_t * vlib_get_buffer(vlib_main_t *vm, u32 buffer_index)
Translate buffer index into buffer pointer.
Definition: buffer_funcs.h:85
Definition: defs.h:46
ip6_address_t dst_address
Definition: ip6_packet.h:310
static void ip6_set_reserved_multicast_address(ip6_address_t *a, ip6_multicast_address_scope_t scope, u16 id)
Definition: ip6_packet.h:134
format_function_t format_icmp6_input_trace
Definition: icmp6.h:65