Using ofpbuf_end() to compute payload length would fail if the ofpbuf
had any tailroom.
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
}
tcp = packet->l4;
flags = TCP_FLAGS(tcp->tcp_ctl);
}
tcp = packet->l4;
flags = TCP_FLAGS(tcp->tcp_ctl);
- l7_length = (char *) ofpbuf_end(packet) - (char *) packet->l7;
+ l7_length = (char *) ofpbuf_tail(packet) - (char *) packet->l7;
seq = ntohl(get_16aligned_be32(&tcp->tcp_seq));
/* Construct key. */
seq = ntohl(get_16aligned_be32(&tcp->tcp_seq));
/* Construct key. */