From 56b0263320ffbf4a8cfc5129f9a49536afe5f663 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Wed, 12 Feb 2014 16:31:03 +0900 Subject: [PATCH] packet: Make set_ethertype() static Make set_ethertype() static as it is not used outside of packet.c Signed-off-by: Simon Horman Signed-off-by: Ben Pfaff --- lib/packets.c | 2 +- lib/packets.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/packets.c b/lib/packets.c index 003e5540d..6c5e973b7 100644 --- a/lib/packets.c +++ b/lib/packets.c @@ -218,7 +218,7 @@ eth_pop_vlan(struct ofpbuf *packet) } /* Set ethertype of the packet. */ -void +static void set_ethertype(struct ofpbuf *packet, ovs_be16 eth_type) { struct eth_header *eh = packet->data; diff --git a/lib/packets.h b/lib/packets.h index ce089bcf3..1855a1c5c 100644 --- a/lib/packets.h +++ b/lib/packets.h @@ -154,8 +154,6 @@ void compose_rarp(struct ofpbuf *, const uint8_t eth_src[ETH_ADDR_LEN]); void eth_push_vlan(struct ofpbuf *, ovs_be16 tpid, ovs_be16 tci); void eth_pop_vlan(struct ofpbuf *); -void set_ethertype(struct ofpbuf *packet, ovs_be16 eth_type); - const char *eth_from_hex(const char *hex, struct ofpbuf **packetp); void eth_format_masked(const uint8_t eth[ETH_ADDR_LEN], const uint8_t mask[ETH_ADDR_LEN], struct ds *s); -- 2.43.0