commit | ce2d2d04ca21aedab67bd41dd9f89063454ed463 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Tue Jul 09 17:58:13 2013 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Thu Jul 11 13:01:40 2013 +0900 |
tree | 79234d0beedac6ebc53302f19e5f77825e30317a | |
parent | eadaaeadfa3d5fcf49f433896e9244f0a10a5f63 [diff] [blame] |
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.c b/ping_common.c index 0342e1a..124270a 100644 --- a/ping_common.c +++ b/ping_common.c
@@ -1073,3 +1073,7 @@ fprintf(stderr, "\n"); } +inline int is_ours(uint16_t id) { + return id == ident; +} +