1*043fbe51Sderaadt /* $OpenBSD: mopdef.c,v 1.8 2009/10/27 23:59:52 deraadt Exp $ */
2e08c8b61Smaja
3bff609efSmaja /*
4bff609efSmaja * Copyright (c) 1995 Mats O Jansson. All rights reserved.
5bff609efSmaja *
6bff609efSmaja * Redistribution and use in source and binary forms, with or without
7bff609efSmaja * modification, are permitted provided that the following conditions
8bff609efSmaja * are met:
9bff609efSmaja * 1. Redistributions of source code must retain the above copyright
10bff609efSmaja * notice, this list of conditions and the following disclaimer.
11bff609efSmaja * 2. Redistributions in binary form must reproduce the above copyright
12bff609efSmaja * notice, this list of conditions and the following disclaimer in the
13bff609efSmaja * documentation and/or other materials provided with the distribution.
14bff609efSmaja *
15bff609efSmaja * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16bff609efSmaja * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17bff609efSmaja * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18bff609efSmaja * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19bff609efSmaja * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20bff609efSmaja * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21bff609efSmaja * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22bff609efSmaja * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23bff609efSmaja * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24bff609efSmaja * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25bff609efSmaja */
26bff609efSmaja
27a4c5f38fSmaja #include <sys/types.h>
28a4c5f38fSmaja
29bff609efSmaja #define MOPDEF_SURPESS_EXTERN
30bff609efSmaja #include "common/mopdef.h"
31bff609efSmaja
32a4c5f38fSmaja u_char dl_mcst[6] = MOP_DL_MULTICAST; /* Dump/Load Multicast */
33a4c5f38fSmaja u_char rc_mcst[6] = MOP_RC_MULTICAST; /* Remote Console Multicast */
34a4c5f38fSmaja u_char dl_802_proto[5] = MOP_K_PROTO_802_DL; /* MOP Dump/Load 802.2 */
35a4c5f38fSmaja u_char rc_802_proto[5] = MOP_K_PROTO_802_RC; /* MOP Remote Console 802.2 */
36a4c5f38fSmaja u_char lp_802_proto[5] = MOP_K_PROTO_802_LP; /* Loopback 802.2 */
37bff609efSmaja
38bff609efSmaja int
mopdef_dummy(void)3927ce7e35Shenning mopdef_dummy(void)
40bff609efSmaja {
41bff609efSmaja /* Just to keep them as variables */
4227ce7e35Shenning return (dl_mcst[0] - rc_mcst[0] - lp_802_proto[1] - rc_802_proto[1] -
4327ce7e35Shenning lp_802_proto[1]);
44bff609efSmaja }
45