Author: tjansen Date: Mon Nov 2 14:49:16 2009 New Revision: 1483 Log: Fixed pisasd's dynamic IPv4 assignment code. Commit 1447 broke the pisa_client_ipv4_inc function to get rid of a warning. ntohl uses uint32_t, not uint16_t, so half of the IPv4 address was discarded. Modified: trunk/pisasd/sdclients.c Modified: trunk/pisasd/sdclients.c ============================================================================== --- trunk/pisasd/sdclients.c Mon Nov 2 14:46:26 2009 (r1482) +++ trunk/pisasd/sdclients.c Mon Nov 2 14:49:16 2009 (r1483) @@ -36,7 +36,7 @@ */ static inline void pisa_client_ipv4_inc(struct in_addr *ipv4) { - uint16_t tmp = ntohl(ipv4->s_addr); + uint32_t tmp = ntohl(ipv4->s_addr); ipv4->s_addr = htonl(tmp + 1); }