ngrep: fix ipv6

Fixes ipv6 support enabled in #27448.
Okay, in that case can you please submit this patch to the ngrep developers?