Lines Matching refs:if_index

54 …et *sock, int level, struct sockaddr *group, socklen_t group_len, unsigned int if_index, int join);
56 … group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index, enum source_op s…
117 php_socket *sock, unsigned int *if_index) in php_get_if_index_from_array() argument
122 *if_index = 0; /* default: 0 */ in php_get_if_index_from_array()
126 return php_get_if_index_from_zval(val, if_index); in php_get_if_index_from_array()
153 unsigned int if_index; in php_do_mcast_opt() local
181 &if_index) == FAILURE) { in php_do_mcast_opt()
186 glen, if_index); in php_do_mcast_opt()
221 &if_index) == FAILURE) { in php_do_mcast_opt()
226 glen, (struct sockaddr*)&source, slen, if_index); in php_do_mcast_opt()
251 unsigned int if_index; in php_do_setsockopt_ip_mcast() local
274 if (php_get_if_index_from_zval(arg4, &if_index) == FAILURE) { in php_do_setsockopt_ip_mcast()
278 if (php_if_index_to_addr4(if_index, php_sock, &if_addr) == FAILURE) { in php_do_setsockopt_ip_mcast()
321 unsigned int if_index; in php_do_setsockopt_ipv6_mcast() local
343 if (php_get_if_index_from_zval(arg4, &if_index) == FAILURE) { in php_do_setsockopt_ipv6_mcast()
347 opt_ptr = &if_index; in php_do_setsockopt_ipv6_mcast()
348 optlen = sizeof(if_index); in php_do_setsockopt_ipv6_mcast()
386 unsigned int if_index) in php_mcast_join() argument
388 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 1); in php_mcast_join()
396 unsigned int if_index) in php_mcast_leave() argument
398 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 0); in php_mcast_leave()
409 unsigned int if_index) in php_mcast_join_source() argument
411 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, JOIN_SOUR… in php_mcast_join_source()
421 unsigned int if_index) in php_mcast_leave_source() argument
423 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, LEAVE_SOU… in php_mcast_leave_source()
433 unsigned int if_index) in php_mcast_block_source() argument
435 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, BLOCK_SOU… in php_mcast_block_source()
445 unsigned int if_index) in php_mcast_unblock_source() argument
447 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, UNBLOCK_S… in php_mcast_unblock_source()
457 unsigned int if_index, in _php_mcast_join_leave() argument
465 greq.gr_interface = if_index; in _php_mcast_join_leave()
477 if (if_index != 0) { in _php_mcast_join_leave()
478 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_join_leave()
497 mreq.ipv6mr_interface = if_index; in _php_mcast_join_leave()
521 unsigned int if_index, in _php_mcast_source_op() argument
531 gsreq.gsr_interface = if_index; in _php_mcast_source_op()
546 if (if_index != 0) { in _php_mcast_source_op()
547 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_source_op()
631 int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr) in php_if_index_to_addr4() argument
640 if (if_index == 0) { in php_if_index_to_addr4()
661 if (r.dwIndex == if_index) { in php_if_index_to_addr4()
667 "No interface with index %u was found", if_index); in php_if_index_to_addr4()
671 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index) in php_add4_to_if_index() argument
681 *if_index = 0; in php_add4_to_if_index()
702 *if_index = r.dwIndex; in php_add4_to_if_index()
718 int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr) argument
722 if (if_index == 0) {
732 if_req.ifr_ifindex = if_index;
735 if (if_indextoname(if_index, if_req.ifr_name) == NULL) {
740 "Failed obtaining address for interface %u: error %d", if_index, errno);
746 "Failed obtaining address for interface %u: error %d", if_index, errno);
755 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index) argument
765 *if_index = 0;
826 *if_index = cur_req->ifr_ifindex;
828 *if_index = index_tmp;