xref: /netbsd-src/usr.sbin/ldpd/mpls_interface.h (revision 6cb10275d08f045e872662c371fe2f2724f2f6e6)
1*6cb10275Sriastradh /* $NetBSD: mpls_interface.h,v 1.5 2014/03/18 18:20:47 riastradh Exp $ */
2e7341adaSkefren 
3e7341adaSkefren /*-
4e7341adaSkefren  * Copyright (c) 2010 The NetBSD Foundation, Inc.
5e7341adaSkefren  * All rights reserved.
6e7341adaSkefren  *
7e7341adaSkefren  * This code is derived from software contributed to The NetBSD Foundation
8e7341adaSkefren  * by Mihai Chelaru <kefren@NetBSD.org>
9e7341adaSkefren  *
10e7341adaSkefren  * Redistribution and use in source and binary forms, with or without
11e7341adaSkefren  * modification, are permitted provided that the following conditions
12e7341adaSkefren  * are met:
13e7341adaSkefren  * 1. Redistributions of source code must retain the above copyright
14e7341adaSkefren  *    notice, this list of conditions and the following disclaimer.
15e7341adaSkefren  * 2. Redistributions in binary form must reproduce the above copyright
16e7341adaSkefren  *    notice, this list of conditions and the following disclaimer in the
17e7341adaSkefren  *    documentation and/or other materials provided with the distribution.
18e7341adaSkefren  *
19e7341adaSkefren  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20e7341adaSkefren  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21e7341adaSkefren  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22e7341adaSkefren  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23e7341adaSkefren  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24e7341adaSkefren  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25e7341adaSkefren  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26e7341adaSkefren  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27e7341adaSkefren  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28e7341adaSkefren  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29e7341adaSkefren  * POSSIBILITY OF SUCH DAMAGE.
30e7341adaSkefren  */
31e7341adaSkefren 
32e7341adaSkefren #ifndef _MPLS_INTERFACE_H_
33e7341adaSkefren #define _MPLS_INTERFACE_H_
34e7341adaSkefren 
359b2110ebSkefren #include "label.h"
36e7341adaSkefren #include "mpls_routes.h"
37e7341adaSkefren 
389b2110ebSkefren int             mpls_add_label(struct label *);
392cc7bf11Skefren int             mpls_add_ldp_peer(const struct ldp_peer *);
402cc7bf11Skefren int             mpls_delete_ldp_peer(const struct ldp_peer *);
41e7341adaSkefren int             mpls_start_ldp(void);
42e7341adaSkefren 
43e7341adaSkefren #endif	/* _MPLS_INTERFACE_H_ */
44