Lines Matching refs:if_index

50 …et *sock, int level, struct sockaddr *group, socklen_t group_len, unsigned int if_index, int join);
52 … group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index, enum source_op s…
108 php_socket *sock, unsigned int *if_index) in php_get_if_index_from_array() argument
113 *if_index = 0; /* default: 0 */ in php_get_if_index_from_array()
117 return php_get_if_index_from_zval(val, if_index); in php_get_if_index_from_array()
142 unsigned int if_index; in php_do_mcast_opt() local
170 &if_index) == FAILURE) { in php_do_mcast_opt()
175 glen, if_index); in php_do_mcast_opt()
210 &if_index) == FAILURE) { in php_do_mcast_opt()
215 glen, (struct sockaddr*)&source, slen, if_index); in php_do_mcast_opt()
240 unsigned int if_index; in php_do_setsockopt_ip_mcast() local
263 if (php_get_if_index_from_zval(arg4, &if_index) == FAILURE) { in php_do_setsockopt_ip_mcast()
267 if (php_if_index_to_addr4(if_index, php_sock, &if_addr) == FAILURE) { in php_do_setsockopt_ip_mcast()
309 unsigned int if_index; in php_do_setsockopt_ipv6_mcast() local
331 if (php_get_if_index_from_zval(arg4, &if_index) == FAILURE) { in php_do_setsockopt_ipv6_mcast()
335 opt_ptr = &if_index; in php_do_setsockopt_ipv6_mcast()
336 optlen = sizeof(if_index); in php_do_setsockopt_ipv6_mcast()
373 unsigned int if_index) in php_mcast_join() argument
375 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 1); in php_mcast_join()
383 unsigned int if_index) in php_mcast_leave() argument
385 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 0); in php_mcast_leave()
396 unsigned int if_index) in php_mcast_join_source() argument
398 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, JOIN_SOUR… in php_mcast_join_source()
408 unsigned int if_index) in php_mcast_leave_source() argument
410 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, LEAVE_SOU… in php_mcast_leave_source()
420 unsigned int if_index) in php_mcast_block_source() argument
422 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, BLOCK_SOU… in php_mcast_block_source()
432 unsigned int if_index) in php_mcast_unblock_source() argument
434 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, UNBLOCK_S… in php_mcast_unblock_source()
444 unsigned int if_index, in _php_mcast_join_leave() argument
452 greq.gr_interface = if_index; in _php_mcast_join_leave()
465 if (if_index != 0) { in _php_mcast_join_leave()
466 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_join_leave()
486 mreq.ipv6mr_interface = if_index; in _php_mcast_join_leave()
509 unsigned int if_index, in _php_mcast_source_op() argument
519 gsreq.gsr_interface = if_index; in _php_mcast_source_op()
534 if (if_index != 0) { in _php_mcast_source_op()
535 if (php_if_index_to_addr4(if_index, sock, &addr) == in _php_mcast_source_op()
619 zend_result php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr) in php_if_index_to_addr4() argument
628 if (if_index == 0) { in php_if_index_to_addr4()
650 if (r.dwIndex == if_index) { in php_if_index_to_addr4()
658 "No interface with index %u was found", if_index); in php_if_index_to_addr4()
662 zend_result php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index) in php_add4_to_if_index() argument
672 *if_index = 0; in php_add4_to_if_index()
694 *if_index = r.dwIndex; in php_add4_to_if_index()
712 zend_result php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr) argument
716 if (if_index == 0) {
726 if_req.ifr_ifindex = if_index;
729 if (if_indextoname(if_index, if_req.ifr_name) == NULL) {
734 "Failed obtaining address for interface %u: error %d", if_index, errno);
740 "Failed obtaining address for interface %u: error %d", if_index, errno);
749 zend_result php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index) argument
759 *if_index = 0;
819 *if_index = cur_req.ifr_ifindex;
821 *if_index = index_tmp;