mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-02-17 17:51:22 +01:00
DHCPv4: fix MaxAddress param value
This commit is contained in:
parent
c6602debdd
commit
608bb009c9
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ int ipcalc(char *ip_str, char *mask_str, char *start_str, char *end_str, char *i
|
|||
|
||||
if (end_str) {
|
||||
end = atoi(end_str);
|
||||
upe.s_addr = htonl(ntohl(ups.s_addr) + end);
|
||||
upe.s_addr = htonl(ntohl(ups.s_addr) + end - 1);
|
||||
strcpy(ipend_str, inet_ntoa(upe));
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue