1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

Replace call to obsolete inet_addr routine with inet_aton so we can specify

netmasks and broadcast addresses of 255.255.255.255.
This commit is contained in:
Paul Traina 1995-04-26 16:52:40 +00:00
parent 4b1e0d1665
commit ef6304d8c6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=8089

View File

@ -750,8 +750,8 @@ in_getaddr(s, which)
if (which != MASK)
sin->sin_family = AF_INET;
if ((val = inet_addr(s)) != -1)
sin->sin_addr.s_addr = val;
if (inet_aton(s, &sin->sin_addr))
;
else if (hp = gethostbyname(s))
bcopy(hp->h_addr, (char *)&sin->sin_addr, hp->h_length);
else if (np = getnetbyname(s))