Source to bsd/netat/h/rtmp.h


Enter a symbol's name here to quickly find it.

/*
 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
 *
 * @APPLE_LICENSE_HEADER_START@
 * 
 * "Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
 * Reserved.  This file contains Original Code and/or Modifications of
 * Original Code as defined in and that are subject to the Apple Public
 * Source License Version 1.0 (the 'License').  You may not use this file
 * except in compliance with the License.  Please obtain a copy of the
 * License at http://www.apple.com/publicsource and read it before using
 * this file.
 * 
 * The Original Code and all software distributed under the License are
 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
 * License for the specific language governing rights and limitations
 * under the License."
 * 
 * @APPLE_LICENSE_HEADER_END@
 */


/*
 *	Copyright (c) 1988, 1989 Apple Computer, Inc. 
 *
 *	The information contained herein is subject to change without
 *	notice and  should not be  construed as a commitment by Apple
 *	Computer, Inc. Apple Computer, Inc. assumes no responsibility
 *	for any errors that may appear.
 *
 *	Confidential and Proprietary to Apple Computer, Inc.
 */

/* @(#)rtmp.h: 2.0, 1.4; 7/17/89; Copyright 1988-89, Apple Computer, Inc. */

/* Changed 03-22-94 for router support  LD */

/* RTMP DDP socket number */
#define RTMP_SOCKET		0x01	/* RTMP socket number 	*/


/* DDP RTMP packet types */
#define RTMP_DDP_TYPE		0x01	/* RTMP data or response packet	*/
#define RTMP_REQ		0x05	/* RTMP request packet	*/

/* RTMP function codes */
#define RTMP_REQ_FUNC1		0x01	/* RTMP request function code=1 */
#define RTMP_REQ_FUNC2		0x02	/* Route Data Req with Split Horizon */
#define RTMP_REQ_FUNC3		0x03	/* Route Data Req no Split Horizon */


#define RTMP_ROUTER_AGE		50	/* Number of seconds to age router */

/* RTMP response and data packet format */

typedef struct {
        at_net  	at_rtmp_this_net;
        u_char      	at_rtmp_id_length;
        u_char      	at_rtmp_id[1];
} at_rtmp;

/* RTMP network/distance data tuples */

#define RTMP_TUPLE_SIZE		3

/* Extended AppleTalk tuple can be thought of as two of
 * these tuples back to back.
 */

#define RTMP_RANGE_FLAG 0x80
#define RTMP_DISTANCE   0x0f

typedef struct {
	at_net		at_rtmp_net;
	unsigned char	at_rtmp_data;
} at_rtmp_tuple;