ngrep: fix ipv6

Fixes ipv6 support enabled in #27448.
@benburkert Hey dude! Hope you're well. We need all patches to be submitted (and ideally accepted) upstream before we'll include them in formulae I'm afraid :cry: