components/quagga/patches/70-isisd-trill.patch
changeset 855 e14713202945
parent 641 719d637aca9f
child 3637 ccffa596a69c
equal deleted inserted replaced
854:7b5d0060108c 855:e14713202945
  3092 diff --git isisd/isis_trill.c isisd/isis_trill.c
  3092 diff --git isisd/isis_trill.c isisd/isis_trill.c
  3093 new file mode 100644
  3093 new file mode 100644
  3094 index 0000000..3a38660
  3094 index 0000000..3a38660
  3095 --- /dev/null
  3095 --- /dev/null
  3096 +++ isisd/isis_trill.c
  3096 +++ isisd/isis_trill.c
  3097 @@ -0,0 +1,2346 @@
  3097 @@ -0,0 +1,2348 @@
  3098 +/*
  3098 +/*
  3099 + * IS-IS Rout(e)ing protocol - isis_trill.c
  3099 + * IS-IS Rout(e)ing protocol - isis_trill.c
  3100 + *
  3100 + *
  3101 + * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
  3101 + * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
  3102 + *
  3102 + *
  3103 + * This program is free software; you can redistribute it and/or modify it 
  3103 + * This program is free software; you can redistribute it and/or modify it 
  3104 + * under the terms of the GNU General Public Licenseas published by the Free 
  3104 + * under the terms of the GNU General Public Licenseas published by the Free 
  3105 + * Software Foundation; either version 2 of the License, or (at your option) 
  3105 + * Software Foundation; either version 2 of the License, or (at your option) 
  3106 + * any later version.
  3106 + * any later version.
  3117 +#include <zebra.h>
  3117 +#include <zebra.h>
  3118 +#include <libdladm.h>
  3118 +#include <libdladm.h>
  3119 +#include <libdllink.h>
  3119 +#include <libdllink.h>
  3120 +#include <libdlbridge.h>
  3120 +#include <libdlbridge.h>
  3121 +#include <libdlvlan.h>
  3121 +#include <libdlvlan.h>
       
  3122 +#include <libnetcfg.h>
  3122 +#include <net/trill.h>
  3123 +#include <net/trill.h>
  3123 +
  3124 +
  3124 +#include "thread.h"
  3125 +#include "thread.h"
  3125 +#include "linklist.h"
  3126 +#include "linklist.h"
  3126 +#include "stream.h"
  3127 +#include "stream.h"
  5309 +  struct listnode *node, *nnode;
  5310 +  struct listnode *node, *nnode;
  5310 +  struct isis_circuit *circ;
  5311 +  struct isis_circuit *circ;
  5311 +  dladm_status_t status;
  5312 +  dladm_status_t status;
  5312 +  char errmsg[DLADM_STRSIZE];
  5313 +  char errmsg[DLADM_STRSIZE];
  5313 +
  5314 +
  5314 +  if ((status = dladm_open (&dlhandle)) != DLADM_STATUS_OK)
  5315 +  if ((status = dladm_open (&dlhandle, NETADM_ACTIVE_PROFILE))
       
  5316 +      != DLADM_STATUS_OK)
  5315 +    {
  5317 +    {
  5316 +      zlog_err ("%s: unable to open datalink control: %s",
  5318 +      zlog_err ("%s: unable to open datalink control: %s",
  5317 +          area->trill->name, dladm_status2str(status, errmsg));
  5319 +          area->trill->name, dladm_status2str(status, errmsg));
  5318 +      return FALSE;
  5320 +      return FALSE;
  5319 +    }
  5321 +    }