mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 21:38:10 +00:00
[master]
[rt33032] Move declaration of fudge so it's only declared if we will use it.
This commit is contained in:
parent
a24b9f23d0
commit
cc17cbc398
4
RELNOTES
4
RELNOTES
@ -66,6 +66,10 @@ work on other platforms. Please report any problems and suggested fixes to
|
||||
- Use newer auto* tool packages and turn on RFC_3542 support on Mac OS.
|
||||
[ISC-Bugs #26303]
|
||||
|
||||
- Remove a variable when it isn't being used due to #ifdefs to avoid
|
||||
a compiler warning on Solaris using GCC.
|
||||
[ISC-Bugs #33032]
|
||||
|
||||
Changes since 4.2.4
|
||||
|
||||
- Correct code to calculate timing values in client to compare
|
||||
|
@ -526,6 +526,7 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto)
|
||||
{
|
||||
#ifdef USE_DLPI_RAW
|
||||
double hh [32];
|
||||
int fudge;
|
||||
#endif
|
||||
double ih [1536 / sizeof (double)];
|
||||
unsigned char *dbuf = (unsigned char *)ih;
|
||||
@ -533,7 +534,6 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto)
|
||||
unsigned char dstaddr [DLPI_MAXDLADDR];
|
||||
unsigned addrlen;
|
||||
int result;
|
||||
int fudge;
|
||||
|
||||
if (!strcmp (interface -> name, "fallback"))
|
||||
return send_fallback (interface, packet, raw,
|
||||
@ -552,8 +552,6 @@ ssize_t send_packet (interface, packet, raw, len, from, to, hto)
|
||||
fudge = dbuflen % 4; /* IP header must be word-aligned. */
|
||||
memcpy (dbuf + fudge, (unsigned char *)hh, dbuflen);
|
||||
dbuflen += fudge;
|
||||
#else
|
||||
fudge = 0;
|
||||
#endif
|
||||
assemble_udp_ip_header (interface, dbuf, &dbuflen, from.s_addr,
|
||||
to -> sin_addr.s_addr, to -> sin_port,
|
||||
|
Loading…
x
Reference in New Issue
Block a user