[dhcp-agent-commits] dhcp-agent/src dhcp-print.c,1.6,1.7
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2003-06-27 23:11:32
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv11902/src Modified Files: dhcp-print.c Log Message: fixed up sniffer print routines Index: dhcp-print.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-print.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** dhcp-print.c 2 May 2003 02:34:42 -0000 1.6 --- dhcp-print.c 27 Jun 2003 23:11:29 -0000 1.7 *************** *** 508,512 **** memcpy(&val, data, 4); - val = ntohl(val); printf("%d", val); --- 508,511 ---- *************** *** 526,530 **** memcpy(&val, data, 4); - val = ntohl(val); printf("%u", val); --- 525,528 ---- *************** *** 544,548 **** memcpy(&val, data, 2); - val = ntohs(val); printf("%u", val); --- 542,545 ---- *************** *** 688,692 **** print_val += printf(": "); option_handlers[tag].handle_option(dhcp_opt_get_host_data(option), ! dhcp_opt_get_mem_len(option), print_val); printf("\n"); --- 685,689 ---- print_val += printf(": "); option_handlers[tag].handle_option(dhcp_opt_get_host_data(option), ! dhcp_opt_get_total_len(option), print_val); printf("\n"); |