Deleted Added
full compact
svc_dg.c (243882) svc_dg.c (248195)
1/* $NetBSD: svc_dg.c,v 1.4 2000/07/06 03:10:35 christos Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

--- 23 unchanged lines hidden (view full) ---

32/*
33 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
34 */
35
36#if defined(LIBC_SCCS) && !defined(lint)
37#ident "@(#)svc_dg.c 1.17 94/04/24 SMI"
38#endif
39#include <sys/cdefs.h>
1/* $NetBSD: svc_dg.c,v 1.4 2000/07/06 03:10:35 christos Exp $ */
2
3/*
4 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
5 * unrestricted use provided that this legend is included on all tape
6 * media and as a part of the software program in whole or part. Users
7 * may copy or modify Sun RPC without charge, but are not authorized
8 * to license or distribute it to anyone else except as part of a product or

--- 23 unchanged lines hidden (view full) ---

32/*
33 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
34 */
35
36#if defined(LIBC_SCCS) && !defined(lint)
37#ident "@(#)svc_dg.c 1.17 94/04/24 SMI"
38#endif
39#include <sys/cdefs.h>
40__FBSDID("$FreeBSD: head/sys/rpc/svc_dg.c 243882 2012-12-05 08:04:20Z glebius $");
40__FBSDID("$FreeBSD: head/sys/rpc/svc_dg.c 248195 2013-03-12 12:17:19Z glebius $");
41
42/*
43 * svc_dg.c, Server side for connectionless RPC.
44 */
45
46#include <sys/param.h>
47#include <sys/lock.h>
48#include <sys/kernel.h>

--- 184 unchanged lines hidden (view full) ---

233svc_dg_reply(SVCXPRT *xprt, struct rpc_msg *msg,
234 struct sockaddr *addr, struct mbuf *m)
235{
236 XDR xdrs;
237 struct mbuf *mrep;
238 bool_t stat = TRUE;
239 int error;
240
41
42/*
43 * svc_dg.c, Server side for connectionless RPC.
44 */
45
46#include <sys/param.h>
47#include <sys/lock.h>
48#include <sys/kernel.h>

--- 184 unchanged lines hidden (view full) ---

233svc_dg_reply(SVCXPRT *xprt, struct rpc_msg *msg,
234 struct sockaddr *addr, struct mbuf *m)
235{
236 XDR xdrs;
237 struct mbuf *mrep;
238 bool_t stat = TRUE;
239 int error;
240
241 MGETHDR(mrep, M_WAITOK, MT_DATA);
242 mrep->m_len = 0;
241 mrep = m_gethdr(M_WAITOK, MT_DATA);
243
244 xdrmbuf_create(&xdrs, mrep, XDR_ENCODE);
245
246 if (msg->rm_reply.rp_stat == MSG_ACCEPTED &&
247 msg->rm_reply.rp_acpt.ar_stat == SUCCESS) {
248 if (!xdr_replymsg(&xdrs, msg))
249 stat = FALSE;
250 else

--- 58 unchanged lines hidden ---
242
243 xdrmbuf_create(&xdrs, mrep, XDR_ENCODE);
244
245 if (msg->rm_reply.rp_stat == MSG_ACCEPTED &&
246 msg->rm_reply.rp_acpt.ar_stat == SUCCESS) {
247 if (!xdr_replymsg(&xdrs, msg))
248 stat = FALSE;
249 else

--- 58 unchanged lines hidden ---