• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/zebra/

Lines Matching refs:ifp

168   struct interface *ifp;
170 ifp = if_lookup_by_index (ifan->ifan_index);
171 if (ifp == NULL && ifan->ifan_what == IFAN_ARRIVAL)
174 ifp = if_get_by_name (ifan->ifan_name);
175 ifp->ifindex = ifan->ifan_index;
177 if_add_update (ifp);
179 else if (ifp != NULL && ifan->ifan_what == IFAN_DEPARTURE)
181 if_delete_update (ifp);
182 if_delete (ifp);
185 if_get_flags (ifp);
186 if_get_mtu (ifp);
187 if_get_metric (ifp);
190 zlog_info ("interface %s index %d", ifp->name, ifp->ifindex);
200 struct interface *ifp;
206 ifp = if_lookup_by_index (ifm->ifm_index);
208 if (ifp == NULL)
218 ifp = if_create ();
220 strncpy (ifp->name, sdl->sdl_data, sdl->sdl_nlen);
221 ifp->ifindex = ifm->ifm_index;
222 ifp->flags = ifm->ifm_flags;
224 if_kvm_get_mtu (ifp);
226 if_get_mtu (ifp);
228 if_get_metric (ifp);
236 memcpy (&ifp->sdl, sdl, sizeof (struct sockaddr_dl));
238 if_add_update (ifp);
243 if (if_is_up (ifp))
245 ifp->flags = ifm->ifm_flags;
246 if (! if_is_up (ifp))
247 if_down (ifp);
251 ifp->flags = ifm->ifm_flags;
252 if (if_is_up (ifp))
253 if_up (ifp);
258 ifp->stats = ifm->ifm_data;
262 zlog_info ("interface %s index %d", ifp->name, ifp->ifindex);
321 struct interface *ifp;
325 ifp = if_lookup_by_index (ifam->ifam_index);
326 if (ifp == NULL)
336 if_refresh (ifp);
343 connected_add_ipv4 (ifp, 0, &addr.sin.sin_addr,
347 connected_delete_ipv4 (ifp, 0, &addr.sin.sin_addr,
359 connected_add_ipv6 (ifp,
364 connected_delete_ipv6 (ifp,
542 struct interface *ifp;
591 ifp = if_lookup_by_index (index);
596 if (! gate && message == RTM_ADD && ifp &&
597 (ifp->flags & IFF_POINTOPOINT) == 0)
604 if (!ifp)
609 gate = (union sockunion *) & ifp->sdl;