Fixes #1 

Check if packet.link.ip is defined before accessing object.
Merge pull request #2 from mrbichel/patch-1

Fixes #1