159191Skris/*	$NetBSD: rsrr_var.h,v 1.2 2002/10/01 03:41:13 itojun Exp $	*/
259191Skris
355714Skris/*
4273399Sdelphij * Copyright (c) 1998-2001.
5273399Sdelphij * The University of Southern California/Information Sciences Institute.
6273399Sdelphij * All rights reserved.
759191Skris *
8109998Smarkm * Redistribution and use in source and binary forms, with or without
9109998Smarkm * modification, are permitted provided that the following conditions
10194206Ssimon * are met:
11238405Sjkim * 1. Redistributions of source code must retain the above copyright
12238405Sjkim *    notice, this list of conditions and the following disclaimer.
13162911Ssimon * 2. Redistributions in binary form must reproduce the above copyright
14160814Ssimon *    notice, this list of conditions and the following disclaimer in the
15160814Ssimon *    documentation and/or other materials provided with the distribution.
16160814Ssimon * 3. Neither the name of the project nor the names of its contributors
17194206Ssimon *    may be used to endorse or promote products derived from this software
18194206Ssimon *    without specific prior written permission.
19194206Ssimon *
20109998Smarkm * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
21109998Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22109998Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23238405Sjkim * ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
24238405Sjkim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25160814Ssimon * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26160814Ssimon * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27160814Ssimon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28160814Ssimon * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29167612Ssimon * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30167612Ssimon * SUCH DAMAGE.
31167612Ssimon */
32238405Sjkim
33238405Sjkim/* RSRR things that are only needed by mrouted. */
34194206Ssimon
35238405Sjkim/* Cache of Route Query messages, distinguished by source,
36238405Sjkim * destination, and client addresses.  Cache is flushed by RSRR client
37238405Sjkim * -- it sends notification when an unwanted Route Reply is received.
38269686Sjkim * Since this only happens during route changes, it is more likely
39269686Sjkim * that the cache will be flushed when the kernel table entry is
40269686Sjkim * deleted.  */
41109998Smarkmstruct rsrr_cache {
42109998Smarkm    struct rsrr_rq route_query;		/* Cached Route Query */
43194206Ssimon    struct sockaddr_un client_addr;	/* Client address */
44160814Ssimon    int client_length;			/* Length of client */
45160814Ssimon    struct rsrr_cache *next;		/* next cache item */
46160814Ssimon};
47109998Smarkm
48109998Smarkm