]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_mpls_null.c
zebra: dup addr detect clear cmd non-zero return
[mirror_frr.git] / zebra / zebra_mpls_null.c
index 23f5e72956415a345ef48aa2a6810ffb7fe38162..02ec506d84604f641ecb1b86dbc5777fda341c17 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #include <zebra.h>
 #include "zebra/rt.h"
 #include "zebra/zebra_mpls.h"
 
-int kernel_add_lsp (zebra_lsp_t *lsp) { return 0; }
-int kernel_upd_lsp (zebra_lsp_t *lsp) { return 0; }
-int kernel_del_lsp (zebra_lsp_t *lsp) { return 0; }
-int mpls_kernel_init (void) { return -1; };
+#if !defined(HAVE_NETLINK) && !defined(OPEN_BSD)
+
+enum zebra_dplane_result kernel_add_lsp(zebra_lsp_t *lsp)
+{
+       return ZEBRA_DPLANE_REQUEST_SUCCESS;
+}
+
+enum zebra_dplane_result kernel_upd_lsp(zebra_lsp_t *lsp)
+{
+       return ZEBRA_DPLANE_REQUEST_SUCCESS;
+}
+
+enum zebra_dplane_result kernel_del_lsp(zebra_lsp_t *lsp)
+{
+       return ZEBRA_DPLANE_REQUEST_SUCCESS;
+}
+
+int mpls_kernel_init(void)
+{
+       return -1;
+};
+
+#endif /* !defined(HAVE_NETLINK) && !defined(OPEN_BSD) */