components/quagga/patches/70-isisd-trill.patch
changeset 3637 ccffa596a69c
parent 855 e14713202945
equal deleted inserted replaced
3636:ca7fe1fad4ea 3637:ccffa596a69c
  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,2348 @@
  3097 @@ -0,0 +1,2352 @@
  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, 2012, Oracle and/or its affiliates. All rights reserved.
  3101 + * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
  3102 + *
  3102 + *
  5310 +  struct listnode *node, *nnode;
  5310 +  struct listnode *node, *nnode;
  5311 +  struct isis_circuit *circ;
  5311 +  struct isis_circuit *circ;
  5312 +  dladm_status_t status;
  5312 +  dladm_status_t status;
  5313 +  char errmsg[DLADM_STRSIZE];
  5313 +  char errmsg[DLADM_STRSIZE];
  5314 +
  5314 +
       
  5315 +#ifdef NETADM_ACTIVE_PROFILE
  5315 +  if ((status = dladm_open (&dlhandle, NETADM_ACTIVE_PROFILE))
  5316 +  if ((status = dladm_open (&dlhandle, NETADM_ACTIVE_PROFILE))
       
  5317 +#else
       
  5318 +  if ((status = dladm_open (&dlhandle))
       
  5319 +#endif
  5316 +      != DLADM_STATUS_OK)
  5320 +      != DLADM_STATUS_OK)
  5317 +    {
  5321 +    {
  5318 +      zlog_err ("%s: unable to open datalink control: %s",
  5322 +      zlog_err ("%s: unable to open datalink control: %s",
  5319 +          area->trill->name, dladm_status2str(status, errmsg));
  5323 +          area->trill->name, dladm_status2str(status, errmsg));
  5320 +      return FALSE;
  5324 +      return FALSE;