/*
- * Copyright (c) 2016 Cisco and/or its affiliates.
+ * Copyright (c) 2016-2019 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:
#define __UDP_ENCAP_H__
#include <vnet/ip/ip.h>
-#include <vnet/udp/udp.h>
+#include <vnet/udp/udp_packet.h>
#include <vnet/fib/fib_node.h>
/**
} __attribute__ ((packed)) ue_hdrs;
/**
- * Flags controlling fixup behaviour
+ * The DPO used to forward to the next node in the VLIB graph
*/
- udp_encap_fixup_flags_t ue_flags;
+ dpo_id_t ue_dpo;
/**
- * The DPO used to forward to the next node in the VLIB graph
+ * Flags controlling fixup behaviour
*/
- dpo_id_t ue_dpo;
+ udp_encap_fixup_flags_t ue_flags;
/**
* the protocol of the IP header imposed
/**
* The second cacheline contains control-plane data
*/
- CLIB_CACHE_LINE_ALIGN_MARK (cacheline1);
+ CLIB_CACHE_LINE_ALIGN_MARK (cacheline1);
/**
* linkage into the FIB graph
extern void udp_encap_lock (index_t uei);
extern void udp_encap_unlock (index_t uei);
extern u8 *format_udp_encap (u8 * s, va_list * args);
+extern u8 *format_udp_encap_fixup_flags (u8 *s, va_list *args);
extern void udp_encap_contribute_forwarding (index_t uei,
dpo_proto_t proto,
dpo_id_t * dpo);