From: Ben Pfaff Date: Fri, 29 Oct 2010 00:13:18 +0000 (-0700) Subject: xtoxll: Rename "byte-order" since it now include more than xtoxll. X-Git-Tag: v1.1.0~962 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=10a24935c9d382e4d85b05d9616843f3d3bb4983;p=sliver-openvswitch.git xtoxll: Rename "byte-order" since it now include more than xtoxll. Suggested-by: Justin Pettit --- diff --git a/lib/automake.mk b/lib/automake.mk index c502a3bdf..5cfac2400 100644 --- a/lib/automake.mk +++ b/lib/automake.mk @@ -14,6 +14,7 @@ lib_libopenvswitch_a_SOURCES = \ lib/backtrace.h \ lib/bitmap.c \ lib/bitmap.h \ + lib/byte-order.h \ lib/byteq.c \ lib/byteq.h \ lib/classifier.c \ @@ -149,8 +150,7 @@ lib_libopenvswitch_a_SOURCES = \ lib/vconn.h \ lib/vlog-modules.def \ lib/vlog.c \ - lib/vlog.h \ - lib/xtoxll.h + lib/vlog.h nodist_lib_libopenvswitch_a_SOURCES = \ lib/coverage-counters.c \ lib/dirs.c diff --git a/lib/xtoxll.h b/lib/byte-order.h similarity index 97% rename from lib/xtoxll.h rename to lib/byte-order.h index a3734f10a..e05a71fb1 100644 --- a/lib/xtoxll.h +++ b/lib/byte-order.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef XTOXLL_H -#define XTOXLL_H 1 +#ifndef BYTE_ORDER_H +#define BYTE_ORDER_H 1 #include #include @@ -59,4 +59,4 @@ ntohll(uint64_t n) ((((uint64_t) (VALUE)) & UINT64_C(0xff00000000000000)) >> 56)) #endif -#endif /* xtoxll.h */ +#endif /* byte-order.h */ diff --git a/lib/flow.c b/lib/flow.c index 78c45ade5..e930a6a4c 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -20,6 +20,7 @@ #include #include #include +#include "byte-order.h" #include "coverage.h" #include "dynamic-string.h" #include "hash.h" @@ -29,7 +30,6 @@ #include "packets.h" #include "unaligned.h" #include "vlog.h" -#include "xtoxll.h" VLOG_DEFINE_THIS_MODULE(flow) diff --git a/lib/learning-switch.c b/lib/learning-switch.c index 741e0d0e5..9ed725a7a 100644 --- a/lib/learning-switch.c +++ b/lib/learning-switch.c @@ -23,6 +23,7 @@ #include #include +#include "byte-order.h" #include "flow.h" #include "hmap.h" #include "mac-learning.h" @@ -38,7 +39,6 @@ #include "timeval.h" #include "vconn.h" #include "vlog.h" -#include "xtoxll.h" VLOG_DEFINE_THIS_MODULE(learning_switch) diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index e6af0362b..1f198e9cd 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -21,6 +21,7 @@ #include #include +#include "byte-order.h" #include "dynamic-string.h" #include "netdev.h" #include "ofp-util.h" @@ -30,7 +31,6 @@ #include "socket-util.h" #include "vconn.h" #include "vlog.h" -#include "xtoxll.h" VLOG_DEFINE_THIS_MODULE(ofp_parse) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 2591484af..7337f6810 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -26,6 +26,7 @@ #include #include +#include "byte-order.h" #include "compiler.h" #include "dynamic-string.h" #include "flow.h" @@ -35,7 +36,6 @@ #include "packets.h" #include "pcap.h" #include "util.h" -#include "xtoxll.h" static void ofp_print_port_name(struct ds *string, uint16_t port); static void ofp_print_queue_name(struct ds *string, uint32_t port); diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 05c6f5467..db8a49d03 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -18,12 +18,12 @@ #include "ofp-print.h" #include #include +#include "byte-order.h" #include "ofp-util.h" #include "ofpbuf.h" #include "packets.h" #include "random.h" #include "vlog.h" -#include "xtoxll.h" VLOG_DEFINE_THIS_MODULE(ofp_util) diff --git a/lib/unaligned.h b/lib/unaligned.h index fb167a4e3..4540c31bb 100644 --- a/lib/unaligned.h +++ b/lib/unaligned.h @@ -18,7 +18,7 @@ #define UNALIGNED_H 1 #include -#include "xtoxll.h" +#include "byte-order.h" /* Public API. */ static inline uint16_t get_unaligned_u16(const uint16_t *); diff --git a/ofproto/netflow.c b/ofproto/netflow.c index d9f52ba5f..83f71a4e6 100644 --- a/ofproto/netflow.c +++ b/ofproto/netflow.c @@ -20,6 +20,7 @@ #include #include #include +#include "byte-order.h" #include "collectors.h" #include "flow.h" #include "netflow.h" @@ -31,7 +32,6 @@ #include "timeval.h" #include "util.h" #include "vlog.h" -#include "xtoxll.h" VLOG_DEFINE_THIS_MODULE(netflow) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 1f2c22d13..147c7f227 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -24,6 +24,7 @@ #include #include #include +#include "byte-order.h" #include "classifier.h" #include "coverage.h" #include "discovery.h" @@ -58,7 +59,6 @@ #include "unixctl.h" #include "vconn.h" #include "vlog.h" -#include "xtoxll.h" VLOG_DEFINE_THIS_MODULE(ofproto) diff --git a/tests/automake.mk b/tests/automake.mk index 34b0a801e..f9c0de0ed 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -61,6 +61,7 @@ lcov_wrappers = \ tests/lcov/ovsdb-server \ tests/lcov/ovsdb-tool \ tests/lcov/test-aes128 \ + tests/lcov/test-byte-order \ tests/lcov/test-classifier \ tests/lcov/test-csum \ tests/lcov/test-dhcp-client \ @@ -78,8 +79,7 @@ lcov_wrappers = \ tests/lcov/test-timeval \ tests/lcov/test-type-props \ tests/lcov/test-uuid \ - tests/lcov/test-vconn \ - tests/lcov/test-xtoxll + tests/lcov/test-vconn $(lcov_wrappers): tests/lcov-wrapper.in @test -d tests/lcov || mkdir tests/lcov @@ -110,6 +110,7 @@ valgrind_wrappers = \ tests/valgrind/ovsdb-server \ tests/valgrind/ovsdb-tool \ tests/valgrind/test-aes128 \ + tests/valgrind/test-byte-order \ tests/valgrind/test-classifier \ tests/valgrind/test-csum \ tests/valgrind/test-dhcp-client \ @@ -127,8 +128,7 @@ valgrind_wrappers = \ tests/valgrind/test-timeval \ tests/valgrind/test-type-props \ tests/valgrind/test-uuid \ - tests/valgrind/test-vconn \ - tests/valgrind/test-xtoxll + tests/valgrind/test-vconn $(valgrind_wrappers): tests/valgrind-wrapper.in @test -d tests/valgrind || mkdir tests/valgrind @@ -270,9 +270,9 @@ EXTRA_DIST += \ tests/testpki-req.pem \ tests/testpki-req2.pem -noinst_PROGRAMS += tests/test-xtoxll -tests_test_xtoxll_SOURCES = tests/test-xtoxll.c -tests_test_xtoxll_LDADD = lib/libopenvswitch.a +noinst_PROGRAMS += tests/test-byte-order +tests_test_byte_order_SOURCES = tests/test-byte-order.c +tests_test_byte_order_LDADD = lib/libopenvswitch.a # Python tests. EXTRA_DIST += \ diff --git a/tests/library.at b/tests/library.at index cf7505c97..1dca2b850 100644 --- a/tests/library.at +++ b/tests/library.at @@ -35,6 +35,6 @@ AT_CHECK([test-strtok_r], [0], [ignore]) AT_CLEANUP AT_SETUP([test byte order conversion]) -AT_KEYWORDS([xtoxll]) -AT_CHECK([test-xtoxll], [0], [ignore]) +AT_KEYWORDS([byte order]) +AT_CHECK([test-byte-order], [0], [ignore]) AT_CLEANUP diff --git a/tests/test-xtoxll.c b/tests/test-byte-order.c similarity index 98% rename from tests/test-xtoxll.c rename to tests/test-byte-order.c index b658b8693..187075457 100644 --- a/tests/test-xtoxll.c +++ b/tests/test-byte-order.c @@ -15,7 +15,7 @@ */ #include -#include "xtoxll.h" +#include "byte-order.h" #include #include diff --git a/tests/test-classifier.c b/tests/test-classifier.c index 73229c2ec..fe7155bb8 100644 --- a/tests/test-classifier.c +++ b/tests/test-classifier.c @@ -29,10 +29,10 @@ #include "classifier.h" #include #include +#include "byte-order.h" #include "command-line.h" #include "flow.h" #include "packets.h" -#include "xtoxll.h" #undef NDEBUG #include diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 13f583e7e..cf6a8a305 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -26,6 +26,7 @@ #include #include +#include "byte-order.h" #include "command-line.h" #include "compiler.h" #include "dirs.h" @@ -44,7 +45,6 @@ #include "util.h" #include "vconn.h" #include "vlog.h" -#include "xtoxll.h" VLOG_DEFINE_THIS_MODULE(ofctl) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 41fcba522..20cfef7df 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -15,6 +15,7 @@ #include #include "bridge.h" +#include "byte-order.h" #include #include #include @@ -65,7 +66,6 @@ #include "vswitchd/vswitch-idl.h" #include "xenserver.h" #include "vlog.h" -#include "xtoxll.h" #include "sflow_api.h" VLOG_DEFINE_THIS_MODULE(bridge)