mpls_interface.h revision 1.5
11.5Sriastrad/* $NetBSD: mpls_interface.h,v 1.5 2014/03/18 18:20:47 riastradh 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.4Skefren#include "label.h"
361.1Skefren#include "mpls_routes.h"
371.1Skefren
381.4Skefrenint             mpls_add_label(struct label *);
391.3Skefrenint             mpls_add_ldp_peer(const struct ldp_peer *);
401.3Skefrenint             mpls_delete_ldp_peer(const struct ldp_peer *);
411.1Skefrenint             mpls_start_ldp(void);
421.1Skefren
431.1Skefren#endif	/* _MPLS_INTERFACE_H_ */
44