libvscmgmt.git
13 years ago[tests] Fix check-gdb Makefile target by disabling forking in the tests.
Matthias Bolte [Sat, 9 May 2009 15:16:35 +0000 (17:16 +0200)]
[tests] Fix check-gdb Makefile target by disabling forking in the tests.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[tests] Append _test to the filenames.
Matthias Bolte [Sat, 9 May 2009 15:15:09 +0000 (17:15 +0200)]
[tests] Append _test to the filenames.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Don't report errors for empty lines in host file parser.
Matthias Bolte [Sat, 9 May 2009 15:12:17 +0000 (17:12 +0200)]
[lib] Don't report errors for empty lines in host file parser.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Fix typo in vsc_mgmt_ipv4_parse().
Matthias Bolte [Sat, 9 May 2009 15:11:35 +0000 (17:11 +0200)]
[lib] Fix typo in vsc_mgmt_ipv4_parse().

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[tests] Rename parser_test to parser_dump.
Matthias Bolte [Sat, 9 May 2009 13:59:47 +0000 (15:59 +0200)]
[tests] Rename parser_test to parser_dump.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[tests] Add missing license header to parser test.
Matthias Bolte [Sat, 9 May 2009 13:52:20 +0000 (15:52 +0200)]
[tests] Add missing license header to parser test.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoRename VscMgmtHostInfoInternal to VscMgmtHost.
Matthias Bolte [Sat, 9 May 2009 13:43:33 +0000 (15:43 +0200)]
Rename VscMgmtHostInfoInternal to VscMgmtHost.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd tests/parser_test to .gitignore.
Matthias Bolte [Fri, 8 May 2009 09:14:29 +0000 (11:14 +0200)]
Add tests/parser_test to .gitignore.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoRename path to filename.
Matthias Bolte [Thu, 7 May 2009 16:34:45 +0000 (18:34 +0200)]
Rename path to filename.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[python] Add get_version() and get_object_type().
Matthias Bolte [Thu, 7 May 2009 16:30:25 +0000 (18:30 +0200)]
[python] Add get_version() and get_object_type().

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Rename vsc_mgmt_uuid_get_type() to vsc_mgmt_get_object_type().
Matthias Bolte [Thu, 7 May 2009 16:29:05 +0000 (18:29 +0200)]
[lib] Rename vsc_mgmt_uuid_get_type() to vsc_mgmt_get_object_type().

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Reuse _vsc_mgmt_host_type_parse() in _vsc_mgmt_parse_host_list().
Matthias Bolte [Thu, 7 May 2009 15:38:44 +0000 (17:38 +0200)]
[lib] Reuse _vsc_mgmt_host_type_parse() in _vsc_mgmt_parse_host_list().

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Fix memory leak in the host file parser.
Matthias Bolte [Tue, 5 May 2009 22:26:33 +0000 (00:26 +0200)]
[lib] Fix memory leak in the host file parser.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[tests] Clean up coding style in the host file parser test.
Matthias Bolte [Tue, 5 May 2009 21:26:53 +0000 (23:26 +0200)]
[tests] Clean up coding style in the host file parser test.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Clean up coding style in the host file parser.
Matthias Bolte [Tue, 5 May 2009 21:26:13 +0000 (23:26 +0200)]
[lib] Clean up coding style in the host file parser.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Fix some problems with the new host file parser.
Matthias Bolte [Tue, 5 May 2009 21:04:30 +0000 (23:04 +0200)]
[lib] Fix some problems with the new host file parser.

  * Convert macros into function.
  * Fix bogus error message, if file doesn't end with a '\n'.
  * Fix ESX transport check.
  * Fix error messages.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[tests] Added program for manual testing of the parser for host files.
Maximilian Wilhelm [Mon, 4 May 2009 03:10:45 +0000 (05:10 +0200)]
[tests] Added program for manual testing of the parser for host files.

  refs #54

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years ago[lib] Update parser to fit exactly to format definition.
Maximilian Wilhelm [Mon, 4 May 2009 02:57:56 +0000 (04:57 +0200)]
[lib] Update parser to fit exactly to format definition.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years ago[docs] Added hosts_file format definition file containing and exmaple.
Maximilian Wilhelm [Mon, 4 May 2009 02:50:55 +0000 (04:50 +0200)]
[docs] Added hosts_file format definition file containing and exmaple.

  refs #54

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years ago[lib] Added '_vsc_mgmt_read_host_list_from_file()'
Maximilian Wilhelm [Mon, 4 May 2009 02:43:43 +0000 (04:43 +0200)]
[lib] Added '_vsc_mgmt_read_host_list_from_file()'

  This commit adds the _vsc_mgmt_read_host_list_from_file () function to parse
  host definitions from a filename. It will return a list of host info internal
  structs.

  refs #54

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoRemove docs/doxygen on 'clean' target.
Maximilian Wilhelm [Mon, 4 May 2009 02:40:57 +0000 (04:40 +0200)]
Remove docs/doxygen on 'clean' target.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdded field 'transport' to struct VscMgmtHostInfoInternal
Maximilian Wilhelm [Mon, 4 May 2009 00:59:53 +0000 (02:59 +0200)]
Added field 'transport' to struct VscMgmtHostInfoInternal

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoRemove proxy and daemon and merge utils into lib.
Matthias Bolte [Thu, 30 Apr 2009 23:12:04 +0000 (01:12 +0200)]
Remove proxy and daemon and merge utils into lib.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Replace host_{add,remove} with read_hosts_config function
Matthias Bolte [Thu, 30 Apr 2009 22:16:07 +0000 (00:16 +0200)]
[lib] Replace host_{add,remove} with read_hosts_config function

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoA VscMgmtNetwork has an UUID.
Maximilian Wilhelm [Thu, 30 Apr 2009 21:30:15 +0000 (23:30 +0200)]
A VscMgmtNetwork has an UUID.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoCleanup doxygen style.
Matthias Bolte [Sat, 25 Apr 2009 12:44:20 +0000 (14:44 +0200)]
Cleanup doxygen style.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd doxygen config.
Matthias Bolte [Sat, 25 Apr 2009 10:16:13 +0000 (12:16 +0200)]
Add doxygen config.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[cli] Update to latest function rename in libvsccli.
Matthias Bolte [Thu, 23 Apr 2009 20:11:21 +0000 (22:11 +0200)]
[cli] Update to latest function rename in libvsccli.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[lib] Forward libvirt error messages.
Matthias Bolte [Thu, 23 Apr 2009 17:12:48 +0000 (19:12 +0200)]
[lib] Forward libvirt error messages.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[python] Bind backup, recover and host_remove.
Matthias Bolte [Thu, 23 Apr 2009 17:11:55 +0000 (19:11 +0200)]
[python] Bind backup, recover and host_remove.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[build] Add 'new' make rule for subdirectories.
Matthias Bolte [Thu, 23 Apr 2009 14:42:07 +0000 (16:42 +0200)]
[build] Add 'new' make rule for subdirectories.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoUpdate function syntax to match the latest specification.
Matthias Bolte [Tue, 21 Apr 2009 19:27:59 +0000 (21:27 +0200)]
Update function syntax to match the latest specification.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[build] Let clean target remove all *.a, *.o and *.so files.
Matthias Bolte [Tue, 21 Apr 2009 18:40:13 +0000 (20:40 +0200)]
[build] Let clean target remove all *.a, *.o and *.so files.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoIgnore *.pyc files.
Matthias Bolte [Tue, 21 Apr 2009 18:38:58 +0000 (20:38 +0200)]
Ignore *.pyc files.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[python] First step towards Python bindings for libvscmgmt.
Matthias Bolte [Tue, 21 Apr 2009 18:38:31 +0000 (20:38 +0200)]
[python] First step towards Python bindings for libvscmgmt.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoRemove unused function prototypes.
Matthias Bolte [Tue, 21 Apr 2009 14:33:42 +0000 (16:33 +0200)]
Remove unused function prototypes.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[cli] Update to latest changes in libvsccli.
Matthias Bolte [Tue, 21 Apr 2009 14:32:02 +0000 (16:32 +0200)]
[cli] Update to latest changes in libvsccli.

  * History serialization.
  * Flags field of option info struct.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[cli] Update command functions to latest changes in libvsccli.
Matthias Bolte [Thu, 16 Apr 2009 18:37:34 +0000 (20:37 +0200)]
[cli] Update command functions to latest changes in libvsccli.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[build] Allow optional config-user.mk file for per-user build config.
Matthias Bolte [Thu, 16 Apr 2009 14:42:15 +0000 (16:42 +0200)]
[build] Allow optional config-user.mk file for per-user build config.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoUpdate HACKING file.
Matthias Bolte [Thu, 16 Apr 2009 13:13:27 +0000 (15:13 +0200)]
Update HACKING file.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoFix spelling: Super Computer -> Supercomputer
Matthias Bolte [Thu, 16 Apr 2009 11:50:48 +0000 (13:50 +0200)]
Fix spelling: Super Computer -> Supercomputer

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years ago[cli] Fix compile error due to changes in libvsccli API.
Matthias Bolte [Thu, 16 Apr 2009 11:31:29 +0000 (13:31 +0200)]
[cli] Fix compile error due to changes in libvsccli API.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoUpdate Makefiles to install headers.
Matthias Bolte [Thu, 9 Apr 2009 19:37:14 +0000 (21:37 +0200)]
Update Makefiles to install headers.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoFix case in a message strings.
Matthias Bolte [Thu, 9 Apr 2009 17:07:25 +0000 (19:07 +0200)]
Fix case in a message strings.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoUpdate .gitignore file.
Matthias Bolte [Thu, 9 Apr 2009 16:43:47 +0000 (18:43 +0200)]
Update .gitignore file.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoUse --verbose-errors option from libvsccli.
Matthias Bolte [Thu, 9 Apr 2009 16:42:43 +0000 (18:42 +0200)]
Use --verbose-errors option from libvsccli.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoChange XML-RPC-C server to write the log to /var/log/vsc/*.log.
Matthias Bolte [Mon, 6 Apr 2009 23:30:39 +0000 (01:30 +0200)]
Change XML-RPC-C server to write the log to /var/log/vsc/*.log.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd simple input parameter checks to every function.
Matthias Bolte [Sun, 5 Apr 2009 19:07:21 +0000 (21:07 +0200)]
Add simple input parameter checks to every function.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoStop using old error codes.
Matthias Bolte [Sun, 5 Apr 2009 17:53:58 +0000 (19:53 +0200)]
Stop using old error codes.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoMove common used/useable code from libvscmgmt to libvsc(cli|misc).
Matthias Bolte [Sun, 5 Apr 2009 17:39:14 +0000 (19:39 +0200)]
Move common used/useable code from libvscmgmt to libvsc(cli|misc).

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoRenamed validate functions to positiv name. (Closes #27)
Maximilian Wilhelm [Sat, 4 Apr 2009 23:52:29 +0000 (01:52 +0200)]
Renamed validate functions to positiv name. (Closes #27)

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoBuild the network common backend as static library.
Matthias Bolte [Fri, 3 Apr 2009 03:11:58 +0000 (05:11 +0200)]
Build the network common backend as static library.

  * If build as *.so ld will warn about it because it can not locate
    the uninstalled libvscmgmt-network-common.so when linking other
    targets like vscmgmtd.
  * The object code duplication due to static linking the common part
    into every network backend is not a big problem because in most
    cases only one network backend will be loaded at a time.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoLet dhcolny network backend link against common network code.
Maximilian Wilhelm [Wed, 1 Apr 2009 21:50:34 +0000 (23:50 +0200)]
Let dhcolny network backend link against common network code.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoFix some minor nitpicks from Matthias.
Maximilian Wilhelm [Wed, 1 Apr 2009 21:35:15 +0000 (23:35 +0200)]
Fix some minor nitpicks from Matthias.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoFix spacing VSC_MGMT__MAC__STRING_SIZE definition.
Maximilian Wilhelm [Wed, 1 Apr 2009 21:34:37 +0000 (23:34 +0200)]
Fix spacing VSC_MGMT__MAC__STRING_SIZE definition.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoFixed string output of '_vsc_mgmt_mac_format()' function.
Maximilian Wilhelm [Wed, 1 Apr 2009 21:33:35 +0000 (23:33 +0200)]
Fixed string output of '_vsc_mgmt_mac_format()' function.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdded common network backend code.
Maximilian Wilhelm [Wed, 1 Apr 2009 21:01:20 +0000 (23:01 +0200)]
Added common network backend code.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdded missing function prototypes to dhcponly network backend.
Maximilian Wilhelm [Wed, 1 Apr 2009 21:00:43 +0000 (23:00 +0200)]
Added missing function prototypes to dhcponly network backend.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoCompleted internal network backend API definition.
Maximilian Wilhelm [Wed, 1 Apr 2009 20:57:04 +0000 (22:57 +0200)]
Completed internal network backend API definition.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdded '_vsc_mgmt_mac_format()' function to utils/
Maximilian Wilhelm [Wed, 1 Apr 2009 20:52:39 +0000 (22:52 +0200)]
Added '_vsc_mgmt_mac_format()' function to utils/

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdded data type 'VscMgmtMac'.
Maximilian Wilhelm [Wed, 1 Apr 2009 20:40:20 +0000 (22:40 +0200)]
Added data type 'VscMgmtMac'.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoReorder Makefile rules to bring 'all' to the top.
Matthias Bolte [Wed, 1 Apr 2009 20:26:10 +0000 (22:26 +0200)]
Reorder Makefile rules to bring 'all' to the top.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoFix out-of-bounds memory access and memory leak in vscmgmt-cli.
Matthias Bolte [Wed, 1 Apr 2009 03:12:23 +0000 (05:12 +0200)]
Fix out-of-bounds memory access and memory leak in vscmgmt-cli.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd command parser to vscmgmt-cli.
Matthias Bolte [Wed, 1 Apr 2009 03:06:07 +0000 (05:06 +0200)]
Add command parser to vscmgmt-cli.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoRenamed all error codes to 'VSC_MGMT__ERROR_CODE__TRACE__*' for clarity.
Maximilian Wilhelm [Tue, 31 Mar 2009 22:43:13 +0000 (00:43 +0200)]
Renamed all error codes to 'VSC_MGMT__ERROR_CODE__TRACE__*' for clarity.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoRename _vsc_mgmt_network_get_ip to _vsc_mgmt_network_acquire_ip.
Matthias Bolte [Mon, 30 Mar 2009 15:45:51 +0000 (17:45 +0200)]
Rename _vsc_mgmt_network_get_ip to _vsc_mgmt_network_acquire_ip.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoBasically revert commit 18180acf85977655e88e7b02b6e43e17aa6faeb6.
Matthias Bolte [Mon, 30 Mar 2009 06:23:44 +0000 (08:23 +0200)]
Basically revert commit 18180acf85977655e88e7b02b6e43e17aa6faeb6.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoRevert "Added 'const char *file*' parameter to _vsc_mgmt_data_{backup,recover}"
Maximilian Wilhelm [Mon, 30 Mar 2009 06:40:15 +0000 (08:40 +0200)]
Revert "Added 'const char *file*' parameter to _vsc_mgmt_data_{backup,recover}"

  This was a bad idea.

This reverts commit daa734df1c9df9f03c85cbe23b280439291a7ff7.

13 years agoAdded prototypes for _vsc_mgmt_network_{get,release}_ip to backend network header.
Maximilian Wilhelm [Mon, 30 Mar 2009 05:22:29 +0000 (07:22 +0200)]
Added prototypes for _vsc_mgmt_network_{get,release}_ip to backend network header.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdded 'const char *file*' parameter to _vsc_mgmt_data_{backup,recover}
Maximilian Wilhelm [Mon, 30 Mar 2009 05:11:13 +0000 (07:11 +0200)]
Added 'const char *file*' parameter to _vsc_mgmt_data_{backup,recover}

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoMove more Makefile rules into rules.mk and remove unnecessary linking.
Matthias Bolte [Mon, 30 Mar 2009 05:39:56 +0000 (07:39 +0200)]
Move more Makefile rules into rules.mk and remove unnecessary linking.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoCompile backends as static libraries.
Matthias Bolte [Mon, 30 Mar 2009 05:28:47 +0000 (07:28 +0200)]
Compile backends as static libraries.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoCleanup bits and pieces after the backend transition.
Matthias Bolte [Mon, 30 Mar 2009 05:04:13 +0000 (07:04 +0200)]
Cleanup bits and pieces after the backend transition.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoStricter IPv4 parsing.
Matthias Bolte [Mon, 30 Mar 2009 02:01:01 +0000 (04:01 +0200)]
Stricter IPv4 parsing.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoBuild/clean/install every backend driver regardless of link configuration
Maximilian Wilhelm [Mon, 30 Mar 2009 04:13:06 +0000 (06:13 +0200)]
Build/clean/install every backend driver regardless of link configuration

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoTransition from 'utils/mutex-*' to mutex backends.
Maximilian Wilhelm [Mon, 30 Mar 2009 03:45:36 +0000 (05:45 +0200)]
Transition from 'utils/mutex-*' to mutex backends.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoTransition from 'internal-file.c' to 'file' data backend.
Maximilian Wilhelm [Mon, 30 Mar 2009 03:25:18 +0000 (05:25 +0200)]
Transition from 'internal-file.c' to 'file' data backend.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdded make target 'new' as 'make clean && clear && make'
Maximilian Wilhelm [Mon, 30 Mar 2009 03:09:18 +0000 (05:09 +0200)]
Added make target 'new' as 'make clean && clear && make'

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoRenamed 'NETWORK' variable in config.mk to 'NETWORK_BACKEND'
Maximilian Wilhelm [Mon, 30 Mar 2009 03:08:44 +0000 (05:08 +0200)]
Renamed 'NETWORK' variable in config.mk to 'NETWORK_BACKEND'

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoRenamed members of struct VscMgmtNetwork to 'cidr_network' and 'cidr_mask'
Maximilian Wilhelm [Mon, 30 Mar 2009 02:49:14 +0000 (04:49 +0200)]
Renamed members of struct VscMgmtNetwork to 'cidr_network' and 'cidr_mask'

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoMerge branch 'master' of ssh://max@vsc-master.upb.de/data/scm/git/libvscmgmt
Maximilian Wilhelm [Mon, 30 Mar 2009 02:44:39 +0000 (04:44 +0200)]
Merge branch 'master' of ssh://max@vsc-upb.de/data/scm/git/libvscmgmt

Conflicts:
backend/network/dhcponly/network.c

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoCreated backend infrastructure and moved network code to it.
Maximilian Wilhelm [Mon, 30 Mar 2009 02:34:32 +0000 (04:34 +0200)]
Created backend infrastructure and moved network code to it.

  * Moved network code to backend/network/<type>/network.c
  * Moved network backend header to backend/network/network.h
  * Updated/added Makefiles to build network backend
  * Updated lib cli and daemon Makefiles to link against network backend
  * Killeb lib/lib.h and split up includes.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoFixed wrong comment in 'host.h'
Maximilian Wilhelm [Mon, 30 Mar 2009 01:40:32 +0000 (03:40 +0200)]
Fixed wrong comment in 'host.h'

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoReplace -Wno-sign-compare with -Wsign-compare.
Matthias Bolte [Mon, 30 Mar 2009 01:35:30 +0000 (03:35 +0200)]
Replace -Wno-sign-compare with -Wsign-compare.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdded basic check for validity of network list parameter of '_vsc_mgmt_network_init()'
Maximilian Wilhelm [Mon, 30 Mar 2009 01:17:03 +0000 (03:17 +0200)]
Added basic check for validity of network list parameter of '_vsc_mgmt_network_init()'

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoGently return an error string to the user when 'vsc_mgmt_init()' is called twice.
Maximilian Wilhelm [Mon, 30 Mar 2009 01:16:07 +0000 (03:16 +0200)]
Gently return an error string to the user when 'vsc_mgmt_init()' is called twice.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoChanged string representation of 'TRACE' error to 'Inherited error' for clarity.
Maximilian Wilhelm [Mon, 30 Mar 2009 01:11:53 +0000 (03:11 +0200)]
Changed string representation of 'TRACE' error to 'Inherited error' for clarity.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdd some input validation to the network backend.
Matthias Bolte [Mon, 30 Mar 2009 00:38:29 +0000 (02:38 +0200)]
Add some input validation to the network backend.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoMade 'host' argument of 'vsc_mgmt_network_setup()' unsigned int
Maximilian Wilhelm [Mon, 30 Mar 2009 00:31:19 +0000 (02:31 +0200)]
Made 'host' argument of 'vsc_mgmt_network_setup()' unsigned int

  The number of hosts can only be positiv so ensure it by parameter type.
  Added copyright to network files as the idea is (C) by Max.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoFixed a small typo in HACKING file.
Maximilian Wilhelm [Mon, 30 Mar 2009 00:30:54 +0000 (02:30 +0200)]
Fixed a small typo in HACKING file.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>

13 years agoAdd HACKING file.
Matthias Bolte [Sun, 29 Mar 2009 17:20:59 +0000 (19:20 +0200)]
Add HACKING file.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoUse _vsc_mgmt_alloc instead of calloc.
Matthias Bolte [Sun, 29 Mar 2009 16:44:17 +0000 (18:44 +0200)]
Use _vsc_mgmt_alloc instead of calloc.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd COPYING file.
Matthias Bolte [Sun, 29 Mar 2009 15:48:03 +0000 (17:48 +0200)]
Add COPYING file.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoChange pointer handling for lists to use pointers pointing at pointers.
Matthias Bolte [Sun, 29 Mar 2009 01:04:38 +0000 (03:04 +0200)]
Change pointer handling for lists to use pointers pointing at pointers.

  * Enables in-place changes to list pointers for appending and removing.
  * Helps to prevent dangling pointers.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoRemove most of the typedefs.
Matthias Bolte [Sat, 28 Mar 2009 02:30:33 +0000 (03:30 +0100)]
Remove most of the typedefs.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd suspension_uuid and image_path to the vm_info struct.
Matthias Bolte [Fri, 27 Mar 2009 23:59:40 +0000 (00:59 +0100)]
Add suspension_uuid and image_path to the vm_info struct.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd network backend API.
Matthias Bolte [Fri, 27 Mar 2009 02:07:13 +0000 (03:07 +0100)]
Add network backend API.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd virtual host type for testing purpose.
Matthias Bolte [Wed, 25 Mar 2009 18:15:34 +0000 (19:15 +0100)]
Add virtual host type for testing purpose.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoAdd initial testing with Valgrind.
Matthias Bolte [Wed, 25 Mar 2009 16:54:35 +0000 (17:54 +0100)]
Add initial testing with Valgrind.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>

13 years agoImplement host_add and host_remove.
Matthias Bolte [Wed, 25 Mar 2009 16:41:27 +0000 (17:41 +0100)]
Implement host_add and host_remove.

  * Maintain internal host_info and host_connection lists.

Signed-off-by: Matthias Bolte <matthias.bolte@googlemail.com>