• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/ospfd/

Lines Matching defs:vl_config

648 ospf_vl_config_data_init (struct ospf_vl_config_data *vl_config, 
651 memset (vl_config, 0, sizeof (struct ospf_vl_config_data));
652 vl_config->auth_type = OSPF_AUTH_CMD_NOTSEEN;
653 vl_config->vty = vty;
657 ospf_find_vl_data (struct ospf_vl_config_data *vl_config)
664 vty = vl_config->vty;
665 area_id = vl_config->area_id;
674 area = ospf_area_get (area_id, vl_config->format);
678 if (vl_config->format == OSPF_AREA_ID_FORMAT_ADDRESS)
699 if ((vl_data = ospf_vl_lookup (area, vl_config->vl_peer)) == NULL)
701 vl_data = ospf_vl_data_new (area, vl_config->vl_peer);
715 struct ospf_vl_config_data *vl_config)
721 vty = vl_config->vty;
723 if (vl_config->auth_type != OSPF_AUTH_CMD_NOTSEEN)
726 IF_DEF_PARAMS (ifp)->auth_type = vl_config->auth_type;
729 if (vl_config->auth_key)
732 strncpy (IF_DEF_PARAMS (ifp)->auth_simple, vl_config->auth_key,
735 else if (vl_config->md5_key)
737 if (ospf_crypt_key_lookup (IF_DEF_PARAMS (ifp)->auth_crypt, vl_config->crypto_key_id)
741 vl_config->crypto_key_id, VTY_NEWLINE);
745 ck->key_id = vl_config->crypto_key_id;
747 strncpy (ck->auth_key, vl_config->md5_key, OSPF_AUTH_MD5_SIZE);
751 else if (vl_config->crypto_key_id != 0)
756 vl_config->crypto_key_id) == NULL)
759 vl_config->crypto_key_id, VTY_NEWLINE);
763 ospf_crypt_key_delete (IF_DEF_PARAMS (ifp)->auth_crypt, vl_config->crypto_key_id);
774 struct ospf_vl_config_data *vl_config)
779 if (vl_config->hello_interval)
782 IF_DEF_PARAMS (ifp)->v_hello = vl_config->hello_interval;
785 if (vl_config->dead_interval)
788 IF_DEF_PARAMS (ifp)->v_wait = vl_config->dead_interval;
791 if (vl_config->retransmit_interval)
794 IF_DEF_PARAMS (ifp)->retransmit_interval = vl_config->retransmit_interval;
797 if (vl_config->transmit_delay)
800 IF_DEF_PARAMS (ifp)->transmit_delay = vl_config->transmit_delay;
810 ospf_vl_set (struct ospf_vl_config_data *vl_config)
815 vl_data = ospf_find_vl_data (vl_config);
824 ret = ospf_vl_set_security (vl_data, vl_config);
830 ret = ospf_vl_set_timers (vl_data, vl_config);
882 struct ospf_vl_config_data vl_config;
888 ospf_vl_config_data_init(&vl_config, vty);
891 ret = ospf_str2area_id (argv[0], &vl_config.area_id, &vl_config.format);
898 ret = inet_aton (argv[1], &vl_config.vl_peer);
910 return ospf_vl_set (&vl_config);
930 vl_config.auth_key = auth_key;
937 vl_config.auth_type = OSPF_AUTH_SIMPLE;
943 vl_config.auth_type = OSPF_AUTH_NULL;
950 vl_config.auth_type = OSPF_AUTH_CRYPTOGRAPHIC;
960 vl_config.crypto_key_id = strtol (argv[i], NULL, 10);
961 if (vl_config.crypto_key_id < 0)
966 vl_config.md5_key = md5_key;
972 vl_config.hello_interval = strtol (argv[i], NULL, 10);
973 if (vl_config.hello_interval < 0)
980 vl_config.retransmit_interval = strtol (argv[i], NULL, 10);
981 if (vl_config.retransmit_interval < 0)
988 vl_config.transmit_delay = strtol (argv[i], NULL, 10);
989 if (vl_config.transmit_delay < 0)
996 vl_config.dead_interval = strtol (argv[i], NULL, 10);
997 if (vl_config.dead_interval < 0)
1006 return ospf_vl_set (&vl_config);
1017 struct ospf_vl_config_data vl_config;
1023 ospf_vl_config_data_init(&vl_config, vty);
1025 ret = ospf_str2area_id (argv[0], &vl_config.area_id, &format);
1032 area = ospf_area_lookup_by_area_id (vl_config.area_id);
1039 ret = inet_aton (argv[1], &vl_config.vl_peer);
1051 if ((vl_data = ospf_vl_lookup (area, vl_config.vl_peer)))
1054 ospf_area_check_free (vl_config.area_id);
1077 vl_config.auth_key = auth_key;
1083 vl_config.auth_type = OSPF_AUTH_NOTSET;
1091 vl_config.crypto_key_id = strtol (argv[i], NULL, 10);
1092 if (vl_config.crypto_key_id < 0)
1094 vl_config.md5_key = NULL;
1099 vl_config.hello_interval = OSPF_HELLO_INTERVAL_DEFAULT;
1104 vl_config.retransmit_interval = OSPF_RETRANSMIT_INTERVAL_DEFAULT;
1109 vl_config.transmit_delay = OSPF_TRANSMIT_DELAY_DEFAULT;
1115 vl_config.dead_interval = OSPF_ROUTER_DEAD_INTERVAL_DEFAULT;
1123 return ospf_vl_set (&vl_config);