Removed submodules
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
*.swp
|
||||
*.swo
|
||||
|
||||
# Ignore all compiled files regardless of location
|
||||
build/*.o
|
||||
tests/public.o
|
||||
tests/testsuite.o
|
||||
|
||||
# Ignore executables for this project
|
||||
tests/testsuite
|
||||
dhcps
|
||||
|
||||
# But don't ignore prebuilt test versions
|
||||
!tests/client
|
||||
!tests/threads
|
||||
|
||||
# Ignore test outputs
|
||||
tests/ckstyle
|
||||
tests/itests.txt
|
||||
tests/outputs
|
||||
tests/style.txt
|
||||
tests/valgrind
|
||||
tests/utests.txt
|
||||
|
||||
# Ignore all vscode stuff and NFS files
|
||||
**/.nfs*
|
||||
**/.vscode
|
||||
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# Simple Makefile
|
||||
# Mike Lam, James Madison University, August 2016
|
||||
#
|
||||
# This makefile builds a simple application that contains a main module
|
||||
# (specified by the EXE variable) and a predefined list of additional modules
|
||||
# (specified by the MODS variable). If there are any external library
|
||||
# dependencies (e.g., the math library, "-lm"), list them in the LIBS variable.
|
||||
# If there are any precompiled object files, list them in the OBJS variable.
|
||||
#
|
||||
# By default, this makefile will build the project with debugging symbols and
|
||||
# without optimization. To change this, edit or remove the "-g" and "-O0"
|
||||
# options in CFLAGS and LDFLAGS accordingly.
|
||||
#
|
||||
# By default, this makefile build the application using the GNU C compiler,
|
||||
# adhering to the C99 standard with all warnings enabled.
|
||||
|
||||
|
||||
# application-specific settings and run target
|
||||
|
||||
EXE=dhcps
|
||||
MODS=dhcp.o format.o main.o server.o
|
||||
OBJS=port_utils.o
|
||||
LIBS=-lm
|
||||
|
||||
default: build $(EXE)
|
||||
|
||||
build:
|
||||
mkdir build
|
||||
|
||||
test: build $(EXE)
|
||||
make -C tests test
|
||||
|
||||
style: $(EXE)
|
||||
make -C tests style
|
||||
|
||||
# compiler/linker settings
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -O0 -Wall --std=gnu99 -pedantic
|
||||
LDFLAGS=-g -O0 -pthread
|
||||
|
||||
|
||||
# build targets
|
||||
|
||||
BUILD=$(addprefix build/, $(MODS))
|
||||
|
||||
$(EXE): build/main.o $(BUILD) $(OBJS)
|
||||
$(CC) $(LDFLAGS) -o $(EXE) $^ $(LIBS)
|
||||
|
||||
build/%.o: src/%.c
|
||||
$(CC) -c $(CFLAGS) -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -rf $(EXE) build
|
||||
make -C tests clean
|
||||
|
||||
.PHONY: default clean
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,193 @@
|
||||
#include "dhcp.h"
|
||||
#include <arpa/inet.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
void
|
||||
dump_packet (uint8_t *packet, size_t length)
|
||||
{
|
||||
for (size_t i = 0; i < length; i++)
|
||||
{
|
||||
printf ("%02x ", packet[i]);
|
||||
if ((i + 1) % 16 == 0)
|
||||
{
|
||||
printf ("\n");
|
||||
}
|
||||
}
|
||||
if (length % 16 != 0)
|
||||
{
|
||||
printf ("\n");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
free_options (options_t *options)
|
||||
{
|
||||
if (options->request)
|
||||
{
|
||||
free (options->request);
|
||||
options->request = NULL;
|
||||
}
|
||||
if (options->lease)
|
||||
{
|
||||
free (options->lease);
|
||||
options->lease = NULL;
|
||||
}
|
||||
if (options->type)
|
||||
{
|
||||
free (options->type);
|
||||
options->type = NULL;
|
||||
}
|
||||
if (options->sid)
|
||||
{
|
||||
free (options->sid);
|
||||
options->sid = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
get_options (uint8_t *packet, uint8_t *end, options_t *options)
|
||||
{
|
||||
memset (options, 0, sizeof (options_t));
|
||||
|
||||
const size_t DHCP_FIXED_SIZE = sizeof (msg_t);
|
||||
uint8_t *ptr = packet + DHCP_FIXED_SIZE;
|
||||
|
||||
if (ptr + 4 > end)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t cookie;
|
||||
memcpy (&cookie, ptr, 4);
|
||||
if (ntohl (cookie) != MAGIC_COOKIE)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
ptr += 4;
|
||||
|
||||
// Parse options
|
||||
while (ptr < end)
|
||||
{
|
||||
uint8_t code = *ptr++;
|
||||
|
||||
if (code == DHCP_opt_end)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
if (ptr >= end)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
uint8_t len = *ptr++;
|
||||
|
||||
if (ptr + len > end)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
switch (code)
|
||||
{
|
||||
case DHCP_opt_msgtype:
|
||||
if (len == 1)
|
||||
{
|
||||
options->type = malloc (sizeof (uint8_t));
|
||||
*options->type = *ptr;
|
||||
}
|
||||
break;
|
||||
case DHCP_opt_reqip:
|
||||
if (len == 4)
|
||||
{
|
||||
options->request = malloc (sizeof (struct in_addr));
|
||||
memcpy (options->request, ptr, 4);
|
||||
}
|
||||
break;
|
||||
case DHCP_opt_lease:
|
||||
if (len == 4)
|
||||
{
|
||||
options->lease = malloc (sizeof (uint32_t));
|
||||
memcpy (options->lease, ptr, 4);
|
||||
}
|
||||
break;
|
||||
case DHCP_opt_sid:
|
||||
if (len == 4)
|
||||
{
|
||||
options->sid = malloc (sizeof (struct in_addr));
|
||||
memcpy (options->sid, ptr, 4);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
ptr += len;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
uint8_t *
|
||||
append_cookie (uint8_t *packet, size_t *packet_size)
|
||||
{
|
||||
size_t new_size = *packet_size + 4;
|
||||
uint8_t *new_packet = realloc (packet, new_size);
|
||||
|
||||
if (!new_packet)
|
||||
{
|
||||
return packet;
|
||||
}
|
||||
|
||||
uint32_t cookie = htonl (MAGIC_COOKIE);
|
||||
memcpy (new_packet + *packet_size, &cookie, 4);
|
||||
|
||||
*packet_size = new_size;
|
||||
return new_packet;
|
||||
}
|
||||
|
||||
uint8_t *
|
||||
append_option (uint8_t *packet, size_t *packet_size, uint8_t option,
|
||||
uint8_t option_size, uint8_t *option_value)
|
||||
{
|
||||
size_t new_size;
|
||||
|
||||
if (option == DHCP_opt_end)
|
||||
{
|
||||
new_size = *packet_size + 1;
|
||||
uint8_t *new_packet = realloc (packet, new_size);
|
||||
|
||||
if (!new_packet)
|
||||
{
|
||||
return packet;
|
||||
}
|
||||
|
||||
// Add the end option code
|
||||
new_packet[*packet_size] = DHCP_opt_end;
|
||||
|
||||
*packet_size = new_size;
|
||||
return new_packet;
|
||||
}
|
||||
|
||||
new_size = *packet_size + 2 + option_size;
|
||||
uint8_t *new_packet = realloc (packet, new_size);
|
||||
|
||||
if (!new_packet)
|
||||
{
|
||||
return packet;
|
||||
}
|
||||
|
||||
// Add option code
|
||||
new_packet[*packet_size] = option;
|
||||
|
||||
// Add option length
|
||||
new_packet[*packet_size + 1] = option_size;
|
||||
|
||||
// Add option value
|
||||
if (option_size > 0 && option_value)
|
||||
{
|
||||
memcpy (new_packet + *packet_size + 2, option_value, option_size);
|
||||
}
|
||||
|
||||
*packet_size = new_size;
|
||||
return new_packet;
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
#ifndef __cs361_dhcp_h__
|
||||
#define __cs361_dhcp_h__
|
||||
|
||||
#include <netdb.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
// For reference, see:
|
||||
// https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml
|
||||
// https://www.iana.org/assignments/arp-parameters/arp-parameters.xhtml
|
||||
|
||||
// Rules for MUST and MUST NOT options, as well as values of BOOTP fields:
|
||||
// https://www.rfc-editor.org/rfc/rfc2131
|
||||
|
||||
// Option interpretations:
|
||||
// https://www.rfc-editor.org/rfc/rfc2132
|
||||
|
||||
#define MAX_DHCP_LENGTH 576
|
||||
|
||||
// Possible BOOTP message op codes:
|
||||
#define BOOTREQUEST 1
|
||||
#define BOOTREPLY 2
|
||||
|
||||
// Hardware types (htype) per ARP specifications:
|
||||
#define ETH 1
|
||||
#define IEEE802 6
|
||||
#define ARCNET 7
|
||||
#define FRAME_RELAY 15
|
||||
#define FIBRE 18
|
||||
|
||||
// Hardware address lengths (hlen) per ARP specifications:
|
||||
#define ETH_LEN 6
|
||||
#define IEEE802_LEN 6
|
||||
#define ARCNET_LEN 1
|
||||
#define FRAME_LEN 2
|
||||
#define FIBRE_LEN 3
|
||||
|
||||
// For DHCP messages, options must begin with this value:
|
||||
#define MAGIC_COOKIE 0x63825363
|
||||
|
||||
// DHCP Message types
|
||||
// If client detects offered address in use, MUST send DHCP Decline
|
||||
// If server detects requested address in use, SHOULD send DHCP NAK
|
||||
// Client can release its own IP address with DHCP Release
|
||||
#define DHCPDISCOVER 1
|
||||
#define DHCPOFFER 2
|
||||
#define DHCPREQUEST 3
|
||||
#define DHCPDECLINE 4
|
||||
#define DHCPACK 5
|
||||
#define DHCPNAK 6
|
||||
#define DHCPRELEASE 7
|
||||
|
||||
// DHCP Option types
|
||||
// All messages will use only these message types
|
||||
#define DHCP_opt_reqip 50
|
||||
#define DHCP_opt_lease 51
|
||||
#define DHCP_opt_msgtype 53
|
||||
#define DHCP_opt_sid 54
|
||||
#define DHCP_opt_end 255
|
||||
|
||||
// BOOTP message type struct. This has an exact size. Add other fields to
|
||||
// match the structure as defined in RFC 1542 and RFC 2131. This struct
|
||||
// should NOT include the BOOTP vend field or the DHCP options field.
|
||||
// (DHCP options replaced BOOTP vend, but does not have a fixed size and
|
||||
// cannot be declared in a fixed-size struct.)
|
||||
typedef struct
|
||||
{
|
||||
uint8_t op;
|
||||
uint8_t htype;
|
||||
uint8_t hlen;
|
||||
uint8_t hops; // always 0
|
||||
uint32_t xid; // selected by client/server
|
||||
uint16_t secs; // seconds since DHCP process started
|
||||
uint16_t flags; // leading bit is for broadcast...all others must be zero
|
||||
struct in_addr ciaddr; // Client IP address
|
||||
struct in_addr yiaddr; // "Your" IP address
|
||||
struct in_addr siaddr; // Server IP address
|
||||
struct in_addr giaddr; // Gateway IP address
|
||||
uint8_t chaddr[16]; // Client hardware address 08002B2ED85E
|
||||
// uint8_t padding[192]; // Skip the next 192 bytes...legacy BOOTP support
|
||||
uint8_t sname[64]; // Server sending DHCPOFFER or DHCPACK (optional)
|
||||
uint8_t file[128]; // Boot file (used in BOOTP from client)
|
||||
} msg_t;
|
||||
|
||||
// Helper struct for gathering and setting DHCP options
|
||||
// DHCP: Magic Cookie 0x63825363
|
||||
typedef struct
|
||||
{
|
||||
struct in_addr *request; // DHCP: [50] Requested IP address
|
||||
uint32_t *lease; // DHCP: [51] IP Address Lease Time = 16 Days, 0:00:00
|
||||
uint8_t *type; // DHCP: [53] DHCP Message Type = DHCP ACK, 1+1+1
|
||||
struct in_addr *sid; // DHCP: [54] Server Identifier = 157.54.48.151, 1+1+N
|
||||
} options_t;
|
||||
// DHCP: [255] End (no data)
|
||||
|
||||
// Utility function for printing the raw bytes of a packet:
|
||||
void dump_packet (uint8_t *, size_t);
|
||||
|
||||
// Utility functions for getting and freeing the DHCP options
|
||||
// If you have read in a message from a socket, you can get the
|
||||
// DHCP options as follows:
|
||||
// nbytes = recvfrom (socketfd, buffer, length, 0, &addr, &addrlen);
|
||||
// get_options (buffer, buffer + nbytes - 1, &opts);
|
||||
// If an option is set (e.g., server ID), then options.sid would not be
|
||||
// NULL.
|
||||
void free_options (options_t *options);
|
||||
bool get_options (uint8_t *packet, uint8_t *end, options_t *options);
|
||||
|
||||
// Utility functions to append a DHCP cookie and a single DHCP option to the
|
||||
// end of the packet. In both cases, packet_size is the current length of
|
||||
// the array and packet points at the start of it. To set an option (e.g.,
|
||||
// message type), you can call:
|
||||
// packet = append_option (packet, &size, DHCP_opt_msgtype, 1, DHCPOFFER);
|
||||
// The return value is the packet but resized to also store the option. Note
|
||||
// that the size variable is updated to specify the new length.
|
||||
uint8_t *append_cookie (uint8_t *packet, size_t *packet_size);
|
||||
uint8_t *append_option (uint8_t *packet, size_t *packet_size, uint8_t option,
|
||||
uint8_t option_size, uint8_t *option_value);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,207 @@
|
||||
#include "format.h"
|
||||
#include "dhcp.h"
|
||||
#include <arpa/inet.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
const char *
|
||||
get_htype_name (uint8_t htype)
|
||||
{
|
||||
switch (htype)
|
||||
{
|
||||
case ETH:
|
||||
return "Ethernet (10Mb)";
|
||||
case IEEE802:
|
||||
return "IEEE 802 Networks";
|
||||
case ARCNET:
|
||||
return "ARCNET";
|
||||
case FRAME_RELAY:
|
||||
return "Frame Relay";
|
||||
case FIBRE:
|
||||
return "Fibre Channel";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
const char *
|
||||
get_dhcp_msg_type (uint8_t type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case DHCPDISCOVER:
|
||||
return "DHCP Discover";
|
||||
case DHCPOFFER:
|
||||
return "DHCP Offer";
|
||||
case DHCPREQUEST:
|
||||
return "DHCP Request";
|
||||
case DHCPDECLINE:
|
||||
return "DHCP Decline";
|
||||
case DHCPACK:
|
||||
return "DHCP ACK";
|
||||
case DHCPNAK:
|
||||
return "DHCP NAK";
|
||||
case DHCPRELEASE:
|
||||
return "DHCP Release";
|
||||
default:
|
||||
return "UNKNOWN";
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
format_time (uint32_t seconds, char *buffer)
|
||||
{
|
||||
uint32_t days = seconds / 86400;
|
||||
uint32_t hours = (seconds % 86400) / 3600;
|
||||
uint32_t mins = (seconds % 3600) / 60;
|
||||
uint32_t secs = seconds % 60;
|
||||
sprintf (buffer, "%u Days, %u:%02u:%02u", days, hours, mins, secs);
|
||||
}
|
||||
|
||||
void
|
||||
dump_msg (FILE *out, msg_t *msg, size_t nbytes)
|
||||
{
|
||||
fprintf (out, "\n");
|
||||
fprintf (out, "------------------------------------------------------\n");
|
||||
fprintf (out, "BOOTP Options\n");
|
||||
fprintf (out, "------------------------------------------------------\n");
|
||||
|
||||
// Print op code
|
||||
fprintf (out, "Op Code (op) = %d [%s]\n", msg->op,
|
||||
msg->op == BOOTREQUEST ? "BOOTREQUEST" : "BOOTREPLY");
|
||||
|
||||
// Print hardware type and length
|
||||
fprintf (out, "Hardware Type (htype) = %d [%s]\n", msg->htype,
|
||||
get_htype_name (msg->htype));
|
||||
fprintf (out, "Hardware Address Length (hlen) = %d\n", msg->hlen);
|
||||
fprintf (out, "Hops (hops) = %d\n", msg->hops);
|
||||
|
||||
// Print XID
|
||||
fprintf (out, "Transaction ID (xid) = %u (0x%x)\n", ntohl (msg->xid),
|
||||
ntohl (msg->xid));
|
||||
|
||||
// Print SECS
|
||||
char time_str[64];
|
||||
format_time (ntohs (msg->secs), time_str);
|
||||
fprintf (out, "Seconds (secs) = %s\n", time_str);
|
||||
|
||||
// Print FLAGS
|
||||
fprintf (out, "Flags (flags) = %u\n", ntohs (msg->flags));
|
||||
|
||||
// Print IP addresses
|
||||
char ip_str[INET_ADDRSTRLEN];
|
||||
|
||||
inet_ntop (AF_INET, &msg->ciaddr, ip_str, INET_ADDRSTRLEN);
|
||||
fprintf (out, "Client IP Address (ciaddr) = %s\n", ip_str);
|
||||
|
||||
inet_ntop (AF_INET, &msg->yiaddr, ip_str, INET_ADDRSTRLEN);
|
||||
fprintf (out, "Your IP Address (yiaddr) = %s\n", ip_str);
|
||||
|
||||
inet_ntop (AF_INET, &msg->siaddr, ip_str, INET_ADDRSTRLEN);
|
||||
fprintf (out, "Server IP Address (siaddr) = %s\n", ip_str);
|
||||
|
||||
inet_ntop (AF_INET, &msg->giaddr, ip_str, INET_ADDRSTRLEN);
|
||||
fprintf (out, "Relay IP Address (giaddr) = %s\n", ip_str);
|
||||
|
||||
// Print CHADDR (hardware address)
|
||||
fprintf (out, "Client Ethernet Address (chaddr) = ");
|
||||
for (int i = 0; i < msg->hlen && i < 16; i++)
|
||||
{
|
||||
fprintf (out, "%02x", msg->chaddr[i]);
|
||||
}
|
||||
fprintf (out, "\n");
|
||||
|
||||
// Parse DHCP options
|
||||
fprintf (out, "------------------------------------------------------\n");
|
||||
fprintf (out, "DHCP Options\n");
|
||||
fprintf (out, "------------------------------------------------------\n");
|
||||
|
||||
const size_t DHCP_FIXED_SIZE = sizeof (msg_t);
|
||||
uint8_t *ptr = (uint8_t *)msg + DHCP_FIXED_SIZE;
|
||||
uint8_t *end = (uint8_t *)msg + nbytes;
|
||||
|
||||
// Check for magic cookie
|
||||
if (ptr + 4 > end)
|
||||
{
|
||||
fprintf (out, "\n");
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t cookie;
|
||||
memcpy (&cookie, ptr, 4);
|
||||
if (ntohl (cookie) != MAGIC_COOKIE)
|
||||
{
|
||||
fprintf (out, "\n");
|
||||
return;
|
||||
}
|
||||
|
||||
fprintf (out, "Magic Cookie = [OK]\n");
|
||||
ptr += 4;
|
||||
|
||||
// Temporary variables to store options
|
||||
uint8_t msg_type = 0;
|
||||
struct in_addr request_ip = { 0 };
|
||||
struct in_addr server_id = { 0 };
|
||||
uint32_t lease_time = 0;
|
||||
|
||||
// Parse options and store them
|
||||
while (ptr < end)
|
||||
{
|
||||
uint8_t code = *ptr++;
|
||||
if (code == DHCP_opt_end)
|
||||
break;
|
||||
if (ptr >= end)
|
||||
break;
|
||||
|
||||
uint8_t len = *ptr++;
|
||||
if (ptr + len > end)
|
||||
break;
|
||||
|
||||
switch (code)
|
||||
{
|
||||
case DHCP_opt_msgtype:
|
||||
if (len == 1)
|
||||
msg_type = *ptr;
|
||||
break;
|
||||
case DHCP_opt_reqip:
|
||||
if (len == 4)
|
||||
memcpy (&request_ip, ptr, 4);
|
||||
break;
|
||||
case DHCP_opt_sid:
|
||||
if (len == 4)
|
||||
memcpy (&server_id, ptr, 4);
|
||||
break;
|
||||
case DHCP_opt_lease:
|
||||
if (len == 4)
|
||||
memcpy (&lease_time, ptr, 4);
|
||||
break;
|
||||
}
|
||||
|
||||
ptr += len;
|
||||
}
|
||||
|
||||
// Print options in fixed order
|
||||
if (msg_type)
|
||||
{
|
||||
fprintf (out, "Message Type = %s\n", get_dhcp_msg_type (msg_type));
|
||||
}
|
||||
|
||||
if (request_ip.s_addr)
|
||||
{
|
||||
inet_ntop (AF_INET, &request_ip, ip_str, INET_ADDRSTRLEN);
|
||||
fprintf (out, "Request = %s\n", ip_str);
|
||||
}
|
||||
|
||||
if (lease_time)
|
||||
{
|
||||
char lease_str[64];
|
||||
format_time (ntohl (lease_time), lease_str);
|
||||
fprintf (out, "IP Address Lease Time = %s\n", lease_str);
|
||||
}
|
||||
|
||||
if (server_id.s_addr)
|
||||
{
|
||||
inet_ntop (AF_INET, &server_id, ip_str, INET_ADDRSTRLEN);
|
||||
fprintf (out, "Server Identifier = %s\n", ip_str);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
#ifndef __cs361_format__
|
||||
#define __cs361_format__
|
||||
|
||||
#include "dhcp.h"
|
||||
#include <stdio.h>
|
||||
|
||||
// Print the DHCP message to the specified output file stream
|
||||
void dump_msg (FILE *, msg_t *, size_t);
|
||||
|
||||
extern bool debug;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,54 @@
|
||||
#include <getopt.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "format.h"
|
||||
#include "port_utils.h"
|
||||
#include "server.h"
|
||||
|
||||
static bool get_args (int, char **, long *);
|
||||
|
||||
bool debug = false;
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
long to_seconds = 2;
|
||||
bool success = get_args (argc, argv, &to_seconds);
|
||||
if (!success)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
char *protocol = get_port ();
|
||||
int socketfd = setup_server (protocol, to_seconds);
|
||||
if (socketfd < 0)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
// Indicate (for debugging) that the server is running
|
||||
fprintf (stderr, "Server is started on port %s\n", protocol);
|
||||
|
||||
if (debug)
|
||||
fprintf (stderr, "Shutting down\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
static bool
|
||||
get_args (int argc, char **argv, long *to_seconds)
|
||||
{
|
||||
int ch = 0;
|
||||
while ((ch = getopt (argc, argv, "dhs:")) != -1)
|
||||
{
|
||||
switch (ch)
|
||||
{
|
||||
case 'd':
|
||||
debug = true;
|
||||
break;
|
||||
case 's':
|
||||
*to_seconds = atol (optarg);
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
#ifndef __cs361_port_utils_h__
|
||||
#define __cs361_port_utils_h__
|
||||
|
||||
char *get_port (void);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,519 @@
|
||||
#include "server.h"
|
||||
#include "dhcp.h"
|
||||
#include "format.h"
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
|
||||
struct in_addr THIS_SERVER;
|
||||
client_lease_t client_leases[MAX_CLIENTS] = { 0 };
|
||||
|
||||
void
|
||||
reset_server_state ()
|
||||
{
|
||||
memset (client_leases, 0, sizeof (client_leases));
|
||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
client_leases[i].xid = 0;
|
||||
client_leases[i].hlen = 0;
|
||||
client_leases[i].has_offer = 0;
|
||||
client_leases[i].has_lease = 0;
|
||||
memset (client_leases[i].chaddr, 0, 16);
|
||||
memset (&client_leases[i].offered_ip, 0, sizeof (struct in_addr));
|
||||
memset (&client_leases[i].assigned_ip, 0, sizeof (struct in_addr));
|
||||
}
|
||||
}
|
||||
|
||||
// Find a client by XID (either with pending offer or confirmed lease)
|
||||
client_lease_t *
|
||||
find_client_by_xid (uint32_t xid)
|
||||
{
|
||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
if (client_leases[i].xid == xid
|
||||
&& (client_leases[i].has_offer || client_leases[i].has_lease))
|
||||
{
|
||||
return &client_leases[i];
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct in_addr
|
||||
get_next_available_ip (uint8_t *chaddr, uint8_t hlen)
|
||||
{
|
||||
struct in_addr ip = { 0 };
|
||||
char ip_str[16];
|
||||
|
||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
if (client_leases[i].hlen == hlen
|
||||
&& memcmp (client_leases[i].chaddr, chaddr, hlen) == 0)
|
||||
{
|
||||
// Prefer the assigned IP if present, otherwise offered IP.
|
||||
if (client_leases[i].assigned_ip.s_addr != 0)
|
||||
return client_leases[i].assigned_ip;
|
||||
if (client_leases[i].offered_ip.s_addr != 0)
|
||||
return client_leases[i].offered_ip;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 1; i <= MAX_CLIENTS; i++)
|
||||
{
|
||||
snprintf (ip_str, sizeof (ip_str), "192.168.1.%d", i);
|
||||
|
||||
memset (&ip, 0, sizeof (ip));
|
||||
if (inet_pton (AF_INET, ip_str, &ip) != 1)
|
||||
continue;
|
||||
|
||||
int in_use = 0;
|
||||
int ever_assigned = 0;
|
||||
for (int j = 0; j < MAX_CLIENTS; j++)
|
||||
{
|
||||
if (client_leases[j].assigned_ip.s_addr == ip.s_addr
|
||||
&& client_leases[j].assigned_ip.s_addr != 0)
|
||||
ever_assigned = 1;
|
||||
if ((client_leases[j].has_offer
|
||||
&& client_leases[j].offered_ip.s_addr == ip.s_addr)
|
||||
|| (client_leases[j].has_lease
|
||||
&& client_leases[j].assigned_ip.s_addr == ip.s_addr))
|
||||
{
|
||||
in_use = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!ever_assigned && !in_use)
|
||||
{
|
||||
return ip;
|
||||
}
|
||||
}
|
||||
|
||||
for (int last = 1; last <= MAX_CLIENTS; last++)
|
||||
{
|
||||
snprintf (ip_str, sizeof (ip_str), "192.168.1.%d", last);
|
||||
memset (&ip, 0, sizeof (ip));
|
||||
if (inet_pton (AF_INET, ip_str, &ip) != 1)
|
||||
continue;
|
||||
|
||||
int owner_idx = -1;
|
||||
int currently_offered_or_leased = 0;
|
||||
for (int j = 0; j < MAX_CLIENTS; j++)
|
||||
{
|
||||
if (client_leases[j].assigned_ip.s_addr == ip.s_addr
|
||||
&& client_leases[j].assigned_ip.s_addr != 0)
|
||||
owner_idx = j;
|
||||
if (client_leases[j].has_offer
|
||||
&& client_leases[j].offered_ip.s_addr == ip.s_addr)
|
||||
currently_offered_or_leased = 1;
|
||||
if (client_leases[j].has_lease
|
||||
&& client_leases[j].assigned_ip.s_addr == ip.s_addr)
|
||||
currently_offered_or_leased = 1; // treat leased as in-use
|
||||
if (currently_offered_or_leased)
|
||||
break;
|
||||
}
|
||||
|
||||
if (owner_idx != -1 && !client_leases[owner_idx].has_lease
|
||||
&& !currently_offered_or_leased)
|
||||
{
|
||||
return ip;
|
||||
}
|
||||
}
|
||||
|
||||
ip.s_addr = 0;
|
||||
return ip;
|
||||
}
|
||||
|
||||
// Find first empty slot in client_leases array
|
||||
int
|
||||
find_empty_slot ()
|
||||
{
|
||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
if (!client_leases[i].has_offer && !client_leases[i].has_lease)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
uint8_t
|
||||
phase1_handle_request (msg_t *request, options_t *req_opts, msg_t *response)
|
||||
{
|
||||
uint8_t msg_type;
|
||||
if (req_opts->type && *req_opts->type == DHCPREQUEST)
|
||||
{
|
||||
msg_type = DHCPACK;
|
||||
if (req_opts->request)
|
||||
{
|
||||
memcpy (&response->yiaddr, req_opts->request,
|
||||
sizeof (struct in_addr));
|
||||
}
|
||||
else
|
||||
{
|
||||
memcpy (&response->yiaddr, &request->ciaddr,
|
||||
sizeof (struct in_addr));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
msg_type = DHCPOFFER;
|
||||
inet_pton (AF_INET, "192.168.1.1", &response->yiaddr);
|
||||
}
|
||||
|
||||
return msg_type;
|
||||
}
|
||||
|
||||
uint8_t
|
||||
handle_dhcp_discover (msg_t *request, options_t *req_opts, msg_t *response)
|
||||
{
|
||||
uint8_t msg_type;
|
||||
uint32_t xid = ntohl (request->xid);
|
||||
|
||||
client_lease_t *existing_lease = NULL;
|
||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
if (client_leases[i].has_lease && client_leases[i].hlen == request->hlen
|
||||
&& memcmp (client_leases[i].chaddr, request->chaddr, request->hlen)
|
||||
== 0)
|
||||
{
|
||||
existing_lease = &client_leases[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (existing_lease)
|
||||
{
|
||||
msg_type = DHCPOFFER;
|
||||
memcpy (&response->yiaddr, &existing_lease->assigned_ip,
|
||||
sizeof (struct in_addr));
|
||||
existing_lease->xid = xid;
|
||||
existing_lease->offered_ip = existing_lease->assigned_ip;
|
||||
existing_lease->has_offer = 1;
|
||||
return msg_type;
|
||||
}
|
||||
|
||||
client_lease_t *pending_offer = NULL;
|
||||
for (int i = 0; i < MAX_CLIENTS; i++)
|
||||
{
|
||||
if (client_leases[i].has_offer && !client_leases[i].has_lease
|
||||
&& client_leases[i].hlen == request->hlen
|
||||
&& memcmp (client_leases[i].chaddr, request->chaddr, request->hlen)
|
||||
== 0)
|
||||
{
|
||||
pending_offer = &client_leases[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (pending_offer)
|
||||
{
|
||||
msg_type = DHCPOFFER;
|
||||
memcpy (&response->yiaddr, &pending_offer->offered_ip,
|
||||
sizeof (struct in_addr));
|
||||
pending_offer->xid = xid;
|
||||
return msg_type;
|
||||
}
|
||||
|
||||
struct in_addr new_ip
|
||||
= get_next_available_ip (request->chaddr, request->hlen);
|
||||
|
||||
if (debug)
|
||||
{
|
||||
char ip_str[INET_ADDRSTRLEN];
|
||||
inet_ntop (AF_INET, &new_ip, ip_str, INET_ADDRSTRLEN);
|
||||
fprintf (stderr, "New client - offering IP: %s\n", ip_str);
|
||||
}
|
||||
|
||||
if (new_ip.s_addr == 0)
|
||||
{
|
||||
msg_type = DHCPNAK;
|
||||
memset (&response->yiaddr, 0, sizeof (struct in_addr));
|
||||
return msg_type;
|
||||
}
|
||||
|
||||
msg_type = DHCPOFFER;
|
||||
memcpy (&response->yiaddr, &new_ip, sizeof (struct in_addr));
|
||||
|
||||
int slot = find_empty_slot ();
|
||||
if (slot >= 0)
|
||||
{
|
||||
memset (&client_leases[slot], 0, sizeof (client_lease_t));
|
||||
|
||||
client_leases[slot].xid = xid;
|
||||
memcpy (client_leases[slot].chaddr, request->chaddr, request->hlen);
|
||||
client_leases[slot].hlen = request->hlen;
|
||||
client_leases[slot].offered_ip = new_ip;
|
||||
client_leases[slot].has_offer = 1;
|
||||
client_leases[slot].has_lease = 0;
|
||||
}
|
||||
|
||||
return msg_type;
|
||||
}
|
||||
|
||||
uint8_t
|
||||
handle_dhcp_request (msg_t *request, options_t *req_opts, msg_t *response)
|
||||
{
|
||||
uint8_t msg_type;
|
||||
uint32_t xid = ntohl (request->xid);
|
||||
|
||||
client_lease_t *client = find_client_by_xid (xid);
|
||||
|
||||
if (!client)
|
||||
{
|
||||
msg_type = DHCPNAK;
|
||||
memset (&response->yiaddr, 0, sizeof (struct in_addr));
|
||||
return msg_type;
|
||||
}
|
||||
|
||||
int ip_match = 0;
|
||||
if (req_opts->request)
|
||||
{
|
||||
ip_match = (memcmp (req_opts->request, &client->offered_ip,
|
||||
sizeof (struct in_addr))
|
||||
== 0);
|
||||
}
|
||||
int server_match = 0;
|
||||
if (req_opts->sid)
|
||||
{
|
||||
server_match
|
||||
= (memcmp (req_opts->sid, &THIS_SERVER, sizeof (struct in_addr))
|
||||
== 0);
|
||||
}
|
||||
|
||||
if (ip_match && server_match)
|
||||
{
|
||||
msg_type = DHCPACK;
|
||||
memcpy (&response->yiaddr, &client->offered_ip, sizeof (struct in_addr));
|
||||
|
||||
client->assigned_ip = client->offered_ip;
|
||||
client->has_lease = 1;
|
||||
client->has_offer = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
msg_type = DHCPNAK;
|
||||
memset (&response->yiaddr, 0, sizeof (struct in_addr));
|
||||
|
||||
memset (client, 0, sizeof (client_lease_t));
|
||||
}
|
||||
|
||||
return msg_type;
|
||||
}
|
||||
|
||||
// Create DHCP response
|
||||
uint8_t *
|
||||
create_response (msg_t *request, size_t *response_size, options_t *req_opts)
|
||||
{
|
||||
msg_t response = { 0 };
|
||||
memcpy (&response, request, sizeof (msg_t));
|
||||
|
||||
response.op = BOOTREPLY;
|
||||
memset (&response.siaddr, 0, sizeof (struct in_addr));
|
||||
|
||||
uint8_t msg_type;
|
||||
uint32_t xid = ntohl (request->xid);
|
||||
|
||||
// Phase 1 if the xid is 0
|
||||
if (xid == 0)
|
||||
{
|
||||
msg_type = phase1_handle_request (request, req_opts, &response);
|
||||
}
|
||||
// Phase 2 and beyond
|
||||
else
|
||||
{
|
||||
if (req_opts->type && *req_opts->type == DHCPDISCOVER)
|
||||
{
|
||||
msg_type = handle_dhcp_discover (request, req_opts, &response);
|
||||
}
|
||||
else if (req_opts->type && *req_opts->type == DHCPREQUEST)
|
||||
{
|
||||
msg_type = handle_dhcp_request (request, req_opts, &response);
|
||||
}
|
||||
else
|
||||
{
|
||||
msg_type = DHCPOFFER;
|
||||
inet_pton (AF_INET, "192.168.1.1", &response.yiaddr);
|
||||
}
|
||||
}
|
||||
|
||||
size_t buffer_size = sizeof (msg_t);
|
||||
uint8_t *response_buffer = calloc (1, buffer_size);
|
||||
if (!response_buffer)
|
||||
return NULL;
|
||||
|
||||
memcpy (response_buffer, &response, sizeof (msg_t));
|
||||
|
||||
response_buffer = append_cookie (response_buffer, &buffer_size);
|
||||
response_buffer
|
||||
= append_option (response_buffer, &buffer_size, DHCP_opt_msgtype,
|
||||
sizeof (msg_type), &msg_type);
|
||||
|
||||
if (msg_type == DHCPOFFER || msg_type == DHCPACK)
|
||||
{
|
||||
uint32_t lease_time = htonl (60 * 60 * 24 * 30);
|
||||
response_buffer
|
||||
= append_option (response_buffer, &buffer_size, DHCP_opt_lease,
|
||||
sizeof (lease_time), (uint8_t *)&lease_time);
|
||||
}
|
||||
|
||||
response_buffer
|
||||
= append_option (response_buffer, &buffer_size, DHCP_opt_sid,
|
||||
sizeof (THIS_SERVER), (uint8_t *)&THIS_SERVER);
|
||||
response_buffer
|
||||
= append_option (response_buffer, &buffer_size, DHCP_opt_end, 0, NULL);
|
||||
|
||||
*response_size = buffer_size;
|
||||
|
||||
return response_buffer;
|
||||
}
|
||||
|
||||
int
|
||||
setup_server (char *port_str, long timeout_seconds)
|
||||
{
|
||||
reset_server_state ();
|
||||
|
||||
int sockfd;
|
||||
struct sockaddr_in server_addr;
|
||||
int port = atoi (port_str);
|
||||
|
||||
// Create UDP socket
|
||||
sockfd = socket (AF_INET, SOCK_DGRAM, 0);
|
||||
if (sockfd < 0)
|
||||
{
|
||||
perror ("socket");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (timeout_seconds > 0)
|
||||
{
|
||||
struct timeval tv;
|
||||
tv.tv_sec = timeout_seconds;
|
||||
tv.tv_usec = 0;
|
||||
setsockopt (sockfd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof (tv));
|
||||
}
|
||||
|
||||
// Bind socket
|
||||
memset (&server_addr, 0, sizeof (server_addr));
|
||||
server_addr.sin_family = AF_INET;
|
||||
server_addr.sin_addr.s_addr = INADDR_ANY;
|
||||
server_addr.sin_port = htons (port);
|
||||
|
||||
if (bind (sockfd, (struct sockaddr *)&server_addr, sizeof (server_addr)) < 0)
|
||||
{
|
||||
perror ("bind");
|
||||
close (sockfd);
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Set THIS_SERVER to 192.168.1.0
|
||||
inet_pton (AF_INET, "192.168.1.0", &THIS_SERVER);
|
||||
|
||||
uint8_t buffer[MAX_DHCP_LENGTH];
|
||||
struct sockaddr_in client_addr;
|
||||
socklen_t client_len = sizeof (client_addr);
|
||||
|
||||
// Main server loop
|
||||
while (1)
|
||||
{
|
||||
ssize_t nbytes = recvfrom (sockfd, buffer, MAX_DHCP_LENGTH, 0,
|
||||
(struct sockaddr *)&client_addr, &client_len);
|
||||
|
||||
if (nbytes < 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
msg_t *msg = (msg_t *)buffer;
|
||||
|
||||
// Print received message
|
||||
printf ("++++++++++++++++++++++++++\n");
|
||||
printf ("SERVER RECEIVED %zd BYTES:\n", nbytes);
|
||||
printf ("++++++++++++++++++++++++++\n");
|
||||
dump_msg (stdout, msg, nbytes);
|
||||
fflush (stdout);
|
||||
|
||||
// Get DHCP options
|
||||
options_t opts;
|
||||
if (!get_options (buffer, buffer + nbytes, &opts))
|
||||
{
|
||||
fprintf (stderr, "Failed to parse DHCP options\n");
|
||||
fflush (stderr);
|
||||
free_options (&opts);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (*opts.type == DHCPRELEASE)
|
||||
{
|
||||
uint32_t xid = ntohl (msg->xid);
|
||||
client_lease_t *client = find_client_by_xid (xid);
|
||||
if (client)
|
||||
{
|
||||
if (debug)
|
||||
{
|
||||
char ip_str[INET_ADDRSTRLEN];
|
||||
inet_ntop (AF_INET, &client->assigned_ip, ip_str,
|
||||
INET_ADDRSTRLEN);
|
||||
fprintf (stderr, "Releasing IP %s for client\n", ip_str);
|
||||
}
|
||||
client->has_lease = 0;
|
||||
client->has_offer = 0;
|
||||
}
|
||||
free_options (&opts);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Create and send response
|
||||
size_t response_size;
|
||||
uint8_t *response = create_response (msg, &response_size, &opts);
|
||||
|
||||
if (!response)
|
||||
{
|
||||
fprintf (stderr, "ERROR: create_response returned NULL!\n");
|
||||
fflush (stderr);
|
||||
free_options (&opts);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (response_size == 0)
|
||||
{
|
||||
fprintf (stderr, "ERROR: response_size is 0!\n");
|
||||
fflush (stderr);
|
||||
free (response);
|
||||
free_options (&opts);
|
||||
continue;
|
||||
}
|
||||
|
||||
ssize_t sent = sendto (sockfd, response, response_size, 0,
|
||||
(struct sockaddr *)&client_addr, client_len);
|
||||
|
||||
if (sent < 0)
|
||||
{
|
||||
perror ("sendto failed");
|
||||
fprintf (stderr, "Failed to send %zu bytes\n", response_size);
|
||||
fflush (stderr);
|
||||
}
|
||||
|
||||
// Print sent message
|
||||
printf ("\n");
|
||||
printf ("+++++++++++++++++++++++++\n");
|
||||
printf ("SERVER SENDING %zu BYTES:\n", response_size);
|
||||
printf ("+++++++++++++++++++++++++\n");
|
||||
dump_msg (stdout, (msg_t *)response, response_size);
|
||||
fflush (stdout);
|
||||
|
||||
free (response);
|
||||
|
||||
free_options (&opts);
|
||||
}
|
||||
|
||||
close (sockfd);
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
#ifndef __cs361_dhcp_server_h__
|
||||
#define __cs361_dhcp_server_h__
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "dhcp.h"
|
||||
|
||||
void reset_server_state ();
|
||||
int setup_server (char *, long to_seconds);
|
||||
|
||||
// Maximum number of clients to support
|
||||
#define MAX_CLIENTS 4
|
||||
|
||||
// Client lease information
|
||||
typedef struct
|
||||
{
|
||||
uint32_t xid;
|
||||
uint8_t chaddr[16];
|
||||
uint8_t hlen;
|
||||
struct in_addr offered_ip;
|
||||
struct in_addr assigned_ip;
|
||||
int has_offer;
|
||||
int has_lease;
|
||||
} client_lease_t;
|
||||
|
||||
extern bool debug;
|
||||
extern struct in_addr THIS_SERVER;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,93 @@
|
||||
#
|
||||
# Simple Test Makefile
|
||||
# Mike Lam, James Madison University, August 2016
|
||||
#
|
||||
# This version of the Makefile includes support for building a test suite. The
|
||||
# recommended framework is Check (http://check.sourceforge.net/). To build and
|
||||
# run the test suite, execute the "test" target. The test suite must be located
|
||||
# in a module called "testsuite". The MODS, LIBS, and OBJS variables work as
|
||||
# they do in the main Makefile.
|
||||
#
|
||||
# To change the default build target (which executes when you just type
|
||||
# "make"), change the right-hand side of the definition of the "default"
|
||||
# target.
|
||||
#
|
||||
# By default, this makefile will build the project with debugging symbols and
|
||||
# without optimization. To change this, edit or remove the "-g" and "-O0"
|
||||
# options in CFLAGS and LDFLAGS accordingly.
|
||||
#
|
||||
# By default, this makefile build the application using the GNU C compiler,
|
||||
# adhering to the C99 standard with all warnings enabled.
|
||||
|
||||
|
||||
# application-specific settings and run target
|
||||
|
||||
EXE=../dhcps
|
||||
TEST=testsuite
|
||||
MODS=public.o
|
||||
OBJS=../port_utils.o
|
||||
LIBS=
|
||||
|
||||
UTESTOUT=utests.txt
|
||||
ITESTOUT=itests.txt
|
||||
SCHECKOUT=style.txt
|
||||
|
||||
default: $(TEST)
|
||||
|
||||
TOBJS=dhcp.o format.o threads.o
|
||||
|
||||
|
||||
threads: threads.c $(TOBJS)
|
||||
gcc -O2 -o threads $(TOBJS) $(OBJS)
|
||||
|
||||
$(EXE):
|
||||
make -C ../
|
||||
|
||||
test: utest itest style
|
||||
@echo "========================================"
|
||||
|
||||
utest: $(EXE) $(TEST)
|
||||
@echo "========================================"
|
||||
@echo " UNIT TESTS"
|
||||
@./$(TEST) 2>/dev/null >$(UTESTOUT)
|
||||
@cat $(UTESTOUT) | sed -n -e '/Checks/,$$p' | sed -e 's/^private.*:[EF]://g'
|
||||
|
||||
itest: $(EXE)
|
||||
@echo "========================================"
|
||||
@echo " INTEGRATION TESTS"
|
||||
@./integration.sh | tee $(ITESTOUT)
|
||||
|
||||
style: $(EXE)
|
||||
@echo "========================================"
|
||||
@echo " CODING STYLE CHECK"
|
||||
@./style.sh 2>/dev/null >$(SCHECKOUT)
|
||||
@cat $(SCHECKOUT)
|
||||
|
||||
# compiler/linker settings
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=-g -O0 -Wall --std=gnu99 -pedantic
|
||||
LDFLAGS=-g -O0
|
||||
|
||||
#CKCFLAGS=
|
||||
CKLIBS+=-lcheck -lm -lpthread
|
||||
|
||||
ifeq ($(shell uname -s),Linux)
|
||||
CKLIBS+=-lrt -lsubunit
|
||||
endif
|
||||
|
||||
|
||||
# build targets
|
||||
|
||||
$(TEST): $(TEST).o $(MODS) $(OBJS)
|
||||
$(CC) -c testsuite.c -o testsuite.o
|
||||
$(CC) $(LDFLAGS) -o $(TEST) $^ $(CKLIBS)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $<
|
||||
|
||||
clean:
|
||||
rm -rf $(TEST) $(TEST).o $(MODS) $(UTESTOUT) $(ITESTOUT) $(SCHECKOUT) outputs valgrind ckstyle $(COBJS)
|
||||
|
||||
.PHONY: default clean test unittest inttest
|
||||
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1 @@
|
||||
3 7 50 f0 192.168.10.0 192.168.1.8:DHCPREQUEST [htype=ARC, xid=50, chaddr=f0, server=192.168.10.0, reqid=192.168.1.8]
|
||||
@@ -0,0 +1,4 @@
|
||||
1 7 12345678 c0:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0]
|
||||
3 7 12345678 c0 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ARC, xid=12345678, chaddr=c0, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 7 87654321 a8:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8]
|
||||
3 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
@@ -0,0 +1,6 @@
|
||||
1 7 12345678 c0:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0]
|
||||
3 7 12345678 c0 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ARC, xid=12345678, chaddr=c0, server=192.168.1.0, reqid=192.168.1.1]
|
||||
7 7 12345678 c0 192.168.1.0 192.168.1.1:DHCPRELEASE [htype=ARC, xid=12345678, chaddr=c0, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 7 87654321 a8:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8]
|
||||
3 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
7 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPRELEASE [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
@@ -0,0 +1,2 @@
|
||||
1 1 42 010102020303:DHCPDISCOVER [htype=ETH, xid=42, chaddr=010102020303]
|
||||
3 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
@@ -0,0 +1 @@
|
||||
1 1 0 010102020303:DHCPDISCOVER [htype=ETH, xid=0, chaddr=010102020303]
|
||||
@@ -0,0 +1,9 @@
|
||||
1 18 45 c0d1e2:DHCPDISCOVER [htype=FIBRE, xid=45, chaddr=c0d1e2]
|
||||
3 18 45 c0d1e2 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=FIBRE, xid=45, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.1]
|
||||
7 18 45 c0d1e2 192.168.1.0 192.168.1.1:DHCPRELEASE [htype=FIBRE, xid=45, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 18 35 a8b6c4:DHCPDISCOVER [htype=FIBRE, xid=35, chaddr=a8b6c4]
|
||||
3 18 35 a8b6c4 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=FIBRE, xid=35, chaddr=a8b6c4, server=192.168.1.0, reqid=192.168.1.2]
|
||||
7 18 35 a8b6c4 192.168.1.0 192.168.1.2:DHCPRELEASE [htype=FIBRE, xid=35, chaddr=a8b6c4, server=192.168.1.0, reqid=192.168.1.2]
|
||||
1 18 55 c0d1e2:DHCPDISCOVER [htype=FIBRE, xid=55, chaddr=c0d1e2]
|
||||
3 18 55 c0d1e2 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.1]
|
||||
7 18 55 c0d1e2 192.168.1.0 192.168.1.1:DHCPRELEASE [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.1]
|
||||
@@ -0,0 +1,6 @@
|
||||
1 15 12345678 c0a8:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0a8]
|
||||
1 15 87654321 a8c0:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8c0]
|
||||
3 15 12345678 c0a8 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ARC, xid=12345678, chaddr=c0a8, server=192.168.1.0, reqid=192.168.1.1]
|
||||
3 15 87654321 a8c0 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8c0, server=192.168.1.0, reqid=192.168.1.2]
|
||||
7 15 87654321 a8c0 192.168.1.0 192.168.1.2:DHCPRELEASE [htype=ARC, xid=87654321, chaddr=a8c0, server=192.168.1.0, reqid=192.168.1.2]
|
||||
7 15 12345678 c0a8 192.168.1.0 192.168.1.1:DHCPRELEASE [htype=ARC, xid=12345678, chaddr=c0a8, server=192.168.1.0, reqid=192.168.1.1]
|
||||
@@ -0,0 +1,3 @@
|
||||
1 6 65535 a1b1c2d2e3f3:DHCPDISCOVER [htype=IEEE802, xid=65535, chaddr=a1b1c2d2e3f3]
|
||||
3 6 65535 a1b1c2d2e3f3 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=IEEE802, xid=65535, chaddr=a1b1c2d2e3f3, server=192.168.1.0, reqid=192.168.1.1]
|
||||
7 6 65535 a1b1c2d2e3f3 192.168.1.0 192.168.1.1:DHCPRELEASE [htype=IEEE802, xid=65535, chaddr=a1b1c2d2e3f3, server=192.168.1.0, reqid=192.168.1.1]
|
||||
@@ -0,0 +1 @@
|
||||
3 6 0 0123456789ab 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=IEEE802, xid=0, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.1]
|
||||
@@ -0,0 +1,9 @@
|
||||
1 1 42 010102020303:DHCPDISCOVER [htype=ETH, xid=42, chaddr=010102020303]
|
||||
3 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 7 87654321 a8:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8]
|
||||
3 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
1 6 1234 0123456789ab:DHCPDISCOVER [htype=ETH, xid=1234, chaddr=0123456789ab]
|
||||
3 6 1234 0123456789ab 192.168.1.0 192.168.1.3:DHCPREQUEST [htype=IEEE802, xid=1234, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.3]
|
||||
1 18 55 c0d1e2:DHCPDISCOVER [htype=FIBRE, xid=55, chaddr=c0d1e2]
|
||||
3 18 55 c0d1e2 192.168.1.0 192.168.1.4:DHCPREQUEST [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.4]
|
||||
1 15 12345678 c0a8:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0a8]
|
||||
@@ -0,0 +1,16 @@
|
||||
1 1 42 010102020303:DHCPDISCOVER [htype=ETH, xid=42, chaddr=010102020303]
|
||||
3 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 7 87654321 a8:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8]
|
||||
3 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
1 6 1234 0123456789ab:DHCPDISCOVER [htype=ETH, xid=1234, chaddr=0123456789ab]
|
||||
3 6 1234 0123456789ab 192.168.1.0 192.168.1.3:DHCPREQUEST [htype=IEEE802, xid=1234, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.3]
|
||||
1 18 55 c0d1e2:DHCPDISCOVER [htype=FIBRE, xid=55, chaddr=c0d1e2]
|
||||
3 18 55 c0d1e2 192.168.1.0 192.168.1.4:DHCPREQUEST [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.4]
|
||||
7 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREELEASE [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 15 12345678 c0a8:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0a8]
|
||||
3 15 12345678 c0a8 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ARC, xid=12345678, chaddr=c0a8, server=192.168.1.0, reqid=192.168.1.1]
|
||||
7 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPRELEASE [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
7 6 1234 0123456789ab 192.168.1.0 192.168.1.3:DHCPRELEASE [htype=IEEE802, xid=1234, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.3]
|
||||
7 18 55 c0d1e2 192.168.1.0 192.168.1.4:DHCPRELEASE [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.4]
|
||||
1 6 5678 0123456789ab:DHCPDISCOVER [htype=ETH, xid=1234, chaddr=0123456789ab]
|
||||
3 6 5678 0123456789ab 192.168.1.0 192.168.1.3:DHCPREQUEST [htype=IEEE802, xid=1234, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.3]
|
||||
@@ -0,0 +1,11 @@
|
||||
1 1 42 010102020303:DHCPDISCOVER [htype=ETH, xid=42, chaddr=010102020303]
|
||||
3 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 7 87654321 a8:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8]
|
||||
3 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
1 6 1234 0123456789ab:DHCPDISCOVER [htype=ETH, xid=1234, chaddr=0123456789ab]
|
||||
3 6 1234 0123456789ab 192.168.1.0 192.168.1.3:DHCPREQUEST [htype=IEEE802, xid=1234, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.3]
|
||||
1 18 55 c0d1e2:DHCPDISCOVER [htype=FIBRE, xid=55, chaddr=c0d1e2]
|
||||
3 18 55 c0d1e2 192.168.1.0 192.168.1.4:DHCPREQUEST [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.4]
|
||||
7 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREELEASE [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 15 12345678 c0a8:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0a8]
|
||||
3 15 12345678 c0a8 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ARC, xid=12345678, chaddr=c0a8, server=192.168.1.0, reqid=192.168.1.1]
|
||||
@@ -0,0 +1,11 @@
|
||||
1 1 42 010102020303:DHCPDISCOVER [htype=ETH, xid=42, chaddr=010102020303]
|
||||
1 7 87654321 a8:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8]
|
||||
1 6 1234 0123456789ab:DHCPDISCOVER [htype=ETH, xid=1234, chaddr=0123456789ab]
|
||||
1 18 55 c0d1e2:DHCPDISCOVER [htype=FIBRE, xid=55, chaddr=c0d1e2]
|
||||
3 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
3 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
3 6 1234 0123456789ab 192.168.1.0 192.168.1.3:DHCPREQUEST [htype=IEEE802, xid=1234, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.3]
|
||||
3 18 55 c0d1e2 192.168.1.0 192.168.1.4:DHCPREQUEST [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.4]
|
||||
7 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPRELEASE [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 15 12345678 c0a8:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0a8]
|
||||
3 15 12345678 c0a8 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ARC, xid=12345678, chaddr=c0a8, server=192.168.1.0, reqid=192.168.1.1]]
|
||||
@@ -0,0 +1,11 @@
|
||||
1 1 42 010102020303:DHCPDISCOVER [htype=ETH, xid=42, chaddr=010102020303]
|
||||
1 7 87654321 a8:DHCPDISCOVER [htype=ARC, xid=87654321, chaddr=a8]
|
||||
1 6 1234 0123456789ab:DHCPDISCOVER [htype=ETH, xid=1234, chaddr=0123456789ab]
|
||||
1 18 55 c0d1e2:DHCPDISCOVER [htype=FIBRE, xid=55, chaddr=c0d1e2]
|
||||
3 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
3 7 87654321 a8 192.168.1.0 192.168.1.2:DHCPREQUEST [htype=ARC, xid=87654321, chaddr=a8, server=192.168.1.0, reqid=192.168.1.2]
|
||||
3 6 1234 0123456789ab 192.168.1.0 192.168.1.3:DHCPREQUEST [htype=IEEE802, xid=1234, chaddr=0123456789ab, server=192.168.1.0, reqid=192.168.1.3]
|
||||
3 18 55 c0d1e2 192.168.1.0 192.168.1.4:DHCPREQUEST [htype=FIBRE, xid=55, chaddr=c0d1e2, server=192.168.1.0, reqid=192.168.1.4]
|
||||
7 1 42 010102020303 192.168.1.0 192.168.1.1:DHCPRELEASE [htype=ETH, xid=42, chaddr=010102020303, server=192.168.1.0, reqid=192.168.1.1]
|
||||
1 15 12345678 c0a8:DHCPDISCOVER [htype=ARC, xid=12345678, chaddr=c0a8]
|
||||
3 15 12345678 c0a8 192.168.1.0 192.168.1.1:DHCPREQUEST [htype=ARC, xid=12345678, chaddr=c0a8, server=192.168.1.0, reqid=192.168.1.1]]
|
||||
@@ -0,0 +1,432 @@
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 500 (0x1f4)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 2000 (0x7d0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 7500 (0x1d4c)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 10000 (0x2710)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 65
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 40000 (0x9c40)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 87
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 100000 (0x186a0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010203040506
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 250000 (0x3d090)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = ccddee
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 500000 (0x7a120)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 500 (0x1f4)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 2000 (0x7d0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 7500 (0x1d4c)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 10000 (0x2710)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 65
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 40000 (0x9c40)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 87
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 100000 (0x186a0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010203040506
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 250000 (0x3d090)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = ccddee
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 500000 (0x7a120)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
@@ -0,0 +1,272 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.1
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.2
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.2
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -0,0 +1,408 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 45 (0x2d)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 45 (0x2d)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 45 (0x2d)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 45 (0x2d)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 45 (0x2d)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.1
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 35 (0x23)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8b6c4
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 35 (0x23)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8b6c4
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 35 (0x23)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8b6c4
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.2
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 35 (0x23)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8b6c4
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 35 (0x23)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.2
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8b6c4
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.1
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -0,0 +1,272 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.2
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.2
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.1
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -0,0 +1,136 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 65535 (0xffff)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a1b1c2d2e3f3
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 65535 (0xffff)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a1b1c2d2e3f3
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 65535 (0xffff)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a1b1c2d2e3f3
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 65535 (0xffff)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a1b1c2d2e3f3
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 65535 (0xffff)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.1
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a1b1c2d2e3f3
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
@@ -0,0 +1,756 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.2
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.3
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.4
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.4
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.4
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.1
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.2
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.3
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.4
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 5678 (0x162e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 5678 (0x162e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 5678 (0x162e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.3
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 5678 (0x162e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
@@ -0,0 +1,560 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.2
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.3
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.4
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.4
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.4
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 192.168.1.1
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Release
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
NO RESPONSE IS NEEDED FOR DHCPRELEASE
|
||||
+++++++++++++++++++++++++++++++++++++
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
++++++++++++++++++++++++++
|
||||
SERVER RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 50 (0x0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = f0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.8
|
||||
Server Identifier = 192.168.10.0
|
||||
ERROR: Invalid server ID in request 192.168.10.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
SERVER SENDING 250 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 50 (0x0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = f0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP NAK
|
||||
Server Identifier = 192.168.1.0
|
||||
@@ -0,0 +1,212 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.2
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
@@ -0,0 +1,475 @@
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 42 (0x2a)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.2
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 7 [ARCNET]
|
||||
Hardware Address Length (hlen) = 1
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 87654321 (0x5397fb1)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.2
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.3
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 1234 (0x4d2)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.3
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.4
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.4
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 18 [Fibre Channel]
|
||||
Hardware Address Length (hlen) = 3
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 55 (0x37)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.4
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0d1e2
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
CLIENT SENDING 244 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
++++++++++++++++++++++++++
|
||||
CLIENT RECEIVED 250 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 15 [Frame Relay]
|
||||
Hardware Address Length (hlen) = 2
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 12345678 (0xbc614e)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = c0a8
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP NAK
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
++++++++++++++++++++++++++
|
||||
SERVER RECEIVED 244 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 0 (0x0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Discover
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
SERVER SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 1 [Ethernet (10Mb)]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 0 (0x0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 010102020303
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Offer
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
@@ -0,0 +1,53 @@
|
||||
++++++++++++++++++++++++++
|
||||
SERVER RECEIVED 256 BYTES:
|
||||
++++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 1 [BOOTREQUEST]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 0 (0x0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 0.0.0.0
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP Request
|
||||
Request = 192.168.1.1
|
||||
Server Identifier = 192.168.1.0
|
||||
|
||||
+++++++++++++++++++++++++
|
||||
SERVER SENDING 256 BYTES:
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
------------------------------------------------------
|
||||
BOOTP Options
|
||||
------------------------------------------------------
|
||||
Op Code (op) = 2 [BOOTREPLY]
|
||||
Hardware Type (htype) = 6 [IEEE 802 Networks]
|
||||
Hardware Address Length (hlen) = 6
|
||||
Hops (hops) = 0
|
||||
Transaction ID (xid) = 0 (0x0)
|
||||
Seconds (secs) = 0 Days, 0:00:00
|
||||
Flags (flags) = 0
|
||||
Client IP Address (ciaddr) = 0.0.0.0
|
||||
Your IP Address (yiaddr) = 192.168.1.1
|
||||
Server IP Address (siaddr) = 0.0.0.0
|
||||
Relay IP Address (giaddr) = 0.0.0.0
|
||||
Client Ethernet Address (chaddr) = 0123456789ab
|
||||
------------------------------------------------------
|
||||
DHCP Options
|
||||
------------------------------------------------------
|
||||
Magic Cookie = [OK]
|
||||
Message Type = DHCP ACK
|
||||
IP Address Lease Time = 30 Days, 0:00:00
|
||||
Server Identifier = 192.168.1.0
|
||||
Executable
+93
@@ -0,0 +1,93 @@
|
||||
#!/bin/bash
|
||||
|
||||
EXE="../dhcps"
|
||||
|
||||
function run_test {
|
||||
|
||||
# parameters
|
||||
TAG=$1
|
||||
shift
|
||||
ARGS=$1
|
||||
shift
|
||||
|
||||
PTAG=$(printf '%-30s' "$TAG")
|
||||
if [[ $(echo $TAG | cut -d'_' -f1) == $SKIP_C ||
|
||||
$(echo $TAG | cut -d'_' -f1) == $SKIP_B ||
|
||||
$(echo $TAG | cut -d'_' -f1) == $SKIP_A ]] ; then
|
||||
echo "$PTAG SKIPPED (previous phases not complete)"
|
||||
return
|
||||
fi
|
||||
|
||||
# file paths
|
||||
OUTPUT=outputs/$TAG.txt
|
||||
DIFF=outputs/$TAG.diff
|
||||
EXPECT=expected/$TAG.txt
|
||||
VALGRND=valgrind/$TAG.txt
|
||||
|
||||
SARGS="-s 1"
|
||||
# run test and compare output to the expected version
|
||||
if [[ $TAG == "A_threads" ]] ; then
|
||||
SARGS="-t ${SARGS}0"
|
||||
fi
|
||||
if [[ $(echo $TAG | cut -d'_' -f1) == 'D' ]] ; then
|
||||
$EXE $SARGS >"$OUTPUT" 2>/dev/null &
|
||||
else
|
||||
$EXE $SARGS >/dev/null 2>&1 &
|
||||
fi
|
||||
sleep .5
|
||||
if [[ $TAG == "A_threads" ]] ; then
|
||||
./threads 2>/dev/null >"$OUTPUT"
|
||||
elif [[ $(echo $TAG | cut -d'_' -f1) == 'D' ]] ; then
|
||||
./client $ARGS >/dev/null 2>&1
|
||||
else
|
||||
./client $ARGS 2>/dev/null >"$OUTPUT"
|
||||
fi
|
||||
sleep 1.5
|
||||
|
||||
diff -u "$OUTPUT" "$EXPECT" >"$DIFF"
|
||||
if [ -s "$DIFF" ]; then
|
||||
|
||||
if [[ $TAG == "A_threads" ]] ; then
|
||||
echo "$PTAG FAIL - Command line: $EXE $SARGS ; ./threads $ARGS"
|
||||
else
|
||||
echo "$PTAG FAIL - Command line: $EXE $SARGS ; ./client $ARGS"
|
||||
fi
|
||||
if [[ $(echo $PTAG | cut -d'_' -f1) == 'D' ]] ; then
|
||||
SKIP_C="C"
|
||||
SKIP_B="B"
|
||||
SKIP_A="A"
|
||||
elif [[ $(echo $PTAG | cut -d'_' -f1) == 'C' ]] ; then
|
||||
SKIP_B="B"
|
||||
SKIP_A="A"
|
||||
elif [[ $(echo $PTAG | cut -d'_' -f1) == 'B' ]] ; then
|
||||
SKIP_A="A"
|
||||
fi
|
||||
else
|
||||
echo "$PTAG pass"
|
||||
fi
|
||||
|
||||
# run valgrind
|
||||
#valgrind $EXE -s 2 >"$VALGRND" 2>&1 &
|
||||
#sleep 1
|
||||
#./client $ARGS >/dev/null 2>&1
|
||||
#sleep 2
|
||||
}
|
||||
|
||||
# initialize output folders
|
||||
mkdir -p outputs
|
||||
mkdir -p valgrind
|
||||
rm -f outputs/* valgrind/*
|
||||
|
||||
# run individual tests
|
||||
source itests.include
|
||||
|
||||
# check for memory leaks
|
||||
#LEAK=`cat valgrind/*.txt | grep 'definitely lost' | grep -v ' 0 bytes in 0 blocks'`
|
||||
#LEAK=
|
||||
#if [ -z "$LEAK" ]; then
|
||||
# echo "No memory leak found."
|
||||
#else
|
||||
# echo "Memory leak(s) found. See files listed below for details."
|
||||
# grep 'definitely lost' valgrind/*.txt | sed -e 's/:.*$//g' | sed -e 's/^/ - /g'
|
||||
#fi
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# list of integration tests
|
||||
# format: run_test <TAG> <ARGS>
|
||||
# <TAG> used as the root for all filenames (i.e., "expected/$TAG.txt")
|
||||
# <ARGS> command-line arguments to test
|
||||
|
||||
run_test D_eth_disc "data/eth-disc"
|
||||
run_test D_ieee_req "data/ieee-req"
|
||||
|
||||
run_test C_eth_dhcp "data/eth-dhcp"
|
||||
run_test C_arc_two "data/arc-two"
|
||||
run_test C_multi "data/multi-dhcp"
|
||||
#run_test C_arc_bad "data/arc-req-bad"
|
||||
|
||||
run_test B_ieee_release "data/ieee-release"
|
||||
run_test B_arc_two "data/arc-two-rel"
|
||||
run_test B_frame_interleave "data/frame-inter"
|
||||
run_test B_fibre_repeat "data/fibre-repeat"
|
||||
run_test B_multi_reuse "data/multi-reuse"
|
||||
run_test B_multi_release "data/multi-release"
|
||||
|
||||
run_test A_threads ""
|
||||
@@ -0,0 +1,29 @@
|
||||
#include <arpa/inet.h>
|
||||
#include <assert.h>
|
||||
#include <check.h>
|
||||
#include <fcntl.h>
|
||||
#include <inttypes.h>
|
||||
#include <netdb.h>
|
||||
#include <netinet/in.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
|
||||
START_TEST (C_test_template)
|
||||
{
|
||||
int x = 5;
|
||||
int y = 5;
|
||||
ck_assert_int_eq (x, y);
|
||||
}
|
||||
END_TEST
|
||||
|
||||
void public_tests (Suite *s)
|
||||
{
|
||||
TCase *tc_public = tcase_create ("Public");
|
||||
tcase_add_test (tc_public, C_test_template);
|
||||
suite_add_tcase (s, tc_public);
|
||||
}
|
||||
|
||||
Executable
+53
@@ -0,0 +1,53 @@
|
||||
#!/bin/bash
|
||||
|
||||
STYLE="gnu"
|
||||
|
||||
IGNORE=()
|
||||
FAIL=0
|
||||
|
||||
function comp_file {
|
||||
|
||||
SRC=$1
|
||||
SRC_NAME=$2
|
||||
|
||||
# file paths
|
||||
FORMAT=ckstyle/${SRC_NAME}.$STYLE
|
||||
DIFF=ckstyle/${SRC_NAME}.diff
|
||||
|
||||
# run clang-format and compare results
|
||||
clang-format --style=$STYLE $source > $FORMAT
|
||||
diff -u $SRC $FORMAT >$DIFF
|
||||
|
||||
PTAG=$(printf '%-30s' "$SRC_NAME")
|
||||
if [ -s $DIFF ]; then
|
||||
echo "$PTAG FAIL (see $DIFF for details)"
|
||||
FAIL=1
|
||||
else
|
||||
echo "$PTAG pass"
|
||||
rm $DIFF
|
||||
fi
|
||||
rm $FORMAT
|
||||
}
|
||||
|
||||
mkdir -p ckstyle
|
||||
rm -f ckstyle/*
|
||||
|
||||
for source in $(ls ../*.c ../*.h) ; do
|
||||
SKIP=0
|
||||
src=$(basename $source)
|
||||
for ignore in ${IGNORE[*]} ; do
|
||||
if [ "$src" = "$ignore" ] ; then
|
||||
SKIP=1
|
||||
fi
|
||||
done
|
||||
if [ $SKIP = 0 ] ; then
|
||||
comp_file $source $src
|
||||
fi
|
||||
done
|
||||
|
||||
if [ $FAIL != 0 ] ; then
|
||||
echo "Code that does not adhere to GNU standards will not be accepted."
|
||||
echo "You must fix these files before submission."
|
||||
else
|
||||
echo "Code correctly adheres to required style."
|
||||
fi
|
||||
@@ -0,0 +1,32 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <check.h>
|
||||
|
||||
extern void public_tests (Suite *s);
|
||||
|
||||
Suite * test_suite (void)
|
||||
{
|
||||
Suite *s = suite_create ("Default");
|
||||
public_tests (s);
|
||||
return s;
|
||||
}
|
||||
|
||||
void run_testsuite ()
|
||||
{
|
||||
Suite *s = test_suite ();
|
||||
SRunner *sr = srunner_create (s);
|
||||
srunner_run_all (sr, CK_NORMAL);
|
||||
srunner_free (sr);
|
||||
}
|
||||
|
||||
int main (void)
|
||||
{
|
||||
srand((unsigned)time(NULL));
|
||||
run_testsuite ();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user