Intrising/node_pcap — pull request #2 by sacko87 (2012-09-03 15:27:32+00:00)
Title: inet_pton(3) can return NULL and cause a segmentation fault.

It may be a Mac OSX thing, but I have found that the netmask field can cause issues.

Despite that it is not NULL when it is passed into the function, so there is something there but it seems invalid. It may have something to do with PCAP itself or Mountain Lion (probably the latter).

Either way a check is useful anyway.