Deleted Added
full compact
if_fddisubr.c (27845) if_fddisubr.c (30834)
1/*
2 * Copyright (c) 1995, 1996
3 * Matt Thomas <matt@3am-software.com>. All rights reserved.
4 * Copyright (c) 1982, 1989, 1993
5 * The Regents of the University of California. 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

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
1/*
2 * Copyright (c) 1995, 1996
3 * Matt Thomas <matt@3am-software.com>. All rights reserved.
4 * Copyright (c) 1982, 1989, 1993
5 * The Regents of the University of California. 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

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
36 * $Id: if_fddisubr.c,v 1.19 1997/05/10 10:01:32 jhay Exp $
36 * $Id: if_fddisubr.c,v 1.20 1997/08/02 14:32:36 bde Exp $
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>
42#include <sys/mbuf.h>
43#include <sys/socket.h>
44

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

221 extern char *prsockaddr(struct sockaddr *);
222 printf("aarpresolv: failed for %s\n", prsockaddr(dst));
223#endif
224 return (0);
225 }
226 /*
227 * ifaddr is the first thing in at_ifaddr
228 */
37 */
38
39#include <sys/param.h>
40#include <sys/systm.h>
41#include <sys/kernel.h>
42#include <sys/mbuf.h>
43#include <sys/socket.h>
44

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

221 extern char *prsockaddr(struct sockaddr *);
222 printf("aarpresolv: failed for %s\n", prsockaddr(dst));
223#endif
224 return (0);
225 }
226 /*
227 * ifaddr is the first thing in at_ifaddr
228 */
229 if ((aa = (struct at_ifaddr *)at_ifawithnet(
230 (struct sockaddr_at *)dst, &ifp->if_addrhead))
231 == 0)
229 if ((aa = at_ifawithnet( (struct sockaddr_at *)dst)) == 0)
232 goto bad;
233
234 /*
235 * In the phase 2 case, we need to prepend an mbuf for the llc header.
236 * Since we must preserve the value of m, which is passed to us by
237 * value, we m_copy() the first mbuf, and use it for our llc header.
238 */
239 if (aa->aa_flags & AFA_PHASE2) {

--- 489 unchanged lines hidden ---
230 goto bad;
231
232 /*
233 * In the phase 2 case, we need to prepend an mbuf for the llc header.
234 * Since we must preserve the value of m, which is passed to us by
235 * value, we m_copy() the first mbuf, and use it for our llc header.
236 */
237 if (aa->aa_flags & AFA_PHASE2) {

--- 489 unchanged lines hidden ---