aboutsummaryrefslogtreecommitdiff
path: root/lib/packets.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-12-06 14:09:10 -0800
committerBen Pfaff <blp@nicira.com>2011-12-19 14:53:41 -0800
commite22f17535efae89cf02e4fe7e6ef65507115a684 (patch)
treeb7ed4ba8418a0e03fec6aa161e520f33a3d75d15 /lib/packets.h
parent0e15264f96e3caff662c7998cc739a3dd5c1c0f2 (diff)
packets: New function eth_from_hex().
An upcoming commit will add another user. Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/packets.h')
-rw-r--r--lib/packets.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/packets.h b/lib/packets.h
index 439a7dd0..9e283a5a 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -134,6 +134,8 @@ void compose_benign_packet(struct ofpbuf *, const char *tag,
void eth_push_vlan(struct ofpbuf *, ovs_be16 tci);
void eth_pop_vlan(struct ofpbuf *);
+const char *eth_from_hex(const char *hex, struct ofpbuf **packetp);
+
/* Example:
*
* uint8_t mac[ETH_ADDR_LEN];