1/* $NetBSD: krpc_subr.c,v 1.12.4.1 1996/06/07 00:52:26 cgd Exp $ */ 2 3/* 4 * Copyright (c) 1995 Gordon Ross, Adam Glass 5 * Copyright (c) 1992 Regents of the University of California. 6 * All rights reserved. 7 * 8 * This software was developed by the Computer Systems Engineering group --- 29 unchanged lines hidden (view full) --- 38 * SUCH DAMAGE. 39 * 40 * partially based on: 41 * libnetboot/rpc.c 42 * @(#) Header: rpc.c,v 1.12 93/09/28 08:31:56 leres Exp (LBL) 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/nfsclient/krpc_subr.c 88739 2001-12-31 17:45:16Z rwatson $"); |
47 48#include <sys/param.h> 49#include <sys/systm.h> 50#include <sys/malloc.h> 51#include <sys/mbuf.h> 52#include <sys/socket.h> 53#include <sys/socketvar.h> 54#include <sys/uio.h> --- 155 unchanged lines hidden (view full) --- 210 211 /* Free at end if not null. */ 212 nam = mhead = NULL; 213 from = NULL; 214 215 /* 216 * Create socket and set its recieve timeout. 217 */ |
218 if ((error = socreate(AF_INET, &so, SOCK_DGRAM, 0, 219 td->td_proc->p_ucred, td))) |
220 goto out; 221 222 tv.tv_sec = 1; 223 tv.tv_usec = 0; 224 bzero(&sopt, sizeof sopt); 225 sopt.sopt_level = SOL_SOCKET; 226 sopt.sopt_name = SO_RCVTIMEO; 227 sopt.sopt_val = &tv; --- 254 unchanged lines hidden --- |