diff --git a/src/client.cpp b/src/client.cpp index 7343397..0a191ae 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -107,12 +107,14 @@ string get_os_info(int fd) { socklen_t trwsize = sizeof(trw); int a = getsockopt(fd, IPPROTO_TCP, TCP_REPAIR_WINDOW, &trw, &trwsize); + string b = strerror(errno); + int ttl; socklen_t ttlsize = sizeof(ttl); getsockopt(fd, IPPROTO_IP, IP_TTL, &ttl, &ttlsize); return "win_size=" + to_string(trw.snd_wnd) + "/" + to_string(trw.rcv_wnd) + "/" + to_string(trw.max_window) + "/" + - to_string(trw.rcv_wup) + "/" + to_string(trw.snd_wl1) + "-" + to_string(a) + ", ttl=" + to_string(ttl); + to_string(trw.rcv_wup) + "/" + to_string(trw.snd_wl1) + "/" + to_string(a) + "/" + b + ", ttl=" + to_string(ttl); } string getETag(string filename) {