From 735683ac615ca00ec62aff107ab1a07df037f543 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 21 May 2008 14:57:15 -0700 Subject: [PATCH] Move netdev from switch to lib. This is in preparation for the secure channel wanting to access network devices. --- include/Makefile.am | 1 + {switch => include}/netdev.h | 0 lib/Makefile.am | 1 + {switch => lib}/netdev.c | 0 switch/Makefile.am | 2 -- 5 files changed, 2 insertions(+), 2 deletions(-) rename {switch => include}/netdev.h (100%) rename {switch => lib}/netdev.c (100%) diff --git a/include/Makefile.am b/include/Makefile.am index 2e3f7e50..b6900973 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -9,6 +9,7 @@ noinst_HEADERS = \ flow.h \ hash.h \ list.h \ + netdev.h \ netlink-protocol.h \ netlink.h \ ofp-print.h \ diff --git a/switch/netdev.h b/include/netdev.h similarity index 100% rename from switch/netdev.h rename to include/netdev.h diff --git a/lib/Makefile.am b/lib/Makefile.am index c34cba43..8448333e 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -11,6 +11,7 @@ libopenflow_la_SOURCES = \ flow.c \ hash.c \ list.c \ + netdev.c \ ofp-print.c \ poll-loop.c \ queue.c \ diff --git a/switch/netdev.c b/lib/netdev.c similarity index 100% rename from switch/netdev.c rename to lib/netdev.c diff --git a/switch/Makefile.am b/switch/Makefile.am index 7488e072..c16cef72 100644 --- a/switch/Makefile.am +++ b/switch/Makefile.am @@ -9,8 +9,6 @@ switch_SOURCES = \ crc32.h \ datapath.c \ datapath.h \ - netdev.c \ - netdev.h \ switch.c \ switch-flow.c \ switch-flow.h \ -- 2.30.2