rendered paste bodydprintf(idx, "s us %lu %d %lu\n", iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()), dcc[i].port, dcc[i].u.xfer->length);getmyip {.. if (myip[0]) { if ((myip[strlen(myip) - 1] >= '0') && (myip[strlen(myip) - 1] <= '9')) return (IP) inet_addr(myip); } /* Also could be pre-defined */ if (hostname[0]) hp = gethostbyname(hostname); else { gethostname(s, 120); hp = gethostbyname(s); } if (hp == NULL) fatal("Hostname self-lookup failed. Please set 'my-ip' in the config " "file.", 0); in = (struct in_addr *) (hp->h_addr_list[0]); ip = (IP) (in->s_addr); return ip;..