Deleted Added
full compact
ddp_pcb.c (83366) ddp_pcb.c (86487)
1/*
2 * Copyright (c) 1990,1994 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
4 *
1/*
2 * Copyright (c) 1990,1994 Regents of The University of Michigan.
3 * All Rights Reserved. See COPYRIGHT.
4 *
5 * $FreeBSD: head/sys/netatalk/ddp_pcb.c 83366 2001-09-12 08:38:13Z julian $
5 * $FreeBSD: head/sys/netatalk/ddp_pcb.c 86487 2001-11-17 03:07:11Z dillon $
6 */
7
8#include <sys/param.h>
9#include <sys/systm.h>
10#include <sys/malloc.h>
11#include <sys/mbuf.h>
12#include <sys/socket.h>
13#include <sys/socketvar.h>

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

436 return(0);
437}
438
439static void
440at_pcbdetach( struct socket *so, struct ddpcb *ddp)
441{
442 soisdisconnected( so );
443 so->so_pcb = 0;
6 */
7
8#include <sys/param.h>
9#include <sys/systm.h>
10#include <sys/malloc.h>
11#include <sys/mbuf.h>
12#include <sys/socket.h>
13#include <sys/socketvar.h>

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

436 return(0);
437}
438
439static void
440at_pcbdetach( struct socket *so, struct ddpcb *ddp)
441{
442 soisdisconnected( so );
443 so->so_pcb = 0;
444 sofree( so );
444 sotryfree(so);
445
446 /* remove ddp from ddp_ports list */
447 if ( ddp->ddp_lsat.sat_port != ATADDR_ANYPORT &&
448 ddp_ports[ ddp->ddp_lsat.sat_port - 1 ] != NULL ) {
449 if ( ddp->ddp_pprev != NULL ) {
450 ddp->ddp_pprev->ddp_pnext = ddp->ddp_pnext;
451 } else {
452 ddp_ports[ ddp->ddp_lsat.sat_port - 1 ] = ddp->ddp_pnext;

--- 135 unchanged lines hidden ---
445
446 /* remove ddp from ddp_ports list */
447 if ( ddp->ddp_lsat.sat_port != ATADDR_ANYPORT &&
448 ddp_ports[ ddp->ddp_lsat.sat_port - 1 ] != NULL ) {
449 if ( ddp->ddp_pprev != NULL ) {
450 ddp->ddp_pprev->ddp_pnext = ddp->ddp_pnext;
451 } else {
452 ddp_ports[ ddp->ddp_lsat.sat_port - 1 ] = ddp->ddp_pnext;

--- 135 unchanged lines hidden ---