projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
631bcaa
)
ippool: Add error and warning messages
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 20 Feb 2012 10:13:33 +0000
(11:13 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Fri, 24 Feb 2012 22:29:47 +0000
(23:29 +0100)
src/ippool.c
patch
|
blob
|
history
diff --git
a/src/ippool.c
b/src/ippool.c
index
065c278
..
968d20f
100644
(file)
--- a/
src/ippool.c
+++ b/
src/ippool.c
@@
-353,12
+353,16
@@
struct connman_ippool *__connman_ippool_create(int index,
* The range is at max 255 and we don't support overlapping
* blocks.
*/
- if (start + range > 254)
+ if (start + range > 254) {
+ connman_error("IP pool does not support pool size larger than 254");
return NULL;
+ }
block = get_free_block(start + range);
- if (block == 0)
+ if (block == 0) {
+ connman_warn("Could not find a free IP block");
return NULL;
+ }
pool = g_try_new0(struct connman_ippool, 1);
if (pool == NULL)