at_control.c (108033) | at_control.c (109623) |
---|---|
1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 * | 1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 * |
5 * $FreeBSD: head/sys/netatalk/at_control.c 108033 2002-12-18 11:46:59Z hsu $ | 5 * $FreeBSD: head/sys/netatalk/at_control.c 109623 2003-01-21 08:56:16Z alfred $ |
6 */ 7 8#include <sys/param.h> 9#include <sys/systm.h> 10#include <sys/sockio.h> 11#include <sys/malloc.h> 12#include <sys/kernel.h> 13#include <sys/socket.h> --- 119 unchanged lines hidden (view full) --- 133 if ( ifp == 0 ) 134 panic( "at_control" ); 135 136 /* 137 * If we failed to find an existing at_ifaddr entry, then we 138 * allocate a fresh one. 139 */ 140 if ( aa == (struct at_ifaddr *) 0 ) { | 6 */ 7 8#include <sys/param.h> 9#include <sys/systm.h> 10#include <sys/sockio.h> 11#include <sys/malloc.h> 12#include <sys/kernel.h> 13#include <sys/socket.h> --- 119 unchanged lines hidden (view full) --- 133 if ( ifp == 0 ) 134 panic( "at_control" ); 135 136 /* 137 * If we failed to find an existing at_ifaddr entry, then we 138 * allocate a fresh one. 139 */ 140 if ( aa == (struct at_ifaddr *) 0 ) { |
141 aa0 = malloc(sizeof(struct at_ifaddr), M_IFADDR, M_WAITOK | M_ZERO); | 141 aa0 = malloc(sizeof(struct at_ifaddr), M_IFADDR, M_ZERO); |
142 if (( aa = at_ifaddr ) != NULL ) { 143 /* 144 * Don't let the loopback be first, since the first 145 * address is the machine's default address for 146 * binding. 147 * If it is, stick ourself in front, otherwise 148 * go to the back of the list. 149 */ --- 717 unchanged lines hidden --- | 142 if (( aa = at_ifaddr ) != NULL ) { 143 /* 144 * Don't let the loopback be first, since the first 145 * address is the machine's default address for 146 * binding. 147 * If it is, stick ourself in front, otherwise 148 * go to the back of the list. 149 */ --- 717 unchanged lines hidden --- |