Lines Matching refs:if_index

64 …k, int level, struct sockaddr *group, socklen_t group_len, unsigned int if_index, int join TSRMLS_…
66 … group_len, struct sockaddr *source, socklen_t source_len, unsigned int if_index, enum source_op s…
81 unsigned int if_index TSRMLS_DC) in php_mcast_join()
83 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 1 TSRMLS_CC); in php_mcast_join()
91 unsigned int if_index TSRMLS_DC) in php_mcast_leave()
93 return _php_mcast_join_leave(sock, level, group, group_len, if_index, 0 TSRMLS_CC); in php_mcast_leave()
104 unsigned int if_index TSRMLS_DC) in php_mcast_join_source()
106 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, JOIN_SOUR… in php_mcast_join_source()
116 unsigned int if_index TSRMLS_DC) in php_mcast_leave_source()
118 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, LEAVE_SOU… in php_mcast_leave_source()
128 unsigned int if_index TSRMLS_DC) in php_mcast_block_source()
130 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, BLOCK_SOU… in php_mcast_block_source()
140 unsigned int if_index TSRMLS_DC) in php_mcast_unblock_source()
142 …return _php_mcast_source_op(sock, level, group, group_len, source, source_len, if_index, UNBLOCK_S… in php_mcast_unblock_source()
152 unsigned int if_index, in _php_mcast_join_leave() argument
160 greq.gr_interface = if_index; in _php_mcast_join_leave()
172 if (if_index != 0) { in _php_mcast_join_leave()
173 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) == in _php_mcast_join_leave()
192 mreq.ipv6mr_interface = if_index; in _php_mcast_join_leave()
216 unsigned int if_index, in _php_mcast_source_op() argument
226 gsreq.gsr_interface = if_index; in _php_mcast_source_op()
241 if (if_index != 0) { in _php_mcast_source_op()
242 if (php_if_index_to_addr4(if_index, sock, &addr TSRMLS_CC) == in _php_mcast_source_op()
326 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
335 if (if_index == 0) { in php_if_index_to_addr4()
356 if (r.dwIndex == if_index) { in php_if_index_to_addr4()
362 "No interface with index %u was found", if_index); in php_if_index_to_addr4()
366 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()
376 *if_index = 0; in php_add4_to_if_index()
397 *if_index = r.dwIndex; in php_add4_to_if_index()
413 int php_if_index_to_addr4(unsigned if_index, php_socket *php_sock, struct in_addr *out_addr TSRMLS_… argument
417 if (if_index == 0) {
427 if_req.ifr_ifindex = if_index;
430 if (if_indextoname(if_index, if_req.ifr_name) == NULL) {
435 "Failed obtaining address for interface %u: error %d", if_index, errno);
441 "Failed obtaining address for interface %u: error %d", if_index, errno);
450 int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *if_index TSRMLS_DC)
460 *if_index = 0;
521 *if_index = cur_req->ifr_ifindex;
523 *if_index = index_tmp;