arp.c (13379) | arp.c (13389) |
---|---|
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.2 1995/05/30 03:50:23 rgrimes Exp $ | 20 * $Id: arp.c,v 1.3 1996/01/10 21:27:35 phk Exp $ |
21 * 22 */ 23 24/* 25 * TODO: 26 */ 27 28#include <sys/ioctl.h> --- 20 unchanged lines hidden (view full) --- 49#include "log.h" 50 51#if RTM_VERSION >= 3 52#include <netinet/if_ether.h> 53#endif 54 55static int rtm_seq; 56 | 21 * 22 */ 23 24/* 25 * TODO: 26 */ 27 28#include <sys/ioctl.h> --- 20 unchanged lines hidden (view full) --- 49#include "log.h" 50 51#if RTM_VERSION >= 3 52#include <netinet/if_ether.h> 53#endif 54 55static int rtm_seq; 56 |
57static int get_ether_addr __P((int, u_long, struct sockaddr_dl *)); 58 |
|
57#define BCOPY(s, d, l) memcpy(d, s, l) 58#define BZERO(s, n) memset(s, 0, n) 59/* 60 * SET_SA_FAMILY - set the sa_family field of a struct sockaddr, 61 * if it exists. 62 */ 63#define SET_SA_FAMILY(addr, family) \ 64 BZERO((char *) &(addr), sizeof(addr)); \ --- 360 unchanged lines hidden --- | 59#define BCOPY(s, d, l) memcpy(d, s, l) 60#define BZERO(s, n) memset(s, 0, n) 61/* 62 * SET_SA_FAMILY - set the sa_family field of a struct sockaddr, 63 * if it exists. 64 */ 65#define SET_SA_FAMILY(addr, family) \ 66 BZERO((char *) &(addr), sizeof(addr)); \ --- 360 unchanged lines hidden --- |