fix read len

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
correct calc len

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
Merge pull request #19 from vtolstov/dhcp

fix read len