Lines Matching refs:if
16 #include <net/if.h>
43 if (fixed) {
44 /* if it's not "" */
57 if (fixed > 0)
67 if (inet_aton(ip, &in) == 0)
77 if (strcmp(dev->name, name) == 0)
87 if (template->ip_addr != 0)
89 if (template->ip_netmask != 0)
91 if (template->ip_server != 0)
93 if (template->ip_router != 0)
117 if (strncmp("ip=", ip, 3) == 0
124 if (fixed >= 0) {
131 if (!strchr(ip, ':')) {
137 if (next)
139 if (opt > 6)
141 if (ip[0]) switch (opt) {
155 if (G.hostname && strcmp(G.hostname, ip) != 0)
171 if (dev->name == NULL
193 if (!d)
204 if (de->d_name[0] == '.')
209 if (r < 0)
215 * Heuristic for if this is a reasonable boot interface.
218 if (flags & IFF_LOOPBACK)
220 if (!(flags & (IFF_BROADCAST | IFF_POINTOPOINT)))
222 if (find_device(*iface_list, de->d_name))
225 if (dev)
272 if (G.fixed < 0)