aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-01-19 16:55:50 -0800
committerBen Pfaff <blp@nicira.com>2012-02-15 10:18:10 -0800
commit12113c394a9873aa4f54da750d9fb4ff89ccb254 (patch)
treee1ef6abcdb94996af77d79431f6db8ba2563aef9 /lib/packets.h
parent2d57bfce57f2c71d1f396ad091e7c45ed2862f41 (diff)
packets: New function packet_get_tcp_flags(), factored out of dpif.
This will acquire a new user in an upcoming commit. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r--lib/packets.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/packets.h b/lib/packets.h
index 78ccfe90..34a8b4ea 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -29,6 +29,7 @@
struct ofpbuf;
struct ds;
+struct flow;
bool dpid_from_string(const char *s, uint64_t *dpidp);
@@ -468,4 +469,6 @@ void packet_set_ipv4(struct ofpbuf *, ovs_be32 src, ovs_be32 dst, uint8_t tos,
void packet_set_tcp_port(struct ofpbuf *, ovs_be16 src, ovs_be16 dst);
void packet_set_udp_port(struct ofpbuf *, ovs_be16 src, ovs_be16 dst);
+uint8_t packet_get_tcp_flags(const struct ofpbuf *, const struct flow *);
+
#endif /* packets.h */