Skip to content

Commit

Permalink
Move lib/ofp-print.h to include/openvswitch directory
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Warren <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
Ben Warren authored and blp committed Apr 14, 2016
1 parent 66bd43f commit 25d436f
Show file tree
Hide file tree
Showing 20 changed files with 48 additions and 49 deletions.
1 change: 1 addition & 0 deletions include/openvswitch/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ openvswitchinclude_HEADERS = \
include/openvswitch/ofp-errors.h \
include/openvswitch/ofp-msgs.h \
include/openvswitch/ofp-parse.h \
include/openvswitch/ofp-print.h \
include/openvswitch/ofp-prop.h \
include/openvswitch/ofp-util.h \
include/openvswitch/packets.h \
Expand Down
4 changes: 2 additions & 2 deletions lib/ofp-print.h → include/openvswitch/ofp-print.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

/* OpenFlow protocol pretty-printer. */

#ifndef OFP_PRINT_H
#define OFP_PRINT_H 1
#ifndef OPENVSWITCH_OFP_PRINT_H
#define OPENVSWITCH_OFP_PRINT_H 1

#include <stdint.h>
#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion lib/automake.mk
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ lib_libopenvswitch_la_SOURCES = \
lib/ofp-msgs.c \
lib/ofp-parse.c \
lib/ofp-print.c \
lib/ofp-print.h \
lib/ofp-prop.c \
lib/ofp-util.c \
lib/ofp-version-opt.h \
Expand Down
11 changes: 5 additions & 6 deletions lib/dpif-netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,22 @@
#include "dpif.h"
#include "dpif-provider.h"
#include "dummy.h"
#include "openvswitch/dynamic-string.h"
#include "fat-rwlock.h"
#include "flow.h"
#include "hmapx.h"
#include "latch.h"
#include "openvswitch/list.h"
#include "openvswitch/match.h"
#include "netdev.h"
#include "netdev-dpdk.h"
#include "netdev-vport.h"
#include "netlink.h"
#include "odp-execute.h"
#include "odp-util.h"
#include "ofp-print.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/list.h"
#include "openvswitch/match.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "ovs-numa.h"
#include "ovs-rcu.h"
#include "packets.h"
Expand All @@ -69,8 +70,6 @@
#include "unixctl.h"
#include "util.h"

#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(dpif_netdev);

#define FLOW_DUMP_MAX_BATCH 50
Expand Down
2 changes: 1 addition & 1 deletion lib/dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "netlink.h"
#include "odp-execute.h"
#include "odp-util.h"
#include "ofp-print.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "packets.h"
Expand Down
2 changes: 1 addition & 1 deletion lib/learning-switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
#include "flow.h"
#include "hmap.h"
#include "mac-learning.h"
#include "ofp-print.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/ofpbuf.h"
Expand Down
6 changes: 3 additions & 3 deletions lib/netdev-dpdk.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
#include "dp-packet.h"
#include "dpif-netdev.h"
#include "fatal-signal.h"
#include "openvswitch/list.h"
#include "netdev-dpdk.h"
#include "netdev-provider.h"
#include "netdev-vport.h"
#include "odp-util.h"
#include "ofp-print.h"
#include "openvswitch/list.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/vlog.h"
#include "ovs-numa.h"
#include "ovs-thread.h"
#include "ovs-rcu.h"
Expand All @@ -50,7 +51,6 @@
#include "unaligned.h"
#include "timeval.h"
#include "unixctl.h"
#include "openvswitch/vlog.h"

#include "rte_config.h"
#include "rte_mbuf.h"
Expand Down
8 changes: 4 additions & 4 deletions lib/netdev-dummy.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@

#include "dp-packet.h"
#include "dpif-netdev.h"
#include "openvswitch/dynamic-string.h"
#include "flow.h"
#include "openvswitch/list.h"
#include "netdev-provider.h"
#include "netdev-vport.h"
#include "odp-util.h"
#include "ofp-print.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/list.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "ovs-atomic.h"
#include "packets.h"
#include "pcap-file.h"
Expand All @@ -41,7 +42,6 @@
#include "timeval.h"
#include "unixctl.h"
#include "reconnect.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(netdev_dummy);

Expand Down
6 changes: 3 additions & 3 deletions lib/ofp-print.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*/

#include <config.h>
#include "ofp-print.h"

#include <errno.h>
#include <inttypes.h>
Expand All @@ -30,25 +29,26 @@
#include "byte-order.h"
#include "colors.h"
#include "compiler.h"
#include "dp-packet.h"
#include "flow.h"
#include "learn.h"
#include "multipath.h"
#include "netdev.h"
#include "nx-match.h"
#include "odp-util.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/type-props.h"
#include "packets.h"
#include "dp-packet.h"
#include "unaligned.h"
#include "odp-util.h"
#include "util.h"
#include "uuid.h"

Expand Down
4 changes: 2 additions & 2 deletions lib/ofp-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
*/

#include <config.h>
#include "ofp-print.h"
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/icmp6.h>
#include <stdlib.h>
#include "bitmap.h"
#include "bundle.h"
#include "byte-order.h"
#include "classifier.h"
Expand All @@ -37,6 +37,7 @@
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-prop.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
Expand All @@ -47,7 +48,6 @@
#include "random.h"
#include "tun-metadata.h"
#include "unaligned.h"
#include "bitmap.h"
#include "uuid.h"

VLOG_DEFINE_THIS_MODULE(ofp_util);
Expand Down
8 changes: 4 additions & 4 deletions lib/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,21 @@
#include <stdlib.h>
#include <string.h>
#include "coverage.h"
#include "openvswitch/dynamic-string.h"
#include "fatal-signal.h"
#include "flow.h"
#include "jsonrpc.h"
#include "ofp-print.h"
#include "openvswitch/ofpbuf.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "ovs-thread.h"
#include "packets.h"
#include "poll-loop.h"
#include "random.h"
#include "socket-util.h"
#include "util.h"
#include "openvswitch/vlog.h"

VLOG_DEFINE_THIS_MODULE(stream);

Expand Down
2 changes: 1 addition & 1 deletion lib/vconn.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
#include "coverage.h"
#include "fatal-signal.h"
#include "flow.h"
#include "ofp-print.h"
#include "openflow/nicira-ext.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
Expand Down
2 changes: 1 addition & 1 deletion ofproto/ofproto-dpif.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "nx-match.h"
#include "odp-util.h"
#include "odp-execute.h"
#include "ofp-print.h"
#include "ofproto/ofproto-dpif.h"
#include "ofproto/ofproto-provider.h"
#include "ofproto-dpif-ipfix.h"
Expand All @@ -54,6 +53,7 @@
#include "openvswitch/dynamic-string.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
Expand Down
2 changes: 1 addition & 1 deletion ofproto/ofproto.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include "hmap.h"
#include "netdev.h"
#include "nx-match.h"
#include "ofp-print.h"
#include "ofproto.h"
#include "ofproto-provider.h"
#include "openflow/nicira-ext.h"
Expand All @@ -44,6 +43,7 @@
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
Expand Down
2 changes: 1 addition & 1 deletion ovn/controller/ofctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#include "hash.h"
#include "hmap.h"
#include "ofctrl.h"
#include "ofp-print.h"
#include "openflow/openflow.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/match.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
Expand Down
2 changes: 1 addition & 1 deletion ovn/controller/pinctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
#include "dp-packet.h"
#include "flow.h"
#include "lport.h"
#include "ofp-print.h"
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/vlog.h"
#include "ovn-controller.h"
Expand Down
8 changes: 4 additions & 4 deletions tests/test-flows.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
#include <stdlib.h>
#include <string.h>
#include "classifier.h"
#include "openvswitch/ofpbuf.h"
#include "ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openflow/openflow.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "ovstest.h"
#include "dp-packet.h"
#include "pcap-file.h"
#include "timeval.h"
#include "util.h"
#include "openvswitch/vlog.h"

static void
test_flows_main(int argc OVS_UNUSED, char *argv[] OVS_UNUSED)
Expand Down
2 changes: 1 addition & 1 deletion third-party/ofp-tcpdump.patch
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
+
+#include "interface.h"
+#include "openflow/openflow.h"
+#include "../../lib/ofp-print.h"
+#include "openvswitch/ofp-print.h"
+
+void
+openflow_print(const u_char *sp, u_int length)
Expand Down
2 changes: 1 addition & 1 deletion utilities/ovs-ofctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include "fatal-signal.h"
#include "nx-match.h"
#include "odp-util.h"
#include "ofp-print.h"
#include "ofp-version-opt.h"
#include "ofproto/ofproto.h"
#include "openflow/nicira-ext.h"
Expand All @@ -50,6 +49,7 @@
#include "openvswitch/ofp-actions.h"
#include "openvswitch/ofp-errors.h"
#include "openvswitch/ofp-msgs.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofp-parse.h"
#include "openvswitch/ofpbuf.h"
Expand Down
22 changes: 11 additions & 11 deletions vswitchd/bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,31 @@
#include "daemon.h"
#include "dirs.h"
#include "dpif.h"
#include "openvswitch/dynamic-string.h"
#include "hash.h"
#include "hmap.h"
#include "hmapx.h"
#include "if-notifier.h"
#include "jsonrpc.h"
#include "lacp.h"
#include "openvswitch/list.h"
#include "ovs-lldp.h"
#include "mac-learning.h"
#include "mcast-snooping.h"
#include "openvswitch/meta-flow.h"
#include "netdev.h"
#include "nx-match.h"
#include "ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "ofproto/bond.h"
#include "ofproto/ofproto.h"
#include "openvswitch/dynamic-string.h"
#include "openvswitch/list.h"
#include "openvswitch/meta-flow.h"
#include "openvswitch/ofp-print.h"
#include "openvswitch/ofp-util.h"
#include "openvswitch/ofpbuf.h"
#include "openvswitch/vlog.h"
#include "ovs-lldp.h"
#include "ovs-numa.h"
#include "packets.h"
#include "poll-loop.h"
#include "if-notifier.h"
#include "seq.h"
#include "sflow_api.h"
#include "sha1.h"
#include "shash.h"
#include "smap.h"
Expand All @@ -64,10 +67,7 @@
#include "vlandev.h"
#include "lib/vswitch-idl.h"
#include "xenserver.h"
#include "openvswitch/vlog.h"
#include "sflow_api.h"
#include "vlan-bitmap.h"
#include "packets.h"

VLOG_DEFINE_THIS_MODULE(bridge);

Expand Down

0 comments on commit 25d436f

Please sign in to comment.