Lines Matching refs:if_index

54 …k, int level, struct sockaddr *group, socklen_t group_len, unsigned int if_index, int join TSRMLS_…
56 … group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index, enum source_op s…
115 php_socket *sock, unsigned int *if_index TSRMLS_DC) in php_get_if_index_from_array()
120 *if_index = 0; /* default: 0 */ in php_get_if_index_from_array()
124 return php_get_if_index_from_zval(*val, if_index TSRMLS_CC); in php_get_if_index_from_array()
151 unsigned int if_index; in php_do_mcast_opt() local
179 &if_index TSRMLS_CC) == FAILURE) { in php_do_mcast_opt()
184 glen, if_index TSRMLS_CC); in php_do_mcast_opt()
219 &if_index TSRMLS_CC) == FAILURE) { in php_do_mcast_opt()
224 glen, (struct sockaddr*)&source, slen, if_index TSRMLS_CC); in php_do_mcast_opt()
249 unsigned int if_index; in php_do_setsockopt_ip_mcast() local
272 if (php_get_if_index_from_zval(*arg4, &if_index TSRMLS_CC) == FAILURE) { in php_do_setsockopt_ip_mcast()
276 if (php_if_index_to_addr4(if_index, php_sock, &if_addr TSRMLS_CC) == FAILURE) { in php_do_setsockopt_ip_mcast()
318 unsigned int if_index; in php_do_setsockopt_ipv6_mcast() local
340 if (php_get_if_index_from_zval(*arg4, &if_index TSRMLS_CC) == FAILURE) { in php_do_setsockopt_ipv6_mcast()
344 opt_ptr = &if_index; in php_do_setsockopt_ipv6_mcast()
345 optlen = sizeof(if_index); in php_do_setsockopt_ipv6_mcast()
382 unsigned int if_index TSRMLS_DC) in php_mcast_join()
384 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 1 TSRMLS_CC); in php_mcast_join()
392 unsigned int if_index TSRMLS_DC) in php_mcast_leave()
394 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 0 TSRMLS_CC); in php_mcast_leave()
405 unsigned int if_index TSRMLS_DC) in php_mcast_join_source()
407 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, JOIN_SOUR… in php_mcast_join_source()
417 unsigned int if_index TSRMLS_DC) in php_mcast_leave_source()
419 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, LEAVE_SOU… in php_mcast_leave_source()
429 unsigned int if_index TSRMLS_DC) in php_mcast_block_source()
431 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, BLOCK_SOU… in php_mcast_block_source()
441 unsigned int if_index TSRMLS_DC) in php_mcast_unblock_source()
443 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, UNBLOCK_S… in php_mcast_unblock_source()
453 unsigned int if_index, in _php_mcast_join_leave() argument
461 greq.gr_interface = if_index; in _php_mcast_join_leave()
473 if (if_index != 0) { in _php_mcast_join_leave()
474 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) == in _php_mcast_join_leave()
493 mreq.ipv6mr_interface = if_index; in _php_mcast_join_leave()
517 unsigned int if_index, in _php_mcast_source_op() argument
527 gsreq.gsr_interface = if_index; in _php_mcast_source_op()
542 if (if_index != 0) { in _php_mcast_source_op()
543 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) == in _php_mcast_source_op()
627 int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr TSRMLS_… in php_if_index_to_addr4() argument
636 if (if_index == 0) { in php_if_index_to_addr4()
657 if (r.dwIndex == if_index) { in php_if_index_to_addr4()
663 "No interface with index %u was found", if_index); in php_if_index_to_addr4()
667 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC) in php_add4_to_if_index()
677 *if_index = 0; in php_add4_to_if_index()
698 *if_index = r.dwIndex; in php_add4_to_if_index()
714 int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr TSRMLS_… argument
718 if (if_index == 0) {
728 if_req.ifr_ifindex = if_index;
731 if (if_indextoname(if_index, if_req.ifr_name) == NULL) {
736 "Failed obtaining address for interface %u: error %d", if_index, errno);
742 "Failed obtaining address for interface %u: error %d", if_index, errno);
751 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC)
761 *if_index = 0;
822 *if_index = cur_req->ifr_ifindex;
824 *if_index = index_tmp;