diff options
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c index 21ede0580e..7b22bb973a 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1468,6 +1468,14 @@ int is_internal_IP(uint32_t ip) { return 0; } +/** Return true iff <b>ip</b> (in host order) is judged to be on the + * same network as us. For now, check if it's an internal IP. For XXX008, + * also check if it's on the same class C network as our public IP. + */ +int is_local_IP(uint32_t ip) { + return is_internal_IP(ip); +} + /* Hold the result of our call to <b>uname</b>. */ static char uname_result[256]; /* True iff uname_result is set. */ |