Skip to content

Commit

Permalink
dhcp6: moved dhcp6/duid.[ch] to src/duid.[ch]
Browse files Browse the repository at this point in the history
  • Loading branch information
mtomaschewski committed Jan 29, 2014
1 parent fa5aef7 commit fc734c9
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 15 deletions.
2 changes: 0 additions & 2 deletions dhcp6/Makefile.am
Expand Up @@ -17,7 +17,6 @@ wickedd_dhcp6_LDADD = $(top_builddir)/src/libwicked.la
wickedd_dhcp6_SOURCES = \
dbus-api.c \
device.c \
duid.c \
fsm.c \
main.c \
protocol.c \
Expand All @@ -27,7 +26,6 @@ EXTRA_DIST = \
dbus-api.h \
device.h \
dhcp6.h \
duid.h \
fsm.h \
protocol.h

Expand Down
3 changes: 1 addition & 2 deletions dhcp6/device.c
Expand Up @@ -38,11 +38,10 @@
#include "dhcp6/dhcp6.h"
#include "dhcp6/device.h"
#include "dhcp6/protocol.h"
#include "dhcp6/duid.h"
#include "dhcp6/fsm.h"

#include "appconfig.h"
#include "util_priv.h"
#include "duid.h"


/*
Expand Down
3 changes: 2 additions & 1 deletion dhcp6/fsm.c
Expand Up @@ -33,8 +33,9 @@
#include "dhcp6/dhcp6.h"
#include "dhcp6/device.h"
#include "dhcp6/protocol.h"
#include "dhcp6/duid.h"
#include "dhcp6/fsm.h"
#include "duid.h"


struct ni_dhcp6_message {
struct in6_addr sender;
Expand Down
3 changes: 2 additions & 1 deletion dhcp6/main.c
Expand Up @@ -42,7 +42,8 @@
#include <wicked/leaseinfo.h>

#include "dhcp6/dbus-api.h"
#include "dhcp6/duid.h"
#include "duid.h"


#define CONFIG_DHCP6_STATE_FILE "dhcp6-state.xml"

Expand Down
6 changes: 2 additions & 4 deletions dhcp6/protocol.c
Expand Up @@ -32,7 +32,6 @@
#include <fcntl.h>
#include <errno.h>
#include <ctype.h>

#include <netinet/in.h>
#include <arpa/inet.h>

Expand All @@ -49,13 +48,12 @@
#include "dhcp6/dhcp6.h"
#include "dhcp6/device.h"
#include "dhcp6/protocol.h"
#include "dhcp6/duid.h"
#include "dhcp6/fsm.h"

#include "buffer.h"
#include "socket_priv.h"
#include "netinfo_priv.h"
#include "buffer.h"
#include "debug.h"
#include "duid.h"


/*
Expand Down
3 changes: 2 additions & 1 deletion dhcp6/state.c
Expand Up @@ -34,7 +34,8 @@
#include <wicked/util.h>
#include <wicked/xml.h>

#include "dhcp6/duid.h"
#include "duid.h"


#define CONFIG_DHCP6_DUID_NODE "default-duid"
#define CONFIG_DHCP6_DUID_FILE "dhcp6-duid.xml"
Expand Down
2 changes: 2 additions & 0 deletions src/Makefile.am
Expand Up @@ -53,6 +53,7 @@ libwicked_la_SOURCES = \
dbus-object.c \
dbus-server.c \
dbus-xml.c \
duid.c \
errors.c \
ethernet.c \
extension.c \
Expand Down Expand Up @@ -154,6 +155,7 @@ EXTRA_DIST = \
dbus-server.h \
debug.h \
dhcp6/options.h \
duid.h \
ipv6_priv.h \
kernel.h \
lldp-priv.h \
Expand Down
2 changes: 1 addition & 1 deletion dhcp6/duid.c → src/duid.c
Expand Up @@ -30,7 +30,7 @@

#include <wicked/logging.h>

#include <dhcp6/duid.h>
#include "duid.h"
#include "util_priv.h"


Expand Down
7 changes: 4 additions & 3 deletions dhcp6/duid.h → src/duid.h
Expand Up @@ -18,8 +18,8 @@
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*/
#ifndef __WICKED_DHCP6_DUID_H__
#define __WICKED_DHCP6_DUID_H__
#ifndef __WICKED_DUID_H__
#define __WICKED_DUID_H__

#include <wicked/types.h>
#include <wicked/util.h>
Expand All @@ -30,6 +30,7 @@
* not including the type code.
*
* http://tools.ietf.org/html/rfc3315#section-9.1
* http://tools.ietf.org/html/rfc4361
*/
#define NI_DUID_TYPE_LEN sizeof(uint16_t)
#define NI_DUID_DATA_LEN 128
Expand Down Expand Up @@ -72,4 +73,4 @@ static inline const char * ni_duid_print_hex(const ni_opaque_t *duid)
return ni_print_hex(duid->data, duid->len);
}

#endif /* __WICKED_DHCP6_DUID_H__ */
#endif /* __WICKED_DUID_H__ */

0 comments on commit fc734c9

Please sign in to comment.