Add a function to check if a packet is ours

This allows the ping socket codepaths to be simpler.

Bug: 9469682
Change-Id: I05174cafd74ad5de5e867af8a3a3ac19439034b4
diff --git a/ping_common.h b/ping_common.h
index 9cdb07b..f917315 100644
--- a/ping_common.h
+++ b/ping_common.h
@@ -277,6 +277,7 @@
 extern int receive_error_msg(void);
 extern int parse_reply(struct msghdr *msg, int len, void *addr, struct timeval *);
 extern void install_filter(void);
+extern int is_ours(uint16_t id);
 
 extern int pinger(void);
 extern void sock_setbufs(int icmp_sock, int alloc);