This file is indexed.

/usr/include/libzia/zifaces.h is in libzia-dev 4.06-2+b1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
    interfaces - network interfaces detection
    Copyright (C) 2002-20011  Ladislav Vaiz <ok1zia@nagano.cz>
    and authors of samba www.samba.org

    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public License
    version 2 as published by the Free Software Foundation.
*/


#ifndef _ZIFACES_H
#define _ZIFACES_H

#include <libziaint.h>

#ifdef Z_HAVE_WINSOCK2_H
#include <winsock2.h>
#endif

#ifdef Z_HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif

#define ZIFACE_NAME_SIZE 16
struct ziface_struct {
    char name[16];
    struct in_addr ip;
    struct in_addr netmask;
};

int zifaces_get(struct ziface_struct *ifaces, int max_interfaces);

// 1 if input address is from local network
int ziface_is_local(struct in_addr ia);

#endif