From e7b01ab48c581326bfc35032060cc9a24ccaf48a Mon Sep 17 00:00:00 2001 From: Ted Lemon Date: Sun, 25 Feb 1996 21:29:05 +0000 Subject: [PATCH] Remove dump_packet function (moved to print.c) --- dhcpd.c | 36 ------------------------------------ server/dhcpd.c | 36 ------------------------------------ 2 files changed, 72 deletions(-) diff --git a/dhcpd.c b/dhcpd.c index f39903e1..480ee25f 100644 --- a/dhcpd.c +++ b/dhcpd.c @@ -251,42 +251,6 @@ void do_packet (packbuf, len, from_port, from, sock) } } -void dump_packet (tp) - struct packet *tp; -{ - struct dhcp_packet *tdp = tp -> raw; - - debug ("op = %d htype = %d hlen = %d hops = %d", - tdp -> op, tdp -> htype, tdp -> hlen, tdp -> hops); - debug ("xid = %x secs = %d flags = %x", - tdp -> xid, tdp -> secs, tdp -> flags); - debug ("ciaddr = %s yiaddr = %s", - inet_ntoa (tdp -> ciaddr), inet_ntoa (tdp -> yiaddr)); - debug ("siaddr = %s giaddr = %s", - inet_ntoa (tdp -> siaddr), inet_ntoa (tdp -> giaddr)); - debug ("chaddr = %02.2x:%02.2x:%02.2x:%02.2x:%02.2x:%02.2x", - ((unsigned char *)(tdp -> chaddr)) [0], - ((unsigned char *)(tdp -> chaddr)) [1], - ((unsigned char *)(tdp -> chaddr)) [2], - ((unsigned char *)(tdp -> chaddr)) [3], - ((unsigned char *)(tdp -> chaddr)) [4], - ((unsigned char *)(tdp -> chaddr)) [5]); - debug ("filename = %s\n", tdp -> file); - debug ("server_name = %s\n", tdp -> sname); - if (tp -> options_valid) { - int i; - - for (i = 0; i < 256; i++) { - if (tp -> options [i].data) - printf (" %s = %s\n", - dhcp_options [i].name, - pretty_print_option - (i, tp -> options [i].data, - tp -> options [i].len)); - } - } -} - /* Based on the contents of packet, figure out which interface address to use from server_addrlist. Currently just picks the first interface. */ diff --git a/server/dhcpd.c b/server/dhcpd.c index f39903e1..480ee25f 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -251,42 +251,6 @@ void do_packet (packbuf, len, from_port, from, sock) } } -void dump_packet (tp) - struct packet *tp; -{ - struct dhcp_packet *tdp = tp -> raw; - - debug ("op = %d htype = %d hlen = %d hops = %d", - tdp -> op, tdp -> htype, tdp -> hlen, tdp -> hops); - debug ("xid = %x secs = %d flags = %x", - tdp -> xid, tdp -> secs, tdp -> flags); - debug ("ciaddr = %s yiaddr = %s", - inet_ntoa (tdp -> ciaddr), inet_ntoa (tdp -> yiaddr)); - debug ("siaddr = %s giaddr = %s", - inet_ntoa (tdp -> siaddr), inet_ntoa (tdp -> giaddr)); - debug ("chaddr = %02.2x:%02.2x:%02.2x:%02.2x:%02.2x:%02.2x", - ((unsigned char *)(tdp -> chaddr)) [0], - ((unsigned char *)(tdp -> chaddr)) [1], - ((unsigned char *)(tdp -> chaddr)) [2], - ((unsigned char *)(tdp -> chaddr)) [3], - ((unsigned char *)(tdp -> chaddr)) [4], - ((unsigned char *)(tdp -> chaddr)) [5]); - debug ("filename = %s\n", tdp -> file); - debug ("server_name = %s\n", tdp -> sname); - if (tp -> options_valid) { - int i; - - for (i = 0; i < 256; i++) { - if (tp -> options [i].data) - printf (" %s = %s\n", - dhcp_options [i].name, - pretty_print_option - (i, tp -> options [i].data, - tp -> options [i].len)); - } - } -} - /* Based on the contents of packet, figure out which interface address to use from server_addrlist. Currently just picks the first interface. */