xtoxll: Rename "byte-order" since it now include more than xtoxll.
authorBen Pfaff <blp@nicira.com>
Fri, 29 Oct 2010 00:13:18 +0000 (17:13 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 29 Oct 2010 16:48:47 +0000 (09:48 -0700)
Suggested-by: Justin Pettit <jpettit@nicira.com>
16 files changed:
lib/automake.mk
lib/byte-order.h [moved from lib/xtoxll.h with 97% similarity]
lib/flow.c
lib/learning-switch.c
lib/ofp-parse.c
lib/ofp-print.c
lib/ofp-util.c
lib/unaligned.h
ofproto/netflow.c
ofproto/ofproto.c
tests/automake.mk
tests/library.at
tests/test-byte-order.c [moved from tests/test-xtoxll.c with 98% similarity]
tests/test-classifier.c
utilities/ovs-ofctl.c
vswitchd/bridge.c

index c502a3b..5cfac24 100644 (file)
@@ -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
similarity index 97%
rename from lib/xtoxll.h
rename to lib/byte-order.h
index a3734f1..e05a71f 100644 (file)
@@ -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 <arpa/inet.h>
 #include <sys/types.h>
@@ -59,4 +59,4 @@ ntohll(uint64_t n)
          ((((uint64_t) (VALUE)) & UINT64_C(0xff00000000000000)) >> 56))
 #endif
 
-#endif /* xtoxll.h */
+#endif /* byte-order.h */
index 78c45ad..e930a6a 100644 (file)
@@ -20,6 +20,7 @@
 #include <netinet/in.h>
 #include <stdlib.h>
 #include <string.h>
+#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)
 
index 741e0d0..9ed725a 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <time.h>
 
+#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)
 
index e6af036..1f198e9 100644 (file)
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stdlib.h>
 
+#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)
 
index 2591484..7337f68 100644 (file)
@@ -26,6 +26,7 @@
 #include <stdlib.h>
 #include <ctype.h>
 
+#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);
index 05c6f54..db8a49d 100644 (file)
 #include "ofp-print.h"
 #include <inttypes.h>
 #include <stdlib.h>
+#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)
 
index fb167a4..4540c31 100644 (file)
@@ -18,7 +18,7 @@
 #define UNALIGNED_H 1
 
 #include <stdint.h>
-#include "xtoxll.h"
+#include "byte-order.h"
 
 /* Public API. */
 static inline uint16_t get_unaligned_u16(const uint16_t *);
index d9f52ba..83f71a4 100644 (file)
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <stdlib.h>
 #include <unistd.h>
+#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)
 
index 1f2c22d..147c7f2 100644 (file)
@@ -24,6 +24,7 @@
 #include <netinet/in.h>
 #include <stdbool.h>
 #include <stdlib.h>
+#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)
 
index 34b0a80..f9c0de0 100644 (file)
@@ -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 += \
index cf7505c..1dca2b8 100644 (file)
@@ -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
similarity index 98%
rename from tests/test-xtoxll.c
rename to tests/test-byte-order.c
index b658b86..1870754 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <config.h>
-#include "xtoxll.h"
+#include "byte-order.h"
 #include <assert.h>
 #include <inttypes.h>
 
index 73229c2..fe7155b 100644 (file)
 #include "classifier.h"
 #include <errno.h>
 #include <limits.h>
+#include "byte-order.h"
 #include "command-line.h"
 #include "flow.h"
 #include "packets.h"
-#include "xtoxll.h"
 
 #undef NDEBUG
 #include <assert.h>
index 13f583e..cf6a8a3 100644 (file)
@@ -26,6 +26,7 @@
 #include <sys/stat.h>
 #include <sys/time.h>
 
+#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)
 
index 41fcba5..20cfef7 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <config.h>
 #include "bridge.h"
+#include "byte-order.h"
 #include <assert.h>
 #include <errno.h>
 #include <arpa/inet.h>
@@ -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)