2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

types: New struct eth_addr64 for EUI-64 identifiers.

This will see its first real user in the following commit.

Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Andy Zhou <azhou@ovn.org>
This commit is contained in:
Ben Pfaff
2017-04-05 22:56:17 -07:00
parent b7a859e42a
commit b2342f7a4b
3 changed files with 43 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2011, 2013, 2014, 2016 Nicira, Inc.
* Copyright (c) 2010, 2011, 2013, 2014, 2016, 2017 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -152,4 +152,12 @@ struct eth_addr {
};
};
/* Similar to struct eth_addr, for EUI-64 addresses. */
struct eth_addr64 {
union {
uint8_t ea64[8];
ovs_be16 be16[4];
};
};
#endif /* openvswitch/types.h */