fr_arp_packet_t *arp;
/*
- * The packet timed out. Tell the network side that the packet is dead.
+ * Process layer NAK, never respond, or "Do not respond".
*/
- if (buffer_len == 1) {
- *buffer = true;
- return 1;
- }
-
- /*
- * "Do not respond"
- */
- if (!inst->active ||
+ if ((buffer_len == 1) || !inst->active ||
(request->reply->code == FR_ARP_CODE_DO_NOT_RESPOND) ||
(request->reply->code == 0) || (request->reply->code >= FR_ARP_MAX_PACKET_CODE)) {
*buffer = false;
RADCLIENT const *client;
/*
- * The packet timed out. Tell the network side that the packet is dead.
+ * process layer NAK, or "Do not respond". We also never
+ * send replies to a release.
*/
- if (buffer_len == 1) {
- *buffer = true;
- return 1;
- }
-
- /*
- * "Do not respond". We also never send replies to a release.
- */
- if ((request->reply->code == FR_MESSAGE_TYPE_VALUE_DO_NOT_RESPOND) ||
+ if ((buffer_len == 1) ||
+ (request->reply->code == FR_MESSAGE_TYPE_VALUE_DO_NOT_RESPOND) ||
(request->reply->code == 0) || (request->reply->code >= FR_DHCP_MAX) ||
(request->packet->code == FR_DHCP_RELEASE)) {
track->do_not_respond = true;
- *buffer = false;
return 1;
}
RADCLIENT const *client;
/*
- * The packet timed out. Tell the network side that the packet is dead.
+ * Process layer NAK, never respond, or "Do not respond".
*/
- if (buffer_len == 1) {
- *buffer = true;
- return 1;
- }
-
- /*
- * "Do not respond". We also never send replies to a release.
- */
- if ((request->reply->code == FR_DHCPV6_DO_NOT_RESPOND) ||
+ if ((buffer_len == 1) ||
+ (request->reply->code == FR_DHCPV6_DO_NOT_RESPOND) ||
(request->reply->code == 0) || (request->reply->code >= FR_DHCPV6_MAX_CODE)) {
track->do_not_respond = true;
- *buffer = false;
return 1;
}
RADCLIENT const *client;
/*
- * The packet timed out. Tell the network side that the packet is dead.
+ * Process layer NAK, or "Do not respond".
*/
- if (buffer_len == 1) {
- *buffer = true;
- return 1;
- }
-
- /*
- * "Do not respond"
- */
- if ((request->reply->code == FR_CODE_DO_NOT_RESPOND) ||
+ if ((buffer_len == 1) ||
+ (request->reply->code == FR_CODE_DO_NOT_RESPOND) ||
(request->reply->code == 0) || (request->reply->code >= FR_RADIUS_MAX_PACKET_CODE)) {
track->do_not_respond = true;
- *buffer = false;
return 1;
}
RADCLIENT const *client;
/*
- * The packet timed out. Tell the network side that the packet is dead.
+ * Process layer NAK, or "Do not respond".
*/
- if (buffer_len == 1) {
- *buffer = true;
+ if ((buffer_len == 1) ||
+ (request->reply->code == FR_PACKET_TYPE_VALUE_DO_NOT_RESPOND) ||
+ (request->reply->code == 0) || (request->reply->code >= FR_PACKET_TYPE_MAX)) {
+ track->do_not_respond = true;
return 1;
}
- /*
- * "Do not respond"
- */
- if (request->reply->code == FR_PACKET_TYPE_VALUE_DO_NOT_RESPOND) {
- *buffer = false;
- return 1;
- }
- fr_assert(request->reply->code != 0);
- fr_assert(request->reply->code < FR_PACKET_TYPE_MAX);
-
client = address->radclient;
fr_assert(client);
fr_dcursor_t cursor;
/*
- * The packet timed out. Tell the network side that the packet is dead.
+ * Process layer NAK, never respond, or "Do not respond".
*/
- if (buffer_len == 1) {
- *buffer = true;
- return 1;
- }
-
- /*
- * "Do not respond"
- */
- if ((request->reply->code == FR_CODE_DO_NOT_RESPOND) ||
+ if ((buffer_len == 1) ||
+ (request->reply->code == FR_CODE_DO_NOT_RESPOND) ||
(request->reply->code >= FR_VQP_MAX_CODE)) {
track->do_not_respond = true;
- *buffer = false;
return 1;
}