Make idempotent.
Submitted by: Paul
This commit is contained in:
parent
6818438323
commit
cea1da3be2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2168
@ -37,9 +37,12 @@
|
|||||||
*
|
*
|
||||||
* @(#)bpf.h 8.1 (Berkeley) 6/10/93
|
* @(#)bpf.h 8.1 (Berkeley) 6/10/93
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: bpf.h,v 1.2 1994/08/02 07:45:54 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_BPF_H_
|
||||||
|
#define _NET_BPF_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Alignment macros. BPF_WORDALIGN rounds up to the next
|
* Alignment macros. BPF_WORDALIGN rounds up to the next
|
||||||
* even multiple of BPF_ALIGNMENT.
|
* even multiple of BPF_ALIGNMENT.
|
||||||
@ -250,3 +253,4 @@ u_int bpf_filter __P((struct bpf_insn *, u_char *, u_int, u_int));
|
|||||||
*/
|
*/
|
||||||
#define BPF_MEMWORDS 16
|
#define BPF_MEMWORDS 16
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)bpf_compat.h 8.1 (Berkeley) 6/10/93
|
* @(#)bpf_compat.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id$
|
* $Id: bpf_compat.h,v 1.2 1994/08/02 07:45:56 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_BPF_COMPAT_H_
|
||||||
|
#define _NET_BPF_COMPAT_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Some hacks for compatibility across SunOS and 4.4BSD. We emulate malloc
|
* Some hacks for compatibility across SunOS and 4.4BSD. We emulate malloc
|
||||||
* and free with mbuf clusters. We store a pointer to the mbuf in the first
|
* and free with mbuf clusters. We store a pointer to the mbuf in the first
|
||||||
@ -47,3 +50,5 @@
|
|||||||
|
|
||||||
/* This mapping works for our purposes. */
|
/* This mapping works for our purposes. */
|
||||||
#define ERESTART EINTR
|
#define ERESTART EINTR
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -37,9 +37,12 @@
|
|||||||
*
|
*
|
||||||
* @(#)bpfdesc.h 8.1 (Berkeley) 6/10/93
|
* @(#)bpfdesc.h 8.1 (Berkeley) 6/10/93
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: bpfdesc.h,v 1.3 1994/08/02 07:46:00 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_BPFDESC_H_
|
||||||
|
#define _NET_BPFDESC_H_
|
||||||
|
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -98,3 +101,5 @@ struct bpf_if {
|
|||||||
#ifdef KERNEL
|
#ifdef KERNEL
|
||||||
int bpf_setf __P((struct bpf_d *, struct bpf_program *));
|
int bpf_setf __P((struct bpf_d *, struct bpf_program *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)if.h 8.1 (Berkeley) 6/10/93
|
* @(#)if.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id: if.h,v 1.4 1994/08/08 10:49:19 davidg Exp $
|
* $Id: if.h,v 1.5 1994/08/18 22:35:20 wollman Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_IF_H_
|
||||||
|
#define _NET_IF_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Structures defining a network interface, providing a packet
|
* Structures defining a network interface, providing a packet
|
||||||
* transport mechanism (ala level 0 of the PUP protocols).
|
* transport mechanism (ala level 0 of the PUP protocols).
|
||||||
@ -364,3 +367,5 @@ int looutput __P((struct ifnet *,
|
|||||||
struct mbuf *, struct sockaddr *, struct rtentry *));
|
struct mbuf *, struct sockaddr *, struct rtentry *));
|
||||||
void lortrequest __P((int, struct rtentry *, struct sockaddr *));
|
void lortrequest __P((int, struct rtentry *, struct sockaddr *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)if_arp.h 8.1 (Berkeley) 6/10/93
|
* @(#)if_arp.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id$
|
* $Id: if_arp.h,v 1.2 1994/08/02 07:46:10 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_IF_ARP_H_
|
||||||
|
#define _NET_IF_ARP_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Address Resolution Protocol.
|
* Address Resolution Protocol.
|
||||||
*
|
*
|
||||||
@ -84,3 +87,5 @@ struct arpreq {
|
|||||||
#define ATF_PERM 0x04 /* permanent entry */
|
#define ATF_PERM 0x04 /* permanent entry */
|
||||||
#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
|
#define ATF_PUBL 0x08 /* publish entry (respond for other host) */
|
||||||
#define ATF_USETRAILERS 0x10 /* has requested trailers */
|
#define ATF_USETRAILERS 0x10 /* has requested trailers */
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)if_dl.h 8.1 (Berkeley) 6/10/93
|
* @(#)if_dl.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id$
|
* $Id: if_dl.h,v 1.2 1994/08/02 07:46:12 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_IF_DL_H_
|
||||||
|
#define _NET_IF_DL_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A Link-Level Sockaddr may specify the interface in one of two
|
* A Link-Level Sockaddr may specify the interface in one of two
|
||||||
* ways: either by means of a system-provided index number (computed
|
* ways: either by means of a system-provided index number (computed
|
||||||
@ -79,3 +82,5 @@ char *link_ntoa __P((const struct sockaddr_dl *));
|
|||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
#endif /* !KERNEL */
|
#endif /* !KERNEL */
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)if_llc.h 8.1 (Berkeley) 6/10/93
|
* @(#)if_llc.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id$
|
* $Id: if_llc.h,v 1.2 1994/08/02 07:46:16 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_IF_LLC_H_
|
||||||
|
#define _NET_IF_LLC_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* IEEE 802.2 Link Level Control headers, for use in conjunction with
|
* IEEE 802.2 Link Level Control headers, for use in conjunction with
|
||||||
* 802.{3,4,5} media access control methods.
|
* 802.{3,4,5} media access control methods.
|
||||||
@ -139,8 +142,4 @@ struct llc {
|
|||||||
#define LLC_SNAP_LSAP 0xaa
|
#define LLC_SNAP_LSAP 0xaa
|
||||||
#define LLC_ISO_LSAP 0xfe
|
#define LLC_ISO_LSAP 0xfe
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,9 +32,12 @@
|
|||||||
*
|
*
|
||||||
* @(#)if_slvar.h 8.3 (Berkeley) 2/1/94
|
* @(#)if_slvar.h 8.3 (Berkeley) 2/1/94
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: if_slvar.h,v 1.2 1994/08/02 07:46:22 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_IF_SLVAR_H_
|
||||||
|
#define _NET_IF_SLVAR_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Definitions for SLIP interface data structures
|
* Definitions for SLIP interface data structures
|
||||||
*
|
*
|
||||||
@ -78,3 +81,5 @@ int sloutput __P((struct ifnet *,
|
|||||||
void slstart __P((struct tty *));
|
void slstart __P((struct tty *));
|
||||||
int sltioctl __P((struct tty *, int, caddr_t, int));
|
int sltioctl __P((struct tty *, int, caddr_t, int));
|
||||||
#endif /* KERNEL */
|
#endif /* KERNEL */
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)if_types.h 8.2 (Berkeley) 4/20/94
|
* @(#)if_types.h 8.2 (Berkeley) 4/20/94
|
||||||
* $Id$
|
* $Id: if_types.h,v 1.2 1994/08/02 07:46:26 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_IF_TYPES_H_
|
||||||
|
#define _NET_IF_TYPES_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interface types for benefit of parsing media address headers.
|
* Interface types for benefit of parsing media address headers.
|
||||||
* This list is derived from the SNMP list of ifTypes, currently
|
* This list is derived from the SNMP list of ifTypes, currently
|
||||||
@ -94,3 +97,5 @@
|
|||||||
#define IFT_SMDSICIP 0x34 /* SMDS InterCarrier Interface */
|
#define IFT_SMDSICIP 0x34 /* SMDS InterCarrier Interface */
|
||||||
#define IFT_PROPVIRTUAL 0x35 /* Proprietary Virtual/internal */
|
#define IFT_PROPVIRTUAL 0x35 /* Proprietary Virtual/internal */
|
||||||
#define IFT_PROPMUX 0x36 /* Proprietary Multiplexing */
|
#define IFT_PROPMUX 0x36 /* Proprietary Multiplexing */
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)netisr.h 8.1 (Berkeley) 6/10/93
|
* @(#)netisr.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id$
|
* $Id: netisr.h,v 1.3 1994/08/02 07:46:27 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_NETISR_H_
|
||||||
|
#define _NET_NETISR_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The networking code runs off software interrupts.
|
* The networking code runs off software interrupts.
|
||||||
*
|
*
|
||||||
@ -67,3 +70,5 @@
|
|||||||
volatile unsigned int netisr; /* scheduling bits for network */
|
volatile unsigned int netisr; /* scheduling bits for network */
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,11 +31,11 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)radix.h 8.1 (Berkeley) 6/10/93
|
* @(#)radix.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id$
|
* $Id: radix.h,v 1.2 1994/08/02 07:46:31 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _RADIX_H_
|
#ifndef _NET_RADIX_H_
|
||||||
#define _RADIX_H_
|
#define _NET_RADIX_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Radix search tree node layout.
|
* Radix search tree node layout.
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)raw_cb.h 8.1 (Berkeley) 6/10/93
|
* @(#)raw_cb.h 8.1 (Berkeley) 6/10/93
|
||||||
* $Id$
|
* $Id: raw_cb.h,v 1.2 1994/08/02 07:46:36 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_RAW_CB_H_
|
||||||
|
#define _NET_RAW_CB_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Raw protocol interface control block. Used
|
* Raw protocol interface control block. Used
|
||||||
* to tie a socket to the generic raw interface.
|
* to tie a socket to the generic raw interface.
|
||||||
@ -68,3 +71,5 @@ void raw_input __P((struct mbuf *,
|
|||||||
int raw_usrreq __P((struct socket *,
|
int raw_usrreq __P((struct socket *,
|
||||||
int, struct mbuf *, struct mbuf *, struct mbuf *));
|
int, struct mbuf *, struct mbuf *, struct mbuf *));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)route.h 8.3 (Berkeley) 4/19/94
|
* @(#)route.h 8.3 (Berkeley) 4/19/94
|
||||||
* $Id$
|
* $Id: route.h,v 1.3 1994/08/02 07:46:42 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_ROUTE_H_
|
||||||
|
#define _NET_ROUTE_H_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Kernel resident routing tables.
|
* Kernel resident routing tables.
|
||||||
*
|
*
|
||||||
@ -260,3 +263,5 @@ void rtredirect __P((struct sockaddr *, struct sockaddr *,
|
|||||||
int rtrequest __P((int, struct sockaddr *,
|
int rtrequest __P((int, struct sockaddr *,
|
||||||
struct sockaddr *, struct sockaddr *, int, struct rtentry **));
|
struct sockaddr *, struct sockaddr *, int, struct rtentry **));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
@ -35,9 +35,12 @@
|
|||||||
*
|
*
|
||||||
* Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
|
* Van Jacobson (van@helios.ee.lbl.gov), Dec 31, 1989:
|
||||||
* - Initial distribution.
|
* - Initial distribution.
|
||||||
* $Id$
|
* $Id: slcompress.h,v 1.2 1994/08/02 07:46:48 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _NET_SLCOMPRESS_H_
|
||||||
|
#define _NET_SLCOMPRESS_H_
|
||||||
|
|
||||||
#define MAX_STATES 16 /* must be > 2 and < 256 */
|
#define MAX_STATES 16 /* must be > 2 and < 256 */
|
||||||
#define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */
|
#define MAX_HDR MLEN /* XXX 4bsd-ism: should really be 128 */
|
||||||
|
|
||||||
@ -153,4 +156,6 @@ struct slcompress {
|
|||||||
void sl_compress_init __P((struct slcompress *));
|
void sl_compress_init __P((struct slcompress *));
|
||||||
u_int sl_compress_tcp __P((struct mbuf *,
|
u_int sl_compress_tcp __P((struct mbuf *,
|
||||||
struct ip *, struct slcompress *, int));
|
struct ip *, struct slcompress *, int));
|
||||||
|
|
||||||
|
#endif
|
||||||
int sl_uncompress_tcp __P((u_char **, int, u_int, struct slcompress *));
|
int sl_uncompress_tcp __P((u_char **, int, u_int, struct slcompress *));
|
||||||
|
@ -31,9 +31,12 @@
|
|||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)slip.h 8.1 (Berkeley) 2/12/94
|
* @(#)slip.h 8.1 (Berkeley) 2/12/94
|
||||||
* $Id$
|
* $Id: slip.h,v 1.2 1994/08/02 07:46:50 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef _NET_SLIP_H_
|
||||||
|
#define _NET_SLIP_H_
|
||||||
|
|
||||||
/* Ioctls operating on SLIP ttys. */
|
/* Ioctls operating on SLIP ttys. */
|
||||||
#define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */
|
#define SLIOCGUNIT _IOR('t', 88, int) /* get slip unit number */
|
||||||
|
|
||||||
@ -49,4 +52,6 @@
|
|||||||
#define CHDR_LEN 15 /* length of compressed header data */
|
#define CHDR_LEN 15 /* length of compressed header data */
|
||||||
|
|
||||||
#define SLIPDIR_IN 0 /* incoming */
|
#define SLIPDIR_IN 0 /* incoming */
|
||||||
|
|
||||||
|
#endif
|
||||||
#define SLIPDIR_OUT 1 /* outgoing */
|
#define SLIPDIR_OUT 1 /* outgoing */
|
||||||
|
Loading…
Reference in New Issue
Block a user