util.c (79720) | util.c (104592) |
---|---|
1/* 2 * $NetBSD: util.c,v 1.4 2000/08/03 00:04:30 fvdl Exp $ | 1/* 2 * $NetBSD: util.c,v 1.4 2000/08/03 00:04:30 fvdl Exp $ |
3 * $FreeBSD: head/usr.sbin/rpcbind/util.c 79720 2001-07-14 17:04:26Z iedowse $ | 3 * $FreeBSD: head/usr.sbin/rpcbind/util.c 104592 2002-10-07 02:56:59Z alfred $ |
4 */ 5 6/*- 7 * Copyright (c) 2000 The NetBSD Foundation, Inc. 8 * All rights reserved. 9 * 10 * This code is derived from software contributed to The NetBSD Foundation 11 * by Frank van der Linden. --- 278 unchanged lines hidden (view full) --- 290} 291 292void 293network_init() 294{ 295#ifdef INET6 296 struct ifaddrs *ifap, *ifp; 297 struct ipv6_mreq mreq6; | 4 */ 5 6/*- 7 * Copyright (c) 2000 The NetBSD Foundation, Inc. 8 * All rights reserved. 9 * 10 * This code is derived from software contributed to The NetBSD Foundation 11 * by Frank van der Linden. --- 278 unchanged lines hidden (view full) --- 290} 291 292void 293network_init() 294{ 295#ifdef INET6 296 struct ifaddrs *ifap, *ifp; 297 struct ipv6_mreq mreq6; |
298 int ifindex, s; | 298 unsigned int ifindex; 299 int s; |
299#endif 300 int ecode; 301 struct addrinfo hints, *res; 302 303 memset(&hints, 0, sizeof hints); 304 hints.ai_family = AF_INET; 305 if ((ecode = getaddrinfo(NULL, "sunrpc", &hints, &res))) { 306 if (debugging) --- 76 unchanged lines hidden --- | 300#endif 301 int ecode; 302 struct addrinfo hints, *res; 303 304 memset(&hints, 0, sizeof hints); 305 hints.ai_family = AF_INET; 306 if ((ecode = getaddrinfo(NULL, "sunrpc", &hints, &res))) { 307 if (debugging) --- 76 unchanged lines hidden --- |