add ipaddress

Signed-off-by: Mattias Andrée <maandree@operamail.com>
fix line reader and add kmsg

Signed-off-by: Mattias Andrée <maandree@operamail.com>