Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use IP address types on UDP encap API
[vpp.git]
/
src
/
vnet
/
ip
/
ip6_packet.h
diff --git
a/src/vnet/ip/ip6_packet.h
b/src/vnet/ip/ip6_packet.h
index
70c3dab
..
ceaa7ec
100644
(file)
--- a/
src/vnet/ip/ip6_packet.h
+++ b/
src/vnet/ip/ip6_packet.h
@@
-53,6
+53,11
@@
typedef union
}
ip6_address_t;
}
ip6_address_t;
+typedef struct
+{
+ ip6_address_t addr, mask;
+} ip6_address_and_mask_t;
+
/* Packed so that the mhash key doesn't include uninitialized pad bytes */
/* *INDENT-OFF* */
typedef CLIB_PACKED (struct {
/* Packed so that the mhash key doesn't include uninitialized pad bytes */
/* *INDENT-OFF* */
typedef CLIB_PACKED (struct {
@@
-62,6
+67,13
@@
typedef CLIB_PACKED (struct {
}) ip6_address_fib_t;
/* *INDENT-ON* */
}) ip6_address_fib_t;
/* *INDENT-ON* */
+typedef enum
+{
+ IP46_TYPE_ANY,
+ IP46_TYPE_IP4,
+ IP46_TYPE_IP6
+} ip46_type_t;
+
/* *INDENT-OFF* */
typedef CLIB_PACKED (union {
struct {
/* *INDENT-OFF* */
typedef CLIB_PACKED (union {
struct {