[hipl-commit] [trunk] Rev 3728: Renamed lib/core/utils.[c|h] to lib/core/prefix.[c.h]

  • From: Miika Komu <miika@xxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Sat, 27 Feb 2010 15:59:37 +0200

Committer: Miika Komu <miika@xxxxxx>
Date: Sat Feb 27 15:59:35 2010 +0200
Revision: 3728
Revision-id: miika@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Renamed lib/core/utils.[c|h] to lib/core/prefix.[c.h]
  
  The utils file contained address prefix manipulation functions except 
  for one macro which I moved elsewhere. I think it's enough to have a 
  one "misc.c" in the project... if I have time, I'll split that one also 
  later.

Modified:
  R  lib/core/utils.c => lib/core/prefix.c
  R  lib/core/utils.h => lib/core/prefix.h
  M  Makefile.am
  M  firewall/user_ipsec_esp.c
  M  hipd/hit_to_ip.c
  M  hipd/netdev.h
  M  hipd/oppdb.h
  M  hipsock/Makefile
  M  lib/conf/hipconf.c
  M  lib/core/debug.h
  M  lib/core/misc.c
  M  lib/core/misc.h
  M  test/sqliteteststub.c
  M  lib/core/prefix.c
  M  lib/core/prefix.h

=== modified file 'Makefile.am'
--- Makefile.am 2010-02-27 12:34:38 +0000
+++ Makefile.am 2010-02-27 13:59:35 +0000
@@ -338,7 +338,7 @@
 lib_core_libhipcore_la_SOURCES = lib/core/builder.c \
                                  lib/core/hashtable.c \
                                  lib/core/hashtree.c \
-                                 lib/core/utils.c \
+                                 lib/core/prefix.c \
                                  lib/core/certtools.c \
                                  lib/core/linkedlist.c \
                                  lib/core/debug.c \

=== modified file 'firewall/user_ipsec_esp.c'
--- firewall/user_ipsec_esp.c   2010-02-17 13:55:23 +0000
+++ firewall/user_ipsec_esp.c   2010-02-27 13:59:35 +0000
@@ -31,7 +31,7 @@
 #include <openssl/evp.h>
 #include "user_ipsec_esp.h"
 #include "esp_prot_api.h"
-#include "lib/core/utils.h"
+#include "lib/core/prefix.h"
 #include "lib/core/misc.h"
 
 /* for some reason the ICV for ESP authentication is truncated to 12 bytes */

=== modified file 'hipd/hit_to_ip.c'
--- hipd/hit_to_ip.c    2010-02-27 12:26:13 +0000
+++ hipd/hit_to_ip.c    2010-02-27 13:59:35 +0000
@@ -21,7 +21,7 @@
 #include "hit_to_ip.h"
 #include "lib/core/list.h"
 #include "lib/core/debug.h"
-#include "lib/core/utils.h"
+#include "lib/core/prefix.h"
 #include "maintenance.h"
 #include "lib/conf/hipconf.h"
 

=== modified file 'hipd/netdev.h'
--- hipd/netdev.h       2010-02-27 12:26:13 +0000
+++ hipd/netdev.h       2010-02-27 13:59:35 +0000
@@ -15,7 +15,7 @@
 #include "lib/tool/nlink.h"
 #include "lib/core/list.h"
 #include "lib/core/debug.h"
-#include "lib/core/utils.h"
+#include "lib/core/prefix.h"
 #include "lib/core/misc.h"
 #include "hit_to_ip.h"
 

=== modified file 'hipd/oppdb.h'
--- hipd/oppdb.h        2010-02-17 13:08:39 +0000
+++ hipd/oppdb.h        2010-02-27 13:59:35 +0000
@@ -18,7 +18,7 @@
 #include "lib/core/hashtable.h"
 #include "lib/core/builder.h"
 #include "lib/tool/lutil.h"
-#include "lib/core/utils.h"
+#include "lib/core/prefix.h"
 #include "oppipdb.h"
 
 struct hip_opp_blocking_request_entry {

=== modified file 'hipsock/Makefile'
--- hipsock/Makefile    2010-02-18 14:58:39 +0000
+++ hipsock/Makefile    2010-02-27 13:59:35 +0000
@@ -18,7 +18,7 @@
        $(LN) $(LIBHIPCORE)/builder.c
        $(LN) $(LIBHIPCORE)/builder.h
        $(LN) $(LIBHIPCORE)/protodefs.h
-       $(LN) $(LIBHIPCORE)/utils.h
+       $(LN) $(LIBHIPCORE)/prefix.h
        $(LN) $(LIBHIPCORE)/misc.c
        $(LN) $(LIBHIPCORE)/misc.h
        $(LN) $(LIBHIPCORE)/state.h

=== modified file 'lib/conf/hipconf.c'
--- lib/conf/hipconf.c  2010-02-26 11:16:16 +0000
+++ lib/conf/hipconf.c  2010-02-27 13:59:35 +0000
@@ -42,7 +42,7 @@
 #include "lib/core/builder.h"
 #include "lib/core/debug.h"
 #include "hipconf.h"
-#include "lib/core/utils.h"
+#include "lib/core/prefix.h"
 #include "lib/dht/libhipdht.h"
 
 /**

=== modified file 'lib/core/debug.h'
--- lib/core/debug.h    2010-02-17 13:08:39 +0000
+++ lib/core/debug.h    2010-02-27 13:59:35 +0000
@@ -14,7 +14,7 @@
 #endif /* HAVE_CONFIG_H */
 
 #include "protodefs.h"
-#include "utils.h"
+#include "prefix.h"
 #include "ife.h"
 
 /* includes filename, line number and max(debug_prefix[]) */

=== modified file 'lib/core/misc.c'
--- lib/core/misc.c     2010-02-24 17:44:04 +0000
+++ lib/core/misc.c     2010-02-27 13:59:35 +0000
@@ -18,7 +18,7 @@
 #include <string.h>
 
 #include "misc.h"
-#include "utils.h"
+#include "prefix.h"
 
 // needed due to missing system inlcude for openWRT
 #ifndef HOST_NAME_MAX

=== modified file 'lib/core/misc.h'
--- lib/core/misc.h     2010-02-24 17:44:04 +0000
+++ lib/core/misc.h     2010-02-27 13:59:35 +0000
@@ -24,7 +24,7 @@
 
 #include <string.h>
 #include "hipd/registration.h"
-#include "lib/core/utils.h"
+#include "lib/core/prefix.h"
 #include "icomm.h"
 #include "lib/tool/lutil.h"
 
@@ -36,6 +36,11 @@
 # define HOST_NAME_MAX 64
 #endif
 
+#ifdef CONFIG_HIP_OPENWRT
+# define HIP_CREATE_FILE(x)     check_and_create_file(x, 0644)
+#else
+# define HIP_CREATE_FILE(x)     open((x), O_RDWR | O_CREAT, 0644)
+#endif
 
 /* system/bin for Android */
 #define HIP_DEFAULT_EXEC_PATH 
"/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/system/bin"

=== modified file 'test/sqliteteststub.c'
--- test/sqliteteststub.c       2010-02-10 23:43:06 +0000
+++ test/sqliteteststub.c       2010-02-27 13:59:35 +0000
@@ -16,7 +16,7 @@
 
 #ifdef CONFIG_HIP_AGENT
 
-#include "lib/core/utils.h"
+#include "lib/core/prefix.h"
 #include "lib/core/sqlitedbapi.h"
 
 static int hip_sqlite_callback(void *NotUsed,

Other related posts:

  • » [hipl-commit] [trunk] Rev 3728: Renamed lib/core/utils.[c|h] to lib/core/prefix.[c.h] - Miika Komu