projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Document that mirroring to a GRE tunnel works and is better than RSPAN.
[openvswitch]
/
lib
/
packets.h
diff --git
a/lib/packets.h
b/lib/packets.h
index f45c33121fa11fead88950d88ac1418766c928e9..8e13a25ba4fb9681afe5cb06419abda3febc21a7 100644
(file)
--- a/
lib/packets.h
+++ b/
lib/packets.h
@@
-56,8
+56,8
@@
static inline bool eth_addr_is_local(const uint8_t ea[6])
{
/* Local if it is either a locally administered address or a Nicira random
* address. */
{
/* Local if it is either a locally administered address or a Nicira random
* address. */
- return
!!(ea[0] & 2)
- || (ea[0] == 0x00 && ea[1] == 0x23 && ea[2] == 0x20 &&
!!(ea[3] & 0x80)
);
+ return
ea[0] & 2
+ || (ea[0] == 0x00 && ea[1] == 0x23 && ea[2] == 0x20 &&
ea[3] & 0x80
);
}
static inline bool eth_addr_is_zero(const uint8_t ea[6])
{
}
static inline bool eth_addr_is_zero(const uint8_t ea[6])
{
@@
-328,8
+328,8
@@
BUILD_ASSERT_DECL(UDP_HEADER_LEN == sizeof(struct udp_header));
#define TCP_ACK 0x10
#define TCP_URG 0x20
#define TCP_ACK 0x10
#define TCP_URG 0x20
-#define TCP_FLAGS(tcp_ctl) (
hton
s(tcp_ctl) & 0x003f)
-#define TCP_OFFSET(tcp_ctl) (
hton
s(tcp_ctl) >> 12)
+#define TCP_FLAGS(tcp_ctl) (
ntoh
s(tcp_ctl) & 0x003f)
+#define TCP_OFFSET(tcp_ctl) (
ntoh
s(tcp_ctl) >> 12)
#define TCP_HEADER_LEN 20
struct tcp_header {
#define TCP_HEADER_LEN 20
struct tcp_header {