rsrr_var.h revision 1.1 1 1.1 mycroft /* $NetBSD: rsrr_var.h,v 1.1 1995/12/10 10:07:15 mycroft Exp $ */
2 1.1 mycroft
3 1.1 mycroft /*
4 1.1 mycroft * Copyright (c) 1993 by the University of Southern California
5 1.1 mycroft * All rights reserved.
6 1.1 mycroft *
7 1.1 mycroft * Permission to use, copy, modify, and distribute this software and its
8 1.1 mycroft * documentation in source and binary forms for non-commercial purposes
9 1.1 mycroft * and without fee is hereby granted, provided that the above copyright
10 1.1 mycroft * notice appear in all copies and that both the copyright notice and
11 1.1 mycroft * this permission notice appear in supporting documentation. and that
12 1.1 mycroft * any documentation, advertising materials, and other materials related
13 1.1 mycroft * to such distribution and use acknowledge that the software was
14 1.1 mycroft * developed by the University of Southern California, Information
15 1.1 mycroft * Sciences Institute. The name of the University may not be used to
16 1.1 mycroft * endorse or promote products derived from this software without
17 1.1 mycroft * specific prior written permission.
18 1.1 mycroft *
19 1.1 mycroft * THE UNIVERSITY OF SOUTHERN CALIFORNIA makes no representations about
20 1.1 mycroft * the suitability of this software for any purpose. THIS SOFTWARE IS
21 1.1 mycroft * PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES,
22 1.1 mycroft * INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
23 1.1 mycroft * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24 1.1 mycroft *
25 1.1 mycroft * Other copyrights might apply to parts of this software and are so
26 1.1 mycroft * noted when applicable.
27 1.1 mycroft */
28 1.1 mycroft
29 1.1 mycroft /* RSRR things that are only needed by mrouted. */
30 1.1 mycroft
31 1.1 mycroft /* Cache of Route Query messages, distinguished by source,
32 1.1 mycroft * destination, and client addresses. Cache is flushed by RSRR client
33 1.1 mycroft * -- it sends notification when an unwanted Route Reply is received.
34 1.1 mycroft * Since this only happens during route changes, it is more likely
35 1.1 mycroft * that the cache will be flushed when the kernel table entry is
36 1.1 mycroft * deleted. */
37 1.1 mycroft struct rsrr_cache {
38 1.1 mycroft struct rsrr_rq route_query; /* Cached Route Query */
39 1.1 mycroft struct sockaddr_un client_addr; /* Client address */
40 1.1 mycroft int client_length; /* Length of client */
41 1.1 mycroft struct rsrr_cache *next; /* next cache item */
42 1.1 mycroft };
43 1.1 mycroft
44