Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 25 of 402) sorted by relevance

12345678910>>...17

/openbsd/usr.sbin/dvmrpd/
H A Dinterface.c151 struct iface *iface; in if_find_index() local
165 struct iface *iface; in if_new() local
245 if_del(struct iface *iface) in if_del() argument
260 if_nbr_list_empty(struct iface *iface) in if_nbr_list_empty() argument
269 struct iface *iface = arg; in if_probe_timer() local
300 struct iface *iface = arg; in if_query_timer() local
337 struct iface *iface = arg; in if_querier_present_timer() local
376 if_act_start(struct iface *iface) in if_act_start() argument
450 if_act_reset(struct iface *iface) in if_act_reset() argument
599 if_set_mcast(struct iface *iface) in if_set_mcast() argument
[all …]
H A Digmp.c38 send_igmp_query(struct iface *iface, struct group *group) in send_igmp_query() argument
47 if (iface->passive) in send_igmp_query()
89 recv_igmp_query(struct iface *iface, struct in_addr src, char *buf, in recv_igmp_query() argument
99 iface->name); in recv_igmp_query()
109 iface->name); in recv_igmp_query()
136 recv_igmp_report(struct iface *iface, struct in_addr src, char *buf, in recv_igmp_report() argument
146 iface->name); in recv_igmp_report()
155 iface->name); in recv_igmp_report()
162 iface->name); in recv_igmp_report()
188 recv_igmp_leave(struct iface *iface, struct in_addr src, char *buf, in recv_igmp_leave() argument
[all …]
H A Dpacket.c48 gen_dvmrp_hdr(struct ibuf *buf, struct iface *iface, u_int8_t code) in gen_dvmrp_hdr() argument
94 iface->name); in send_packet()
107 struct iface *iface; in recv_packet() local
243 iface->name); in recv_packet()
265 u_int16_t len, const struct iface *iface) in dvmrp_hdr_sanity_check() argument
280 struct iface *
283 struct iface *iface = NULL; in find_iface() local
291 return (iface); in find_iface()
293 if (iface->fd > 0 && (iface->addr.s_addr & in find_iface()
295 iface->mask.s_addr) && !iface->passive) in find_iface()
[all …]
H A Ddvmrpe.h57 struct iface *iface; member
125 void group_list_clr(struct iface *);
126 int group_list_empty(struct iface *);
133 int if_fsm(struct iface *, enum iface_event);
134 struct iface *if_new(struct kif *);
135 int if_del(struct iface *);
136 int if_nbr_list_empty(struct iface *);
149 int if_set_mcast(struct iface *);
151 struct ctl_iface *if_to_ctl(struct iface *);
186 int send_packet(struct iface *, struct ibuf *,
[all …]
H A Ddvmrpe.c71 struct iface *iface = NULL; in dvmrpe() local
191 struct iface *iface; in dvmrpe_shutdown() local
205 iface->name); in dvmrpe_shutdown()
207 if_del(iface); in dvmrpe_shutdown()
239 struct iface *iface; in dvmrpe_dispatch_main() local
312 struct iface *iface; in dvmrpe_dispatch_rde() local
419 rr_list_send(&iface->rr_list, iface, in dvmrpe_dispatch_rde()
438 rr_list_send(&iface->rr_list, iface, in dvmrpe_dispatch_rde()
462 struct iface *iface; in dvmrpe_iface_ctl() local
476 struct iface *iface; in dvmrpe_iface_igmp_ctl() local
[all …]
H A Dprintconf.c33 void print_iface(struct iface *);
45 print_iface(struct iface *iface) in print_iface() argument
47 printf("interface %s {\n", iface->name); in print_iface()
49 if (iface->passive) in print_iface()
52 printf("\tmetric %d\n", iface->metric); in print_iface()
55 printf("\trobustness %d\n", iface->robustness); in print_iface()
59 iface->last_member_query_interval); in print_iface()
60 printf("\tigmp-version %d\n", iface->igmp_version); in print_iface()
68 struct iface *iface; in print_config() local
74 LIST_FOREACH(iface, &conf->iface_list, entry) { in print_config()
[all …]
/openbsd/usr.sbin/ospf6d/
H A Dinterface.c181 struct iface *iface; in if_find() local
193 struct iface *iface; in if_findname() local
205 struct iface *iface; in if_new() local
259 if_del(struct iface *iface) in if_del() argument
309 struct iface *iface = arg; in if_hello_timer() local
341 struct iface *iface = arg; in if_wait_timer() local
505 ((iface->self == dr && iface->self != iface->dr) || in if_act_elect()
506 (iface->self != dr && iface->self == iface->dr) || in if_act_elect()
507 (iface->self == bdr && iface->self != iface->bdr) || in if_act_elect()
508 (iface->self != bdr && iface->self == iface->bdr))) { in if_act_elect()
[all …]
H A Dlsack.c39 prepare_ls_ack(struct iface *iface) in prepare_ls_ack() argument
59 send_ls_ack(struct iface *iface, struct in6_addr addr, struct ibuf *buf) in send_ls_ack() argument
180 ls_ack_list_add(struct iface *iface, struct lsa_hdr *lsa) in ls_ack_list_add() argument
195 iface->ls_ack_cnt++; in ls_ack_list_add()
205 ls_ack_list_free(struct iface *iface, struct lsa_entry *le) in ls_ack_list_free() argument
215 ls_ack_list_clr(struct iface *iface) in ls_ack_list_clr() argument
228 ls_ack_list_empty(struct iface *iface) in ls_ack_list_empty() argument
238 struct iface *iface = arg; in ls_ack_tx_timer() local
297 start_ls_ack_tx_timer(struct iface *iface) in start_ls_ack_tx_timer() argument
309 start_ls_ack_tx_timer_now(struct iface *iface) in start_ls_ack_tx_timer_now() argument
[all …]
H A Dospfe.c74 struct iface *iface; in ospfe() local
199 struct iface *iface; in ospfe_shutdown() local
252 struct iface *iface, *ifp, *i; in ospfe_dispatch_main() local
444 struct iface *iface; in ospfe_dispatch_rde() local
737 struct iface *iface = NULL; in find_vlink() local
774 struct iface *iface; in orig_rtr_lsa() local
826 if (iface->dr == iface->self) { in orig_rtr_lsa()
982 orig_net_lsa(struct iface *iface) in orig_net_lsa() argument
1046 orig_link_lsa(struct iface *iface) in orig_link_lsa() argument
1162 struct iface *iface; in ospfe_iface_ctl() local
[all …]
H A Dhello.c36 send_hello(struct iface *iface) in send_hello() argument
51 if_type_name(iface->type), iface->name); in send_hello()
54 dst = iface->dst; in send_hello()
76 if (iface->dr) { in send_hello()
78 iface->self->dr.s_addr = iface->dr->id.s_addr; in send_hello()
81 if (iface->bdr) { in send_hello()
83 iface->self->bdr.s_addr = iface->bdr->id.s_addr; in send_hello()
113 recv_hello(struct iface *iface, struct in6_addr *src, u_int32_t rtr_id, in recv_hello() argument
123 iface->name); in recv_hello()
134 iface->name); in recv_hello()
[all …]
H A Dpacket.c47 gen_ospf_hdr(struct ibuf *buf, struct iface *iface, u_int8_t type) in gen_ospf_hdr() argument
64 upd_ospf_hdr(struct ibuf *buf, struct iface *iface) in upd_ospf_hdr() argument
82 send_packet(struct iface *iface, struct ibuf *buf, in send_packet() argument
108 iface->name); in send_packet()
128 struct iface *iface; in recv_packet() local
248 iface->name); in recv_packet()
254 const struct iface *iface, struct in6_addr *dst) in ospf_hdr_sanity_check() argument
295 if_state_name(iface->state), iface->name); in ospf_hdr_sanity_check()
303 struct iface *
307 struct iface *iface, *match = NULL; in find_iface() local
[all …]
H A Dospfe.h73 struct iface *iface; member
108 int send_hello(struct iface *);
124 void orig_net_lsa(struct iface *);
125 void orig_link_lsa(struct iface *);
132 void if_del(struct iface *);
135 int if_act_start(struct iface *);
136 int if_act_elect(struct iface *);
137 int if_act_reset(struct iface *);
143 int if_set_mcast(struct iface *);
155 void ls_ack_list_clr(struct iface *);
[all …]
/openbsd/usr.sbin/ospfd/
H A Dinterface.c162 struct iface *iface; in if_new() local
218 if_del(struct iface *iface) in if_del() argument
262 struct iface *iface = arg; in if_hello_timer() local
297 struct iface *iface = arg; in if_wait_timer() local
322 if_act_start(struct iface *iface) in if_act_start() argument
401 if_act_elect(struct iface *iface) in if_act_elect() argument
457 ((iface->self == dr && iface->self != iface->dr) || in if_act_elect()
458 (iface->self != dr && iface->self == iface->dr) || in if_act_elect()
459 (iface->self == bdr && iface->self != iface->bdr) || in if_act_elect()
460 (iface->self != bdr && iface->self == iface->bdr))) { in if_act_elect()
[all …]
H A Dlsack.c39 prepare_ls_ack(struct iface *iface) in prepare_ls_ack() argument
59 send_ls_ack(struct iface *iface, struct in_addr addr, struct ibuf *buf) in send_ls_ack() argument
184 ls_ack_list_add(struct iface *iface, struct lsa_hdr *lsa) in ls_ack_list_add() argument
199 iface->ls_ack_cnt++; in ls_ack_list_add()
207 ls_ack_list_free(struct iface *iface, struct lsa_entry *le) in ls_ack_list_free() argument
217 ls_ack_list_clr(struct iface *iface) in ls_ack_list_clr() argument
230 ls_ack_list_empty(struct iface *iface) in ls_ack_list_empty() argument
240 struct iface *iface = arg; in ls_ack_tx_timer() local
300 start_ls_ack_tx_timer(struct iface *iface) in start_ls_ack_tx_timer() argument
312 start_ls_ack_tx_timer_now(struct iface *iface) in start_ls_ack_tx_timer_now() argument
[all …]
H A Dospfe.c74 struct iface *iface; in ospfe() local
210 struct iface *iface; in ospfe_shutdown() local
269 struct iface *iface = NULL; in ospfe_dispatch_main() local
489 struct iface *iface; in ospfe_dispatch_rde() local
793 struct iface *iface = NULL; in find_vlink() local
830 struct iface *iface; in orig_rtr_lsa() local
921 if (iface->dr == iface->self) { in orig_rtr_lsa()
957 iface->addr.s_addr & iface->mask.s_addr; in orig_rtr_lsa()
1117 orig_net_lsa(struct iface *iface) in orig_net_lsa() argument
1201 struct iface *iface; in ospfe_iface_ctl() local
[all …]
H A Dpacket.c46 gen_ospf_hdr(struct ibuf *buf, struct iface *iface, u_int8_t type) in gen_ospf_hdr() argument
63 send_packet(struct iface *iface, struct ibuf *buf, struct sockaddr_in *dst) in send_packet() argument
122 struct iface *iface; in recv_packet() local
260 iface->name); in recv_packet()
282 u_int16_t len, const struct iface *iface) in ospf_hdr_sanity_check() argument
322 if_state_name(iface->state), iface->name); in ospf_hdr_sanity_check()
330 struct iface *
334 struct iface *iface = NULL; in find_iface() local
343 return (iface); in find_iface()
348 return (iface); in find_iface()
[all …]
H A Dhello.c38 send_hello(struct iface *iface) in send_hello() argument
48 switch (iface->type) { in send_hello()
56 if_type_name(iface->type), iface->name); in send_hello()
80 if (iface->dr) { in send_hello()
82 iface->self->dr.s_addr = iface->dr->addr.s_addr; in send_hello()
85 if (iface->bdr) { in send_hello()
87 iface->self->bdr.s_addr = iface->bdr->addr.s_addr; in send_hello()
127 iface->name); in recv_hello()
139 iface->name); in recv_hello()
146 iface->name); in recv_hello()
[all …]
H A Dprintconf.c35 void print_iface(struct iface *);
123 print_iface(struct iface *iface) in print_iface() argument
127 printf("\tinterface %s:%s {\n", iface->name, inet_ntoa(iface->addr)); in print_iface()
133 if (iface->dependon[0] != '\0') in print_iface()
135 if (iface->passive) in print_iface()
142 iface->fast_hello_interval); in print_iface()
145 iface->dead_interval); in print_iface()
147 iface->hello_interval); in print_iface()
156 switch (iface->auth_type) { in print_iface()
180 struct iface *iface; in print_config() local
[all …]
/openbsd/usr.sbin/ripd/
H A Dinterface.c73 if_init(struct ripd_conf *xconf, struct iface *iface) in if_init() argument
97 if_fsm(struct iface *iface, enum iface_event event) in if_fsm() argument
155 struct iface *
158 struct iface *iface; in if_find_index() local
171 if_act_start(struct iface *iface) in if_act_start() argument
212 if_act_reset(struct iface *iface) in if_act_reset() argument
296 if_set_mcast(struct iface *iface) in if_set_mcast() argument
388 struct iface *iface; in if_new() local
392 if ((iface = calloc(1, sizeof(*iface))) == NULL) in if_new()
458 if_del(struct iface *iface) in if_del() argument
[all …]
H A Dpacket.c60 send_packet(struct iface *iface, void *pkt, size_t len, struct sockaddr_in *dst) in send_packet() argument
73 iface->name); in send_packet()
94 struct iface *iface; in recv_packet() local
215 iface->name); in recv_packet()
231 struct iface *
234 struct iface *iface = NULL; in find_iface() local
241 if (iface->passive) in find_iface()
244 if ((iface->addr.s_addr & iface->mask.s_addr) == in find_iface()
246 return (iface); in find_iface()
248 if (iface->dst.s_addr && iface->dst.s_addr == src.s_addr) in find_iface()
[all …]
/openbsd/usr.sbin/ldpd/
H A Dinterface.c47 struct iface *iface; in if_new() local
71 iface->ipv4.iface = iface; in if_new()
78 iface->ipv6.iface = iface; in if_new()
87 if_exit(struct iface *iface) in if_exit() argument
107 struct iface *iface; in if_lookup() local
163 struct iface *iface; in if_addr_add() local
199 struct iface *iface; in if_addr_del() local
234 if_start(struct iface *iface, int af) in if_start() argument
268 if_reset(struct iface *iface, int af) in if_reset() argument
370 struct iface *iface; in if_update_all() local
[all …]
/openbsd/usr.sbin/eigrpd/
H A Dinterface.c63 struct iface *iface; in if_new() local
65 if ((iface = calloc(1, sizeof(*iface))) == NULL) in if_new()
97 if_del(struct iface *iface) in if_del() argument
115 struct iface *iface; in if_lookup() local
200 if_primary_addr(struct iface *iface) in if_primary_addr() argument
212 if_primary_addr_prefixlen(struct iface *iface) in if_primary_addr_prefixlen() argument
225 if_update(struct iface *iface, int af) in if_update() argument
281 struct iface *iface; in eigrp_if_new() local
298 ei->iface = iface; in eigrp_if_new()
612 if_set_ipv4_mcast(struct iface *iface) in if_set_ipv4_mcast() argument
[all …]
/openbsd/sbin/dhcpleased/
H A Dengine.c340 state_transition(iface, iface->state); in engine_dispatch_frontend()
636 if ((iface = calloc(1, sizeof(*iface))) == NULL) in engine_update_iface()
641 evtimer_set(&iface->timer, iface_timeout, iface); in engine_update_iface()
1310 iface->prev_routes_len = iface->routes_len; in parse_dhcp()
1311 memcpy(iface->prev_routes, iface->routes, in parse_dhcp()
1452 iface->timo.tv_sec = iface->renewal_time; in state_transition()
1460 iface->timo.tv_sec = (iface->rebinding_time - in state_transition()
1472 iface->timo.tv_sec = (iface->lease_time - in state_transition()
1491 iface->timo.tv_sec = iface->ipv6_only_time; in state_transition()
1508 evtimer_add(&iface->timer, &iface->timo); in state_transition()
[all …]
/openbsd/sbin/dhcp6leased/
H A Dengine.c273 struct dhcp6leased_iface *iface; in engine_dispatch_frontend()
320 iface = get_dhcp6leased_iface_by_id(if_index); in engine_dispatch_frontend()
321 if (iface != NULL) { in engine_dispatch_frontend()
322 switch (iface->state) { in engine_dispatch_frontend()
327 state_transition(iface, iface->state); in engine_dispatch_frontend()
333 state_transition(iface, IF_REBOOTING); in engine_dispatch_frontend()
351 iface = get_dhcp6leased_iface_by_id(imsg_dhcp.if_index); in engine_dispatch_frontend()
352 if (iface != NULL) in engine_dispatch_frontend()
353 parse_dhcp(iface, in engine_dispatch_frontend()
264 struct dhcp6leased_iface *iface; engine_dispatch_frontend() local
511 struct dhcp6leased_iface *iface; engine_dispatch_main() local
554 send_interface_info(struct dhcp6leased_iface * iface,pid_t pid) send_interface_info() argument
575 struct dhcp6leased_iface *iface; engine_showinfo_ctl() local
594 struct dhcp6leased_iface *iface; engine_update_iface() local
649 struct dhcp6leased_iface *iface; get_dhcp6leased_iface_by_id() local
661 struct dhcp6leased_iface *iface; remove_dhcp6leased_iface() local
675 parse_dhcp(struct dhcp6leased_iface * iface,struct imsg_dhcp * dhcp) parse_dhcp() argument
997 state_transition(struct dhcp6leased_iface * iface,enum if_state new_state) state_transition() argument
1128 struct dhcp6leased_iface *iface = (struct dhcp6leased_iface *)arg; iface_timeout() local
1181 request_dhcp_discover(struct dhcp6leased_iface * iface) request_dhcp_discover() argument
1199 request_dhcp_request(struct dhcp6leased_iface * iface) request_dhcp_request() argument
1255 log_lease(struct dhcp6leased_iface * iface,int deconfigure) log_lease() argument
1262 configure_interfaces(struct dhcp6leased_iface * iface) configure_interfaces() argument
1336 send_deconfigure_interface(struct dhcp6leased_iface * iface) send_deconfigure_interface() argument
1342 parse_lease(struct dhcp6leased_iface * iface,struct imsg_ifinfo * imsg_ifinfo) parse_lease() argument
[all...]
H A Dfrontend.c58 struct iface { struct
59 LIST_ENTRY(iface) entries;
80 struct iface *get_iface_by_id(uint32_t); argument
81 struct iface *get_iface_by_name(const char *);
84 void iface_data_from_imsg(struct iface*, struct imsg_req_dhcp *);
85 ssize_t build_packet(uint8_t, struct iface *, char *);
86 void send_packet(uint8_t, struct iface *);
89 LIST_HEAD(, iface) interfaces;
403 log_debug("changed iface: %s[%d]", if_name != in frontend_dispatch_main()
446 struct iface *ifac in frontend_dispatch_engine() local
541 struct iface *iface; update_iface() local
758 struct iface *iface; udp_receive() local
779 iface_data_from_imsg(struct iface * iface,struct imsg_req_dhcp * imsg) iface_data_from_imsg() argument
789 build_packet(uint8_t message_type,struct iface * iface,char * if_name) build_packet() argument
936 send_packet(uint8_t message_type,struct iface * iface) send_packet() argument
966 struct iface *iface; get_iface_by_id() local
989 struct iface *iface; remove_iface() local
1007 struct iface *iface; set_udpsock() local
[all...]

12345678910>>...17