parse ioctl()'s argument. Fixes #233
Merge branch 'master' into dynamic_snaplen_2