projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vlog: Generate vlog-modules.def automatically.
[openvswitch]
/
lib
/
flow.c
diff --git
a/lib/flow.c
b/lib/flow.c
index 26d03fd430146f02005ec991586533820192a4e2..099740dcda6e2d4e4db5f5998af5d9bf7638a1a5 100644
(file)
--- a/
lib/flow.c
+++ b/
lib/flow.c
@@
-175,8
+175,8
@@
flow_extract(struct ofpbuf *packet, ovs_be32 tun_id, uint16_t in_port,
if (flow->dl_type == htons(ETH_TYPE_IP)) {
const struct ip_header *nh = pull_ip(&b);
if (nh) {
if (flow->dl_type == htons(ETH_TYPE_IP)) {
const struct ip_header *nh = pull_ip(&b);
if (nh) {
- flow->nw_src = get_unaligned_
u
32(&nh->ip_src);
- flow->nw_dst = get_unaligned_
u
32(&nh->ip_dst);
+ flow->nw_src = get_unaligned_
be
32(&nh->ip_src);
+ flow->nw_dst = get_unaligned_
be
32(&nh->ip_dst);
flow->nw_tos = nh->ip_tos & IP_DSCP_MASK;
flow->nw_proto = nh->ip_proto;
packet->l4 = b.data;
flow->nw_tos = nh->ip_tos & IP_DSCP_MASK;
flow->nw_proto = nh->ip_proto;
packet->l4 = b.data;