yp_ping.c (78737) | yp_ping.c (90297) |
---|---|
1/* 2 * Copyright (c) 1996, 1997 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60 */ 61 62#ifndef lint 63#if 0 64static char *sccsid = "@(#)from: clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro"; 65static char *sccsid = "@(#)from: clnt_udp.c 2.2 88/08/01 4.0 RPCSRC"; 66#endif 67static const char rcsid[] = | 1/* 2 * Copyright (c) 1996, 1997 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 51 unchanged lines hidden (view full) --- 60 */ 61 62#ifndef lint 63#if 0 64static char *sccsid = "@(#)from: clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro"; 65static char *sccsid = "@(#)from: clnt_udp.c 2.2 88/08/01 4.0 RPCSRC"; 66#endif 67static const char rcsid[] = |
68 "$FreeBSD: head/usr.sbin/ypbind/yp_ping.c 78737 2001-06-24 23:41:57Z dd $"; | 68 "$FreeBSD: head/usr.sbin/ypbind/yp_ping.c 90297 2002-02-06 13:30:31Z des $"; |
69#endif 70 71/* 72 * clnt_udp.c, Implements a UDP/IP based, client side RPC. 73 * 74 * Copyright (C) 1984, Sun Microsystems, Inc. 75 */ 76 --- 153 unchanged lines hidden (view full) --- 230}; 231 232int __yp_ping(restricted_addrs, cnt, dom, port) 233 struct in_addr *restricted_addrs; 234 int cnt; 235 char *dom; 236 short *port; 237{ | 69#endif 70 71/* 72 * clnt_udp.c, Implements a UDP/IP based, client side RPC. 73 * 74 * Copyright (C) 1984, Sun Microsystems, Inc. 75 */ 76 --- 153 unchanged lines hidden (view full) --- 230}; 231 232int __yp_ping(restricted_addrs, cnt, dom, port) 233 struct in_addr *restricted_addrs; 234 int cnt; 235 char *dom; 236 short *port; 237{ |
238 struct timeval tv = { 5 , 0 }; | 238 struct timeval tv = { 5, 0 }; |
239 struct ping_req **reqs; 240 unsigned long i; 241 int async; 242 struct sockaddr_in sin, *any = NULL; 243 int winner = -1; 244 time_t xid_seed, xid_lookup; 245 int sock, dontblock = 1; 246 CLIENT *clnt; --- 85 unchanged lines hidden --- | 239 struct ping_req **reqs; 240 unsigned long i; 241 int async; 242 struct sockaddr_in sin, *any = NULL; 243 int winner = -1; 244 time_t xid_seed, xid_lookup; 245 int sock, dontblock = 1; 246 CLIENT *clnt; --- 85 unchanged lines hidden --- |