Update of /cvsroot/dhcp-agent/dhcp-agent
In directory usw-pr-cvs1:/tmp/cvs-serv15702
Modified Files:
TODO dhcp-client.c
Log Message:
fix to make -v (version) work :)
Index: TODO
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/TODO,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** TODO 11 Jun 2002 01:50:27 -0000 1.21
--- TODO 11 Jun 2002 02:05:52 -0000 1.22
***************
*** 85,87 ****
-- the rawnet routines should be a shared library due to too many
dependencies. the sniffer for example, only needs the packet
! parsing routines.
--- 85,89 ----
-- the rawnet routines should be a shared library due to too many
dependencies. the sniffer for example, only needs the packet
! parsing routines.
! -- dhcpsniff needs as brief mode as well as some fixes to its
! current output (timestamps aren't looking too good)
Index: dhcp-client.c
===================================================================
RCS file: /cvsroot/dhcp-agent/dhcp-agent/dhcp-client.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** dhcp-client.c 11 Jun 2002 01:50:27 -0000 1.25
--- dhcp-client.c 11 Jun 2002 02:05:52 -0000 1.26
***************
*** 519,526 ****
do_change_work_dir();
- if(interface == NULL) /* get interface if not specified. */
- interface = get_interface[command_code]();
! if(interface == NULL) {/* if we were unable to attain an interface. */
error_message("unable to retrieve suitable interface");
error_message("for this operation: %s", command_string[command_code]);
--- 519,531 ----
do_change_work_dir();
! /* get interface if not specified. */
! if(interface == NULL) {
! if(get_interface[command_code] != NULL)
! interface = get_interface[command_code]();
! }
!
! if(interface == NULL && command_code != DO_VERSION) {
! /* if we were unable to attain an interface. */
error_message("unable to retrieve suitable interface");
error_message("for this operation: %s", command_string[command_code]);
|