ip_icmp.h (13486) | ip_icmp.h (13765) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)ip_icmp.h 8.1 (Berkeley) 6/10/93 | 1/* 2 * Copyright (c) 1982, 1986, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)ip_icmp.h 8.1 (Berkeley) 6/10/93 |
34 * $Id: ip_icmp.h,v 1.5 1995/11/14 20:34:13 phk Exp $ | 34 * $Id: ip_icmp.h,v 1.6 1996/01/19 01:19:08 fenner Exp $ |
35 */ 36 37#ifndef _NETINET_IP_ICMP_H_ 38#define _NETINET_IP_ICMP_H_ 39 40/* 41 * Interface Control Message Protocol Definitions. 42 * Per RFC 792, September 1981. --- 66 unchanged lines hidden (view full) --- 109#define icmp_radv icmp_dun.id_radv 110#define icmp_mask icmp_dun.id_mask 111#define icmp_data icmp_dun.id_data 112}; 113 114/* 115 * Lower bounds on packet lengths for various types. 116 * For the error advice packets must first insure that the | 35 */ 36 37#ifndef _NETINET_IP_ICMP_H_ 38#define _NETINET_IP_ICMP_H_ 39 40/* 41 * Interface Control Message Protocol Definitions. 42 * Per RFC 792, September 1981. --- 66 unchanged lines hidden (view full) --- 109#define icmp_radv icmp_dun.id_radv 110#define icmp_mask icmp_dun.id_mask 111#define icmp_data icmp_dun.id_data 112}; 113 114/* 115 * Lower bounds on packet lengths for various types. 116 * For the error advice packets must first insure that the |
117 * packet is large enought to contain the returned ip header. | 117 * packet is large enough to contain the returned ip header. |
118 * Only then can we do the check to see if 64 bits of packet 119 * data have been returned, since we need to check the returned 120 * ip header length. 121 */ 122#define ICMP_MINLEN 8 /* abs minimum */ 123#define ICMP_TSLEN (8 + 3 * sizeof (n_time)) /* timestamp */ 124#define ICMP_MASKLEN 12 /* address mask */ 125#define ICMP_ADVLENMIN (8 + sizeof (struct ip) + 8) /* min */ --- 57 unchanged lines hidden --- | 118 * Only then can we do the check to see if 64 bits of packet 119 * data have been returned, since we need to check the returned 120 * ip header length. 121 */ 122#define ICMP_MINLEN 8 /* abs minimum */ 123#define ICMP_TSLEN (8 + 3 * sizeof (n_time)) /* timestamp */ 124#define ICMP_MASKLEN 12 /* address mask */ 125#define ICMP_ADVLENMIN (8 + sizeof (struct ip) + 8) /* min */ --- 57 unchanged lines hidden --- |