arp.c (28974) | arp.c (29265) |
---|---|
1/* 2 * sys-bsd.c - System-dependent procedures for setting up 3 * PPP interfaces on bsd-4.4-ish systems (including 386BSD, NetBSD, etc.) 4 * 5 * Copyright (c) 1989 Carnegie Mellon University. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by Carnegie Mellon University. The name of the 14 * University may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * | 1/* 2 * sys-bsd.c - System-dependent procedures for setting up 3 * PPP interfaces on bsd-4.4-ish systems (including 386BSD, NetBSD, etc.) 4 * 5 * Copyright (c) 1989 Carnegie Mellon University. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by Carnegie Mellon University. The name of the 14 * University may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * |
20 * $Id: arp.c,v 1.13 1997/08/25 00:29:03 brian Exp $ | 20 * $Id: arp.c,v 1.14 1997/08/31 22:59:12 brian Exp $ |
21 * 22 */ 23 24/* 25 * TODO: 26 */ 27 28#include <sys/ioctl.h> --- 12 unchanged lines hidden (view full) --- 41#include <netinet/in.h> 42#include <stdio.h> 43#include <fcntl.h> 44#ifdef __bsdi__ 45#include <kvm.h> 46#endif 47#include <net/if_types.h> 48#include <netinet/in_var.h> | 21 * 22 */ 23 24/* 25 * TODO: 26 */ 27 28#include <sys/ioctl.h> --- 12 unchanged lines hidden (view full) --- 41#include <netinet/in.h> 42#include <stdio.h> 43#include <fcntl.h> 44#ifdef __bsdi__ 45#include <kvm.h> 46#endif 47#include <net/if_types.h> 48#include <netinet/in_var.h> |
49#include <netinet/if_ether.h> 50#include "log.h" 51 | |
52#if RTM_VERSION >= 3 53#include <netinet/if_ether.h> 54#endif | 49#if RTM_VERSION >= 3 50#include <netinet/if_ether.h> 51#endif |
52#include "log.h" |
|
55 56static int rtm_seq; 57 58static int get_ether_addr(int, u_long, struct sockaddr_dl *); 59 60#define BCOPY(s, d, l) memcpy(d, s, l) 61#define BZERO(s, n) memset(s, 0, n) 62/* --- 350 unchanged lines hidden --- | 53 54static int rtm_seq; 55 56static int get_ether_addr(int, u_long, struct sockaddr_dl *); 57 58#define BCOPY(s, d, l) memcpy(d, s, l) 59#define BZERO(s, n) memset(s, 0, n) 60/* --- 350 unchanged lines hidden --- |