mirror of
https://github.com/openbsd/src.git
synced 2025-01-03 06:45:37 -08:00
Zap stray whitespace.
This commit is contained in:
parent
7c3ab69d99
commit
d10ef3191a
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: dhcp.c,v 1.46 2016/08/05 14:02:23 krw Exp $ */
|
||||
/* $OpenBSD: dhcp.c,v 1.47 2016/10/04 22:47:51 krw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996, 1997, 1998, 1999
|
||||
@ -343,15 +343,15 @@ dhcprequest(struct packet *packet)
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Do not ACK a REQUEST intended for another server.
|
||||
*/
|
||||
*/
|
||||
if (packet->options[DHO_DHCP_SERVER_IDENTIFIER].len == 4) {
|
||||
if (memcmp(packet->options[DHO_DHCP_SERVER_IDENTIFIER].data,
|
||||
&packet->interface->primary_address, 4))
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* If we own the lease that the client is asking for,
|
||||
* and it's already been assigned to the client, ack it.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: options.c,v 1.31 2016/08/05 14:02:23 krw Exp $ */
|
||||
/* $OpenBSD: options.c,v 1.32 2016/10/04 22:47:51 krw Exp $ */
|
||||
|
||||
/* DHCP options parsing and reassembly. */
|
||||
|
||||
@ -248,16 +248,16 @@ create_priority_list(unsigned char *priority_list, unsigned char *prl,
|
||||
for(i = 0; i < prl_len; i++) {
|
||||
if (stored_list[prl[i]])
|
||||
continue;
|
||||
priority_list[priority_len++] = prl[i];
|
||||
priority_list[priority_len++] = prl[i];
|
||||
stored_list[prl[i]] = 1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Default priority list. */
|
||||
prl = dhcp_option_default_priority_list;
|
||||
for(i = 0; i < 256; i++) {
|
||||
if (stored_list[prl[i]])
|
||||
continue;
|
||||
priority_list[priority_len++] = prl[i];
|
||||
priority_list[priority_len++] = prl[i];
|
||||
stored_list[prl[i]] = 1;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: sync.c,v 1.17 2016/02/06 23:50:10 krw Exp $ */
|
||||
/* $OpenBSD: sync.c,v 1.18 2016/10/04 22:47:51 krw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Bob Beck <beck@openbsd.org>
|
||||
@ -355,7 +355,7 @@ sync_send(struct iovec *iov, int iovlen)
|
||||
{
|
||||
struct sync_host *shost;
|
||||
struct msghdr msg;
|
||||
|
||||
|
||||
if (syncfd == -1)
|
||||
return;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: sync.h,v 1.4 2013/04/13 18:08:47 krw Exp $ */
|
||||
/* $OpenBSD: sync.h,v 1.5 2016/10/04 22:47:51 krw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008, Bob Beck <beck@openbsd.org>
|
||||
@ -24,11 +24,11 @@
|
||||
* dhcpd(8) synchronisation protocol.
|
||||
*
|
||||
* This protocol has been designed for realtime synchronisation between
|
||||
* multiple machines running dhcpd(8), running the same config.
|
||||
* multiple machines running dhcpd(8), running the same config.
|
||||
* It is a simple Type-Length-Value based protocol, it allows easy
|
||||
* extension with future subtypes and bulk transfers by sending multiple
|
||||
* entries at once. The unencrypted messages will be authenticated using
|
||||
* HMAC-SHA1.
|
||||
* HMAC-SHA1.
|
||||
*
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user