diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-02-20 11:13:33 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-02-24 23:29:47 +0100 |
commit | 84ffea157a8eb776b793ddd5012eb4752e0cd6fc (patch) | |
tree | d392d282a3d396a0053ebc5e69c5a80f894defb9 /src/ippool.c | |
parent | 631bcaaed6848e45b182703979550ca2b5b04ffc (diff) | |
download | connman-84ffea157a8eb776b793ddd5012eb4752e0cd6fc.tar.gz connman-84ffea157a8eb776b793ddd5012eb4752e0cd6fc.tar.bz2 connman-84ffea157a8eb776b793ddd5012eb4752e0cd6fc.zip |
ippool: Add error and warning messages
Diffstat (limited to 'src/ippool.c')
-rw-r--r-- | src/ippool.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ippool.c b/src/ippool.c index 065c2786..968d20fd 100644 --- 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) |