Files
MaxScale/maxscale-system-test/get_my_ip.h
Timofey Turenko cd732ac14f MXS-2243 System tests brings VMs by themselves (#193)
maxscale-system-test changed in order to control test environment by itself.
Every test checks which machines are running, compare with list of needed machines
and start new VMs is they are missing in the running machines list.
Tests are executiong MDBCI commands, MDBCI executable should be in the PATH
2019-04-02 13:27:34 +03:00

11 lines
381 B
C

#pragma once
/**
* @brief get_my_ip Get IP address of machine where this code is executed as it is visible from remote machine
* Connects to DNS port 53 of remote machine and gets own IP from socket info
* @param remote_ip IP of remote machine
* @param my_ip Pointer to result (own IP string)
* @return 0 in case of success
*/
int get_my_ip(char * remote_ip, char *my_ip );