arp.h revision e11c3f44f531fdff80941ce57c065d2ae861cefc
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1990 Mentat Inc. */
#ifndef _INET_ARP_H
#define _INET_ARP_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Warning: the interfaces described in this file are private to the
* implementation. They may change at any time without notice and are not
* documented. Do not depend on them.
*/
#define ARP_REQUEST 1
#define ARP_RESPONSE 2
#define RARP_REQUEST 3
#define RARP_RESPONSE 4
#define CMD_IN_PROGRESS 0x10000
/*
* This is not an ARP command per se, it is used to interface between
* ARP and IP during close.
*/
/* Both ace_flags and area_flags; must also modify arp.c in mdb */
#define ACE_F_PERMANENT 0x0001
#define ACE_F_PUBLISH 0x0002
#define ACE_F_DYING 0x0004
#define ACE_F_RESOLVED 0x0008
/* Using bit mask extraction from target address */
#define ACE_F_MAPPING 0x0010
/* ared_flags */
/* ARP Command Structures */
/* arc_t - Common command overlay */
typedef struct ar_cmd_s {
} arc_t;
/*
* NOTE: when using area_t for an AR_ENTRY_SQUERY, the area_hw_addr_offset
* field isn't what you might think. See comments in ip_multi.c where
* the routine ill_create_squery() is called, and also in the routine
* itself, to see how this field is used *only* when the area_t holds
* an AR_ENTRY_SQUERY.
*/
typedef struct ar_entry_add_s {
} area_t;
typedef struct ar_entry_delete_s {
} ared_t;
typedef struct ar_entry_query_s {
/* # ofquests to buffer; 0: default */
} areq_t;
#define AR_EQ_DEFAULT_XMIT_COUNT 6
#define AR_EQ_DEFAULT_XMIT_INTERVAL 1000
#define AR_EQ_DEFAULT_MAX_BUFFERED 4
/*
* Structure used with AR_ENTRY_LLAQUERY to map from the link_addr
* (in Neighbor Discovery option format excluding the option type and
* length) to a hardware address.
* The response has the same format as for an AR_ENTRY_SQUERY - an M_CTL with
* arel_hw_addr updated.
* An IPv6 address will be passed in AR_ENTRY_LLAQUERY so that atmip
* can send it in AR_CLIENT_NOTIFY messages.
*/
typedef struct ar_entry_llaquery_s {
} arel_t;
typedef struct ar_mapping_add_s {
/* Offset were we start placing */
/* the mask&proto_addr */
} arma_t;
/* Structure used to notify ARP of changes to IPMP group topology */
typedef struct ar_ipmp_event_s {
char arie_grifname[LIFNAMSIZ];
} arie_t;
/* Structure used to notify clients of interesting conditions. */
typedef struct ar_client_notify_s {
} arcn_t;
/* Client Notification Codes */
#define AR_CN_BOGON 1
#define AR_CN_ANNOUNCE 2
/* ARP Header */
typedef struct arh_s {
} arh_t;
#ifdef __cplusplus
}
#endif
#endif /* _INET_ARP_H */