Lines Matching refs:ifp

59 if_zebra_linkdetect_set_val (struct interface *ifp, zebra_if_linkdetect val)  in if_zebra_linkdetect_set_val()  argument
64 SET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION); in if_zebra_linkdetect_set_val()
67 UNSET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION); in if_zebra_linkdetect_set_val()
74 if_zebra_linkdetect_set (struct interface *ifp) in if_zebra_linkdetect_set() argument
76 struct zebra_if *zif = ifp->info; in if_zebra_linkdetect_set()
78 int if_was_operative = if_is_operative(ifp); in if_zebra_linkdetect_set()
82 if_zebra_linkdetect_set_val (ifp, zif->linkdetect); in if_zebra_linkdetect_set()
86 SET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION); in if_zebra_linkdetect_set()
88 if_zebra_linkdetect_set_val (ifp, zif_defaults.linkdetect); in if_zebra_linkdetect_set()
91 if (!if_is_operative(ifp) && if_was_operative) if_down(ifp); in if_zebra_linkdetect_set()
93 if (if_is_operative(ifp) && !if_was_operative) if_up(ifp); in if_zebra_linkdetect_set()
98 if_zebra_new_hook (struct interface *ifp) in if_zebra_new_hook() argument
110 UNSET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION); in if_zebra_new_hook()
115 SET_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION); in if_zebra_new_hook()
150 ifp->info = zebra_if; in if_zebra_new_hook()
156 if_zebra_delete_hook (struct interface *ifp) in if_zebra_delete_hook() argument
160 if (ifp->info) in if_zebra_delete_hook()
162 zebra_if = ifp->info; in if_zebra_delete_hook()
176 if_subnet_add (struct interface *ifp, struct connected *ifc) in if_subnet_add() argument
183 assert (ifp && ifp->info && ifc); in if_subnet_add()
184 zebra_if = ifp->info; in if_subnet_add()
210 if_subnet_delete (struct interface *ifp, struct connected *ifc) in if_subnet_delete() argument
216 assert (ifp && ifp->info && ifc); in if_subnet_delete()
217 zebra_if = ifp->info; in if_subnet_delete()
252 zebra_interface_address_delete_update (ifp, ifc); in if_subnet_delete()
257 zebra_interface_address_add_update (ifp, ifc); in if_subnet_delete()
296 if_flags_mangle (struct interface *ifp, uint64_t *newflags) in if_flags_mangle() argument
299 struct zebra_if *zif = ifp->info; in if_flags_mangle()
304 || listcount(ifp->connected) > 0) in if_flags_mangle()
318 if_flags_update (struct interface *ifp, uint64_t newflags) in if_flags_update() argument
320 if_flags_mangle (ifp, &newflags); in if_flags_update()
322 if (if_is_operative (ifp)) in if_flags_update()
325 ifp->flags = newflags; in if_flags_update()
326 if (!if_is_operative (ifp)) in if_flags_update()
327 if_down (ifp); in if_flags_update()
332 ifp->flags = newflags; in if_flags_update()
333 if (if_is_operative (ifp)) in if_flags_update()
334 if_up (ifp); in if_flags_update()
341 if_addr_wakeup (struct interface *ifp) in if_addr_wakeup() argument
348 for (ALL_LIST_ELEMENTS (ifp->connected, node, nnode, ifc)) in if_addr_wakeup()
358 if (! if_is_up (ifp)) in if_addr_wakeup()
377 if_set_flags (ifp, IFF_UP | IFF_RUNNING); in if_addr_wakeup()
378 if_refresh (ifp); in if_addr_wakeup()
381 ret = if_set_prefix (ifp, ifc); in if_addr_wakeup()
397 if (! if_is_up (ifp)) in if_addr_wakeup()
400 if_set_flags (ifp, IFF_UP | IFF_RUNNING); in if_addr_wakeup()
401 if_refresh (ifp); in if_addr_wakeup()
404 ret = if_prefix_add_ipv6 (ifp, ifc); in if_addr_wakeup()
435 struct interface *ifp; in if_startup_count_up() local
441 for (ALL_LIST_ELEMENTS_RO (vrf_iter2iflist(iter), node, ifp)) in if_startup_count_up()
443 zif = ifp->info; in if_startup_count_up()
444 if (!zif->up_events.count && if_is_operative(ifp)) in if_startup_count_up()
452 if_add_update (struct interface *ifp) in if_add_update() argument
456 if_data = ifp->info; in if_add_update()
460 if_set_flags (ifp, IFF_MULTICAST); in if_add_update()
462 if_unset_flags (ifp, IFF_MULTICAST); in if_add_update()
464 zebra_interface_add_update (ifp); in if_add_update()
466 if (! CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE)) in if_add_update()
468 SET_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE); in if_add_update()
475 ifp->name, ifp->vrf_id, ifp->ifindex); in if_add_update()
479 if_addr_wakeup (ifp); in if_add_update()
483 ifp->name, ifp->vrf_id, ifp->ifindex); in if_add_update()
489 ifp->name, ifp->vrf_id, ifp->ifindex); in if_add_update()
499 if (!if_data->up_events.count && if_is_operative(ifp)) in if_add_update()
506 if_delete_update (struct interface *ifp) in if_delete_update() argument
513 zebra_if = ifp->info; in if_delete_update()
515 if (if_is_up(ifp)) in if_delete_update()
518 ifp->name, ifp->vrf_id, ifp->ifindex); in if_delete_update()
523 UNSET_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE); in if_delete_update()
527 ifp->name, ifp->vrf_id, ifp->ifindex); in if_delete_update()
530 if (ifp->connected) in if_delete_update()
535 while ((node = (last ? last->next : listhead (ifp->connected)))) in if_delete_update()
564 connected_down_ipv4 (ifp, ifc); in if_delete_update()
569 zebra_interface_address_delete_update (ifp, ifc); in if_delete_update()
581 listnode_delete (ifp->connected, ifc); in if_delete_update()
596 connected_down_ipv6 (ifp, ifc); in if_delete_update()
598 zebra_interface_address_delete_update (ifp, ifc); in if_delete_update()
607 listnode_delete (ifp->connected, ifc); in if_delete_update()
618 zebra_interface_delete_update (ifp); in if_delete_update()
625 ifp->ifindex = IFINDEX_INTERNAL; in if_delete_update()
630 if_up (struct interface *ifp) in if_up() argument
637 if_count_up(ifp->info); in if_up()
640 zebra_interface_up_update (ifp); in if_up()
643 if (ifp->connected) in if_up()
645 for (ALL_LIST_ELEMENTS (ifp->connected, node, next, ifc)) in if_up()
650 connected_up_ipv4 (ifp, ifc); in if_up()
653 connected_up_ipv6 (ifp, ifc); in if_up()
659 rib_update (ifp->vrf_id); in if_up()
665 if_down (struct interface *ifp) in if_down() argument
673 zif = ifp->info; in if_down()
678 zebra_interface_down_update (ifp); in if_down()
681 if (ifp->connected) in if_down()
683 for (ALL_LIST_ELEMENTS (ifp->connected, node, next, ifc)) in if_down()
688 connected_down_ipv4 (ifp, ifc); in if_down()
691 connected_down_ipv6 (ifp, ifc); in if_down()
697 rib_update (ifp->vrf_id); in if_down()
701 if_refresh (struct interface *ifp) in if_refresh() argument
703 if_get_flags (ifp); in if_refresh()
751 nd_dump_vty (struct vty *vty, struct interface *ifp) in nd_dump_vty() argument
757 zif = (struct zebra_if *) ifp->info; in nd_dump_vty()
813 if_dump_vty (struct vty *vty, struct interface *ifp) in if_dump_vty() argument
820 zebra_if = ifp->info; in if_dump_vty()
822 vty_out (vty, "Interface %s is ", ifp->name); in if_dump_vty()
823 if (if_is_up(ifp)) { in if_dump_vty()
826 if (CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION)) { in if_dump_vty()
827 if (if_is_running(ifp)) in if_dump_vty()
843 vty_out (vty, " vrf: %u%s", ifp->vrf_id, VTY_NEWLINE); in if_dump_vty()
845 if (ifp->desc) in if_dump_vty()
846 vty_out (vty, " Description: %s%s", ifp->desc, in if_dump_vty()
848 if (ifp->ifindex == IFINDEX_INTERNAL) in if_dump_vty()
853 else if (! CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE)) in if_dump_vty()
856 ifp->ifindex, in if_dump_vty()
862 ifp->ifindex, ifp->metric, ifp->mtu); in if_dump_vty()
864 if (ifp->mtu6 != ifp->mtu) in if_dump_vty()
865 vty_out (vty, "mtu6 %d ", ifp->mtu6); in if_dump_vty()
868 if_flag_dump (ifp->flags), VTY_NEWLINE); in if_dump_vty()
871 vty_out (vty, " Type: %s%s", if_link_type_str (ifp->ll_type), VTY_NEWLINE); in if_dump_vty()
872 if (ifp->hw_addr_len != 0) in if_dump_vty()
877 for (i = 0; i < ifp->hw_addr_len; i++) in if_dump_vty()
878 vty_out (vty, "%s%02x", i == 0 ? "" : ":", ifp->hw_addr[i]); in if_dump_vty()
883 if (ifp->bandwidth != 0) in if_dump_vty()
885 vty_out(vty, " bandwidth %u kbps", ifp->bandwidth); in if_dump_vty()
898 for (ALL_LIST_ELEMENTS_RO (ifp->connected, node, connected)) in if_dump_vty()
905 if (HAS_LINK_PARAMS(ifp)) in if_dump_vty()
908 struct if_link_params *iflp = ifp->link_params; in if_dump_vty()
950 nd_dump_vty (vty, ifp); in if_dump_vty()
953 nd_dump_vty (vty, ifp); in if_dump_vty()
960 ifp->stats.rx_packets, ifp->stats.rx_multicast, in if_dump_vty()
961 ifp->stats.rx_bytes, ifp->stats.rx_dropped, VTY_NEWLINE); in if_dump_vty()
965 ifp->stats.rx_errors, ifp->stats.rx_length_errors, in if_dump_vty()
966 ifp->stats.rx_over_errors, ifp->stats.rx_crc_errors, in if_dump_vty()
967 ifp->stats.rx_frame_errors, VTY_NEWLINE); in if_dump_vty()
969 vty_out (vty, " %lu fifo, %lu missed%s", ifp->stats.rx_fifo_errors, in if_dump_vty()
970 ifp->stats.rx_missed_errors, VTY_NEWLINE); in if_dump_vty()
973 ifp->stats.tx_packets, ifp->stats.tx_bytes, in if_dump_vty()
974 ifp->stats.tx_dropped, VTY_NEWLINE); in if_dump_vty()
978 ifp->stats.tx_errors, ifp->stats.tx_aborted_errors, in if_dump_vty()
979 ifp->stats.tx_carrier_errors, ifp->stats.tx_fifo_errors, in if_dump_vty()
980 ifp->stats.tx_heartbeat_errors, VTY_NEWLINE); in if_dump_vty()
983 ifp->stats.tx_window_errors, ifp->stats.collisions, VTY_NEWLINE); in if_dump_vty()
991 (unsigned long long)ifp->stats.ifi_ipackets, in if_dump_vty()
992 (unsigned long long)ifp->stats.ifi_ibytes, in if_dump_vty()
993 (unsigned long long)ifp->stats.ifi_iqdrops, in if_dump_vty()
994 (unsigned long long)ifp->stats.ifi_imcasts, in if_dump_vty()
998 (unsigned long long)ifp->stats.ifi_ierrors, VTY_NEWLINE); in if_dump_vty()
1002 (unsigned long long)ifp->stats.ifi_opackets, in if_dump_vty()
1003 (unsigned long long)ifp->stats.ifi_obytes, in if_dump_vty()
1004 (unsigned long long)ifp->stats.ifi_omcasts, in if_dump_vty()
1008 (unsigned long long)ifp->stats.ifi_oerrors, VTY_NEWLINE); in if_dump_vty()
1011 (unsigned long long)ifp->stats.ifi_collisions, VTY_NEWLINE); in if_dump_vty()
1016 ifp->stats.ifi_ipackets, ifp->stats.ifi_ibytes, in if_dump_vty()
1017 ifp->stats.ifi_iqdrops, ifp->stats.ifi_imcasts, in if_dump_vty()
1021 ifp->stats.ifi_ierrors, VTY_NEWLINE); in if_dump_vty()
1024 ifp->stats.ifi_opackets, ifp->stats.ifi_obytes, in if_dump_vty()
1025 ifp->stats.ifi_omcasts, VTY_NEWLINE); in if_dump_vty()
1028 ifp->stats.ifi_oerrors, VTY_NEWLINE); in if_dump_vty()
1031 ifp->stats.ifi_collisions, VTY_NEWLINE); in if_dump_vty()
1047 struct interface *ifp; variable
1053 ifp = vty->index;
1055 if (ifp->ifindex == IFINDEX_INTERNAL)
1058 UNSET_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE);
1084 struct interface *ifp; variable
1100 for (ALL_LIST_ELEMENTS_RO (vrf_iflist (vrf_id), node, ifp))
1101 if_dump_vty (vty, ifp);
1121 struct interface *ifp; variable
1135 for (ALL_LIST_ELEMENTS_RO (vrf_iter2iflist (iter), node, ifp))
1136 if_dump_vty (vty, ifp);
1148 struct interface *ifp; variable
1164 ifp = if_lookup_by_name_vrf (argv[0], vrf_id);
1165 if (ifp == NULL)
1171 if_dump_vty (vty, ifp);
1192 struct interface *ifp; variable
1209 ifp = if_lookup_by_name_vrf (argv[0], vrf_iter2id (iter));
1210 if (ifp)
1212 if_dump_vty (vty, ifp);
1230 struct interface *ifp; in if_show_description() local
1233 for (ALL_LIST_ELEMENTS_RO (vrf_iflist (vrf_id), node, ifp)) in if_show_description()
1237 len = vty_out (vty, "%s", ifp->name); in if_show_description()
1240 if (if_is_up(ifp)) in if_show_description()
1243 if (CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_LINKDETECTION)) in if_show_description()
1245 if (if_is_running(ifp)) in if_show_description()
1260 if (ifp->desc) in if_show_description()
1261 vty_out (vty, "%s", ifp->desc); in if_show_description()
1319 struct interface *ifp; variable
1322 ifp = (struct interface *) vty->index;
1323 if (CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE))
1325 ret = if_set_flags (ifp, IFF_MULTICAST);
1331 if_refresh (ifp);
1333 if_data = ifp->info;
1346 struct interface *ifp; variable
1349 ifp = (struct interface *) vty->index;
1350 if (CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE))
1352 ret = if_unset_flags (ifp, IFF_MULTICAST);
1358 if_refresh (ifp);
1360 if_data = ifp->info;
1393 struct interface *ifp; variable
1403 for (ALL_LIST_ELEMENTS_RO (vrf_iter2iflist (iter), node, ifp))
1404 if_zebra_linkdetect_set (ifp);
1415 struct interface *ifp; variable
1418 ifp = (struct interface *) vty->index;
1419 zif = ifp->info;
1423 if_zebra_linkdetect_set (ifp);
1438 struct interface *ifp; variable
1441 ifp = (struct interface *) vty->index;
1442 zif = ifp->info;
1446 if_zebra_linkdetect_set (ifp);
1459 struct interface *ifp; variable
1462 ifp = (struct interface *) vty->index;
1463 if (ifp->ifindex != IFINDEX_INTERNAL)
1465 ret = if_unset_flags (ifp, IFF_UP);
1471 if_refresh (ifp);
1473 if_data = ifp->info;
1486 struct interface *ifp; variable
1489 ifp = (struct interface *) vty->index;
1491 if (ifp->ifindex != IFINDEX_INTERNAL)
1493 ret = if_set_flags (ifp, IFF_UP | IFF_RUNNING);
1499 if_refresh (ifp);
1504 if_addr_wakeup(ifp);
1507 if_data = ifp->info;
1519 struct interface *ifp; variable
1522 ifp = (struct interface *) vty->index;
1532 ifp->bandwidth = bandwidth;
1535 if (if_is_operative (ifp))
1536 zebra_interface_up_update (ifp);
1547 struct interface *ifp; variable
1549 ifp = (struct interface *) vty->index;
1551 ifp->bandwidth = 0;
1554 if (if_is_operative (ifp))
1555 zebra_interface_up_update (ifp);
1575 link_param_cmd_set_uint32 (struct interface *ifp, uint32_t *field, in link_param_cmd_set_uint32() argument
1579 if (IS_PARAM_UNSET(ifp->link_params, type) || *field != value) in link_param_cmd_set_uint32()
1582 SET_PARAM(ifp->link_params, type); in link_param_cmd_set_uint32()
1585 if (if_is_operative (ifp)) in link_param_cmd_set_uint32()
1586 zebra_interface_parameters_update (ifp); in link_param_cmd_set_uint32()
1590 link_param_cmd_set_float (struct interface *ifp, float *field, in link_param_cmd_set_float() argument
1595 if (IS_PARAM_UNSET(ifp->link_params, type) || *field != value) in link_param_cmd_set_float()
1598 SET_PARAM(ifp->link_params, type); in link_param_cmd_set_float()
1601 if (if_is_operative (ifp)) in link_param_cmd_set_float()
1602 zebra_interface_parameters_update (ifp); in link_param_cmd_set_float()
1607 link_param_cmd_unset (struct interface *ifp, uint32_t type) in link_param_cmd_unset() argument
1611 UNSET_PARAM(ifp->link_params, type); in link_param_cmd_unset()
1614 if (if_is_operative (ifp)) in link_param_cmd_unset()
1615 zebra_interface_parameters_update (ifp); in link_param_cmd_unset()
1644 struct interface *ifp = (struct interface *) vty->index; variable
1650 zlog_debug ("Link-params: enable TE link parameters on interface %s", ifp->name);
1652 if (!if_link_params_get (ifp))
1655 zlog_debug ("Link-params: failed to init TE link parameters %s", ifp->name);
1661 if (if_is_operative (ifp))
1662 zebra_interface_parameters_update (ifp);
1673 struct interface *ifp = (struct interface *) vty->index; variable
1675 zlog_debug ("MPLS-TE: disable TE link parameters on interface %s", ifp->name);
1677 if_link_params_free (ifp);
1680 if (if_is_operative (ifp))
1681 zebra_interface_parameters_update (ifp);
1693 struct interface *ifp = (struct interface *) vty->index; variable
1694 struct if_link_params *iflp = if_link_params_get (ifp);
1700 link_param_cmd_set_uint32 (ifp, &iflp->te_metric, LP_TE, metric);
1711 struct interface *ifp = (struct interface *) vty->index; variable
1714 link_param_cmd_unset(ifp, LP_TE);
1725 struct interface *ifp = (struct interface *) vty->index; variable
1726 struct if_link_params *iflp = if_link_params_get (ifp);
1758 link_param_cmd_set_float (ifp, &iflp->max_bw, LP_MAX_BW, bw);
1769 struct interface *ifp = (struct interface *) vty->index; variable
1770 struct if_link_params *iflp = if_link_params_get (ifp);
1790 link_param_cmd_set_float (ifp, &iflp->max_rsv_bw, LP_MAX_RSV_BW, bw);
1802 struct interface *ifp = (struct interface *) vty->index; variable
1803 struct if_link_params *iflp = if_link_params_get (ifp);
1832 link_param_cmd_set_float (ifp, &iflp->unrsv_bw[priority], LP_UNRSV_BW, bw);
1843 struct interface *ifp = (struct interface *) vty->index; variable
1844 struct if_link_params *iflp = if_link_params_get (ifp);
1855 link_param_cmd_set_uint32 (ifp, &iflp->admin_grp, LP_ADM_GRP, value);
1866 struct interface *ifp = (struct interface *) vty->index; variable
1869 link_param_cmd_unset(ifp, LP_ADM_GRP);
1884 struct interface *ifp = (struct interface *) vty->index; variable
1885 struct if_link_params *iflp = if_link_params_get (ifp);
1908 if (if_is_operative (ifp))
1909 zebra_interface_parameters_update (ifp);
1921 struct interface *ifp = (struct interface *) vty->index; variable
1922 struct if_link_params *iflp = if_link_params_get (ifp);
1930 if (if_is_operative (ifp))
1931 zebra_interface_parameters_update (ifp);
1944 struct interface *ifp = (struct interface *) vty->index; variable
1945 struct if_link_params *iflp = if_link_params_get (ifp);
2014 if (update == 1 && if_is_operative (ifp))
2015 zebra_interface_parameters_update (ifp);
2036 struct interface *ifp = (struct interface *) vty->index; variable
2037 struct if_link_params *iflp = if_link_params_get (ifp);
2047 if (if_is_operative (ifp))
2048 zebra_interface_parameters_update (ifp);
2059 struct interface *ifp = (struct interface *) vty->index; variable
2060 struct if_link_params *iflp = if_link_params_get (ifp);
2066 link_param_cmd_set_uint32 (ifp, &iflp->delay_var, LP_DELAY_VAR, value);
2077 struct interface *ifp = (struct interface *) vty->index; variable
2080 link_param_cmd_unset(ifp, LP_DELAY_VAR);
2091 struct interface *ifp = (struct interface *) vty->index; variable
2092 struct if_link_params *iflp = if_link_params_get (ifp);
2106 link_param_cmd_set_float (ifp, &iflp->pkt_loss, LP_PKT_LOSS, fval);
2117 struct interface *ifp = (struct interface *) vty->index; variable
2120 link_param_cmd_unset(ifp, LP_PKT_LOSS);
2131 struct interface *ifp = (struct interface *) vty->index; variable
2132 struct if_link_params *iflp = if_link_params_get (ifp);
2152 link_param_cmd_set_float (ifp, &iflp->res_bw, LP_RES_BW, bw);
2163 struct interface *ifp = (struct interface *) vty->index; variable
2166 link_param_cmd_unset(ifp, LP_RES_BW);
2177 struct interface *ifp = (struct interface *) vty->index; variable
2178 struct if_link_params *iflp = if_link_params_get (ifp);
2198 link_param_cmd_set_float (ifp, &iflp->ava_bw, LP_AVA_BW, bw);
2209 struct interface *ifp = (struct interface *) vty->index; variable
2212 link_param_cmd_unset(ifp, LP_AVA_BW);
2223 struct interface *ifp = (struct interface *) vty->index; variable
2224 struct if_link_params *iflp = if_link_params_get (ifp);
2244 link_param_cmd_set_float (ifp, &iflp->use_bw, LP_USE_BW, bw);
2255 struct interface *ifp = (struct interface *) vty->index; variable
2258 link_param_cmd_unset(ifp, LP_USE_BW);
2264 ip_address_install (struct vty *vty, struct interface *ifp, in ip_address_install() argument
2274 if_data = ifp->info; in ip_address_install()
2283 ifc = connected_check (ifp, (struct prefix *) &cp); in ip_address_install()
2287 ifc->ifp = ifp; in ip_address_install()
2308 listnode_add (ifp->connected, ifc); in ip_address_install()
2317 && CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE) in ip_address_install()
2321 if (! if_is_up (ifp)) in ip_address_install()
2323 if_set_flags (ifp, IFF_UP | IFF_RUNNING); in ip_address_install()
2324 if_refresh (ifp); in ip_address_install()
2327 ret = if_set_prefix (ifp, ifc); in ip_address_install()
2345 ip_address_uninstall (struct vty *vty, struct interface *ifp, in ip_address_uninstall() argument
2362 ifc = connected_check (ifp, (struct prefix *) &cp); in ip_address_uninstall()
2377 || ! CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE)) in ip_address_uninstall()
2379 listnode_delete (ifp->connected, ifc); in ip_address_uninstall()
2385 ret = if_unset_prefix (ifp, ifc); in ip_address_uninstall()
2448 ipv6_address_install (struct vty *vty, struct interface *ifp, in ipv6_address_install() argument
2458 if_data = ifp->info; in ipv6_address_install()
2467 ifc = connected_check (ifp, (struct prefix *) &cp); in ipv6_address_install()
2471 ifc->ifp = ifp; in ipv6_address_install()
2487 listnode_add (ifp->connected, ifc); in ipv6_address_install()
2496 && CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE) in ipv6_address_install()
2500 if (! if_is_up (ifp)) in ipv6_address_install()
2502 if_set_flags (ifp, IFF_UP | IFF_RUNNING); in ipv6_address_install()
2503 if_refresh (ifp); in ipv6_address_install()
2506 ret = if_prefix_add_ipv6 (ifp, ifc); in ipv6_address_install()
2524 ipv6_address_uninstall (struct vty *vty, struct interface *ifp, in ipv6_address_uninstall() argument
2541 ifc = connected_check (ifp, (struct prefix *) &cp); in ipv6_address_uninstall()
2556 || ! CHECK_FLAG (ifp->status, ZEBRA_INTERFACE_ACTIVE)) in ipv6_address_uninstall()
2558 listnode_delete (ifp->connected, ifc); in ipv6_address_uninstall()
2564 ret = if_prefix_delete_ipv6 (ifp, ifc); in ipv6_address_uninstall()
2601 link_params_config_write (struct vty *vty, struct interface *ifp) in link_params_config_write() argument
2605 if ((ifp == NULL) || !HAS_LINK_PARAMS(ifp)) in link_params_config_write()
2608 struct if_link_params *iflp = ifp->link_params; in link_params_config_write()
2657 struct interface *ifp; in if_config_write() local
2661 for (ALL_LIST_ELEMENTS_RO (vrf_iter2iflist (iter), node, ifp)) in if_config_write()
2668 if_data = ifp->info; in if_config_write()
2670 if (ifp->vrf_id == VRF_DEFAULT) in if_config_write()
2671 vty_out (vty, "interface %s%s", ifp->name, VTY_NEWLINE); in if_config_write()
2673 vty_out (vty, "interface %s vrf %u%s", ifp->name, ifp->vrf_id, in if_config_write()
2682 if (ifp->desc) in if_config_write()
2683 vty_out (vty, " description %s%s", ifp->desc, in if_config_write()
2688 if (ifp->bandwidth != 0) in if_config_write()
2689 vty_out(vty, " bandwidth %u%s", ifp->bandwidth, VTY_NEWLINE); in if_config_write()
2702 for (ALL_LIST_ELEMENTS_RO (ifp->connected, addrnode, ifc)) in if_config_write()
2728 rtadv_config_write (vty, ifp); in if_config_write()
2732 irdp_config_write (vty, ifp); in if_config_write()
2735 link_params_config_write (vty, ifp); in if_config_write()