mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-02 15:25:48 +00:00
Add HAVE_SIN_LEN test
This commit is contained in:
@@ -289,7 +289,9 @@ void do_a_line (sock)
|
|||||||
/* inet_aton ("130.129.63.255", &to.sin_addr);*//* XXX bcst bug */
|
/* inet_aton ("130.129.63.255", &to.sin_addr);*//* XXX bcst bug */
|
||||||
|
|
||||||
to.sin_family = AF_INET;
|
to.sin_family = AF_INET;
|
||||||
|
#ifdef HAVE_SIN_LEN
|
||||||
to.sin_len = sizeof to;
|
to.sin_len = sizeof to;
|
||||||
|
#endif
|
||||||
memset (to.sin_zero, 0, sizeof to.sin_zero);
|
memset (to.sin_zero, 0, sizeof to.sin_zero);
|
||||||
|
|
||||||
note ("Sending dhcp request to %s, port %d",
|
note ("Sending dhcp request to %s, port %d",
|
||||||
|
@@ -289,7 +289,9 @@ void do_a_line (sock)
|
|||||||
/* inet_aton ("130.129.63.255", &to.sin_addr);*//* XXX bcst bug */
|
/* inet_aton ("130.129.63.255", &to.sin_addr);*//* XXX bcst bug */
|
||||||
|
|
||||||
to.sin_family = AF_INET;
|
to.sin_family = AF_INET;
|
||||||
|
#ifdef HAVE_SIN_LEN
|
||||||
to.sin_len = sizeof to;
|
to.sin_len = sizeof to;
|
||||||
|
#endif
|
||||||
memset (to.sin_zero, 0, sizeof to.sin_zero);
|
memset (to.sin_zero, 0, sizeof to.sin_zero);
|
||||||
|
|
||||||
note ("Sending dhcp request to %s, port %d",
|
note ("Sending dhcp request to %s, port %d",
|
||||||
|
Reference in New Issue
Block a user