mpls_interface.h revision 1.1
11.1Skefren/* $NetBSD: mpls_interface.h,v 1.1 2010/12/08 07:20:14 kefren Exp $ */ 21.1Skefren 31.1Skefren/*- 41.1Skefren * Copyright (c) 2010 The NetBSD Foundation, Inc. 51.1Skefren * All rights reserved. 61.1Skefren * 71.1Skefren * This code is derived from software contributed to The NetBSD Foundation 81.1Skefren * by Mihai Chelaru <kefren@NetBSD.org> 91.1Skefren * 101.1Skefren * Redistribution and use in source and binary forms, with or without 111.1Skefren * modification, are permitted provided that the following conditions 121.1Skefren * are met: 131.1Skefren * 1. Redistributions of source code must retain the above copyright 141.1Skefren * notice, this list of conditions and the following disclaimer. 151.1Skefren * 2. Redistributions in binary form must reproduce the above copyright 161.1Skefren * notice, this list of conditions and the following disclaimer in the 171.1Skefren * documentation and/or other materials provided with the distribution. 181.1Skefren * 191.1Skefren * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Skefren * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Skefren * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Skefren * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Skefren * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Skefren * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Skefren * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Skefren * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Skefren * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Skefren * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Skefren * POSSIBILITY OF SUCH DAMAGE. 301.1Skefren */ 311.1Skefren 321.1Skefren#ifndef _MPLS_INTERFACE_H_ 331.1Skefren#define _MPLS_INTERFACE_H_ 341.1Skefren 351.1Skefren#include "mpls_routes.h" 361.1Skefren 371.1Skefrenint mpls_add_label(struct ldp_peer *, struct rt_msg *, 381.1Skefren struct in_addr *, int, int, int); 391.1Skefrenint mpls_add_ldp_peer(struct ldp_peer *); 401.1Skefrenint mpls_delete_ldp_peer(struct ldp_peer *); 411.1Skefrenint mpls_start_ldp(void); 421.1Skefren 431.1Skefren#endif /* _MPLS_INTERFACE_H_ */ 44