aboutsummaryrefslogtreecommitdiff
path: root/lib/vconn.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2009-09-15 15:23:45 -0700
committerBen Pfaff <blp@nicira.com>2009-09-16 15:12:27 -0700
commit372179d4f4a1dc6113bc4ea60cee76cb354e22f4 (patch)
tree8e463c2937150245f65706373b833dcd66727c07 /lib/vconn.h
parentb9e8b45a3936441bd0fd1fd156cae498bf72cac8 (diff)
Factor out code for composing OFPT_PACKET_IN messages.
Currently only ofproto.c ever composes OFPT_PACKET_IN messages, but some upcoming code wants to do the same thing, so factor this out into a new function to avoid code duplication.
Diffstat (limited to 'lib/vconn.h')
-rw-r--r--lib/vconn.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vconn.h b/lib/vconn.h
index 9e012bcf..0c13744c 100644
--- a/lib/vconn.h
+++ b/lib/vconn.h
@@ -85,6 +85,9 @@ struct ofpbuf *make_del_flow(const flow_t *);
struct ofpbuf *make_add_simple_flow(const flow_t *,
uint32_t buffer_id, uint16_t out_port,
uint16_t max_idle);
+struct ofpbuf *make_packet_in(uint32_t buffer_id, uint16_t in_port,
+ uint8_t reason,
+ const struct ofpbuf *payload, int max_send_len);
struct ofpbuf *make_packet_out(const struct ofpbuf *packet, uint32_t buffer_id,
uint16_t in_port,
const struct ofp_action_header *,