예제 #1
0
파일: if.c 프로젝트: yubo/quagga
/* Interface printing for all interface. */
void if_dump_all(void)
{
	struct listnode *node;
	void *p;

	for (ALL_LIST_ELEMENTS_RO(iflist, node, p))
		if_dump(p);
}
예제 #2
0
파일: if.c 프로젝트: ColinBS/quagga-rtrlib
/* Interface printing for all interface. */
void
if_dump_all (void)
{
  struct list *intf_list;
  struct listnode *node;
  void *p;
  vrf_iter_t iter;

  for (iter = vrf_first (); iter != VRF_ITER_INVALID; iter = vrf_next (iter))
    if ((intf_list = vrf_iter2iflist (iter)) != NULL)
      for (ALL_LIST_ELEMENTS_RO (intf_list, node, p))
        if_dump (p);
}