Deleted Added
full compact
uipc_usrreq.c (249480) uipc_usrreq.c (250460)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2004-2009 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

52 * TODO:
53 * RDM
54 * distinguish datagram size limits from flow control limits in SEQPACKET
55 * rethink name space problems
56 * need a proper out-of-band
57 */
58
59#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1991, 1993
3 * The Regents of the University of California.
4 * Copyright (c) 2004-2009 Robert N. M. Watson
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

52 * TODO:
53 * RDM
54 * distinguish datagram size limits from flow control limits in SEQPACKET
55 * rethink name space problems
56 * need a proper out-of-band
57 */
58
59#include <sys/cdefs.h>
60__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 249480 2013-04-14 17:08:34Z mjg $");
60__FBSDID("$FreeBSD: head/sys/kern/uipc_usrreq.c 250460 2013-05-10 16:41:26Z eadler $");
61
62#include "opt_ddb.h"
63
64#include <sys/param.h>
65#include <sys/capability.h>
66#include <sys/domain.h>
67#include <sys/fcntl.h>
68#include <sys/malloc.h> /* XXX must be before <sys/file.h> */

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

1365 UNP_PCB_LOCK(unp3);
1366 if (unp2->unp_addr != NULL) {
1367 bcopy(unp2->unp_addr, sa, unp2->unp_addr->sun_len);
1368 unp3->unp_addr = (struct sockaddr_un *) sa;
1369 sa = NULL;
1370 }
1371
1372 /*
61
62#include "opt_ddb.h"
63
64#include <sys/param.h>
65#include <sys/capability.h>
66#include <sys/domain.h>
67#include <sys/fcntl.h>
68#include <sys/malloc.h> /* XXX must be before <sys/file.h> */

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

1365 UNP_PCB_LOCK(unp3);
1366 if (unp2->unp_addr != NULL) {
1367 bcopy(unp2->unp_addr, sa, unp2->unp_addr->sun_len);
1368 unp3->unp_addr = (struct sockaddr_un *) sa;
1369 sa = NULL;
1370 }
1371
1372 /*
1373 * The connecter's (client's) credentials are copied from its
1373 * The connector's (client's) credentials are copied from its
1374 * process structure at the time of connect() (which is now).
1375 */
1376 cru2x(td->td_ucred, &unp3->unp_peercred);
1377 unp3->unp_flags |= UNP_HAVEPC;
1378
1379 /*
1380 * The receiver's (server's) credentials are copied from the
1381 * unp_peercred member of socket on which the former called

--- 1116 unchanged lines hidden ---
1374 * process structure at the time of connect() (which is now).
1375 */
1376 cru2x(td->td_ucred, &unp3->unp_peercred);
1377 unp3->unp_flags |= UNP_HAVEPC;
1378
1379 /*
1380 * The receiver's (server's) credentials are copied from the
1381 * unp_peercred member of socket on which the former called

--- 1116 unchanged lines hidden ---