ipx.c (93593) | ipx.c (109623) |
---|---|
1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ipx.c 35 * | 1/* 2 * Copyright (c) 1995, Mike Mitchell 3 * Copyright (c) 1984, 1985, 1986, 1987, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)ipx.c 35 * |
36 * $FreeBSD: head/sys/netipx/ipx.c 93593 2002-04-01 21:31:13Z jhb $ | 36 * $FreeBSD: head/sys/netipx/ipx.c 109623 2003-01-21 08:56:16Z alfred $ |
37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> 42#include <sys/sockio.h> 43#include <sys/socket.h> 44 --- 80 unchanged lines hidden (view full) --- 125 return (EADDRNOTAVAIL); 126 /* FALLTHROUGH */ 127 128 case SIOCSIFADDR: 129 case SIOCSIFDSTADDR: 130 if (ia == NULL) { 131 oia = (struct ipx_ifaddr *) 132 malloc(sizeof(*ia), M_IFADDR, | 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> 42#include <sys/sockio.h> 43#include <sys/socket.h> 44 --- 80 unchanged lines hidden (view full) --- 125 return (EADDRNOTAVAIL); 126 /* FALLTHROUGH */ 127 128 case SIOCSIFADDR: 129 case SIOCSIFDSTADDR: 130 if (ia == NULL) { 131 oia = (struct ipx_ifaddr *) 132 malloc(sizeof(*ia), M_IFADDR, |
133 M_WAITOK | M_ZERO); | 133 M_ZERO); |
134 if (oia == NULL) 135 return (ENOBUFS); 136 if ((ia = ipx_ifaddr) != NULL) { 137 for ( ; ia->ia_next != NULL; ia = ia->ia_next) 138 ; 139 ia->ia_next = oia; 140 } else 141 ipx_ifaddr = oia; --- 250 unchanged lines hidden --- | 134 if (oia == NULL) 135 return (ENOBUFS); 136 if ((ia = ipx_ifaddr) != NULL) { 137 for ( ; ia->ia_next != NULL; ia = ia->ia_next) 138 ; 139 ia->ia_next = oia; 140 } else 141 ipx_ifaddr = oia; --- 250 unchanged lines hidden --- |