*** From dhcp-server -- To unsubscribe, see the end of this message. ***

> lease 172.16.100.197 {
>         starts 4 1999/05/20 07:31:41;
>         ends 4 1999/05/20 07:31:41;
>         hardware ethernet 00:c0:4f:9c:56:f6;
>         uid 01:00:c0:4f:9c:56:f6;
>         client-hostname "DRIFT-3";
> }

Buggy client?   Or a client that's sent a DHCPRELEASE?   It's hard to
say how this happened without seeing the accompanying log and maybe a
packet trace.   And I don't know why changing the default-lease-time
to a lower number would change things.

> Remember we discussed the fixed-address in dhcp-3.0-alpha-19990507 didn't
> work with ncd terminal and it did with V2.0b1pl27 and you said you'd
> correct it ? Any time plan ?
> Sorry to keep bugging  you but I really need it and can't fixit my self.

Gack!   Patch included below.   Sorry about the delay!

                               _MelloN_

Index: bootp.c
===================================================================
RCS file: /proj/src/isc/cvs-1/DHCP/server/bootp.c,v
retrieving revision 1.45
diff -c -r1.45 bootp.c
*** bootp.c     1999/04/12 22:15:38     1.45
--- bootp.c     1999/05/20 19:24:23
***************
*** 127,133 ****
        
        /* Drop the request if it's not allowed for this client. */
        if (evaluate_boolean_option_cache (packet, options,
!                                          lookup_option (&dhcp_universe,
                                                          options,
                                                          SV_ALLOW_BOOTP))) {
                log_info ("%s: bootp disallowed", msgbuf);
--- 127,133 ----
        
        /* Drop the request if it's not allowed for this client. */
        if (evaluate_boolean_option_cache (packet, options,
!                                          lookup_option (&server_universe,
                                                          options,
                                                          SV_ALLOW_BOOTP))) {
                log_info ("%s: bootp disallowed", msgbuf);
***************
*** 136,142 ****
        } 
  
        if (evaluate_boolean_option_cache (packet, options,
!                                          lookup_option (&dhcp_universe,
                                                          options,
                                                          SV_ALLOW_BOOTING))) {
                log_info ("%s: booting disallowed", msgbuf);
--- 136,142 ----
        } 
  
        if (evaluate_boolean_option_cache (packet, options,
!                                          lookup_option (&server_universe,
                                                          options,
                                                          SV_ALLOW_BOOTING))) {
                log_info ("%s: booting disallowed", msgbuf);
***************
*** 154,160 ****
        if (!packet -> options_valid &&
            !(evaluate_boolean_option_cache
              (packet, options,
!              lookup_option (&dhcp_universe, options,
                              SV_ALWAYS_REPLY_RFC1048)))) {
                memcpy (outgoing.raw -> options,
                        packet -> raw -> options, DHCP_OPTION_LEN);
--- 154,160 ----
        if (!packet -> options_valid &&
            !(evaluate_boolean_option_cache
              (packet, options,
!              lookup_option (&server_universe, options,
                              SV_ALWAYS_REPLY_RFC1048)))) {
                memcpy (outgoing.raw -> options,
                        packet -> raw -> options, DHCP_OPTION_LEN);
***************
*** 206,212 ****
  
        /* Figure out the address of the next server. */
        memset (&d1, 0, sizeof d1);
!       oc = lookup_option (&dhcp_universe, options, SV_NEXT_SERVER);
        if (oc &&
            evaluate_option_cache (&d1, packet, options, oc)) {
                /* If there was more than one answer, take the first. */
--- 206,212 ----
  
        /* Figure out the address of the next server. */
        memset (&d1, 0, sizeof d1);
!       oc = lookup_option (&server_universe, options, SV_NEXT_SERVER);
        if (oc &&
            evaluate_option_cache (&d1, packet, options, oc)) {
                /* If there was more than one answer, take the first. */
***************
*** 224,230 ****
        raw.giaddr = packet -> raw -> giaddr;
  
        /* Figure out the filename. */
!       oc = lookup_option (&dhcp_universe, options, SV_FILENAME);
        if (oc &&
            evaluate_option_cache (&d1, packet, options, oc)) {
                memcpy (raw.file, d1.data,
--- 224,230 ----
        raw.giaddr = packet -> raw -> giaddr;
  
        /* Figure out the filename. */
!       oc = lookup_option (&server_universe, options, SV_FILENAME);
        if (oc &&
            evaluate_option_cache (&d1, packet, options, oc)) {
                memcpy (raw.file, d1.data,
***************
*** 237,243 ****
                memcpy (raw.file, packet -> raw -> file, sizeof raw.file);
  
        /* Choose a server name as above. */
!       oc = lookup_option (&dhcp_universe, options, SV_SERVER_NAME);
        if (oc &&
            evaluate_option_cache (&d1, packet, options, oc)) {
                memcpy (raw.sname, d1.data,
--- 237,243 ----
                memcpy (raw.file, packet -> raw -> file, sizeof raw.file);
  
        /* Choose a server name as above. */
!       oc = lookup_option (&server_universe, options, SV_SERVER_NAME);
        if (oc &&
            evaluate_option_cache (&d1, packet, options, oc)) {
                memcpy (raw.sname, d1.data,
Index: dhcp.c
===================================================================
RCS file: /proj/src/isc/cvs-1/DHCP/server/dhcp.c,v
retrieving revision 1.90
diff -c -r1.90 dhcp.c
*** dhcp.c      1999/05/07 17:40:26     1.90
--- dhcp.c      1999/05/20 19:24:51
***************
*** 520,526 ****
        /* If a site option space has been specified, use that for
           site option codes. */
        i = SV_SITE_OPTION_SPACE;
!       if ((oc = lookup_option (&dhcp_universe, options, i)) &&
            evaluate_option_cache (&d1, packet, packet -> options, oc)) {
                struct universe *u;
                
--- 520,526 ----
        /* If a site option space has been specified, use that for
           site option codes. */
        i = SV_SITE_OPTION_SPACE;
!       if ((oc = lookup_option (&server_universe, options, i)) &&
            evaluate_option_cache (&d1, packet, packet -> options, oc)) {
                struct universe *u;
                
***************
*** 1409,1415 ****
        /* If we don't have a hostname yet, and we've been asked to do
           a reverse lookup to find the hostname, do it. */
        j = SV_GET_LEASE_HOSTNAMES;
!       if (!lookup_option (&dhcp_universe, state -> options, i) &&
            (evaluate_boolean_option_cache
             (packet, packet -> options,
              lookup_option (&server_universe, state -> options, j)))) {
--- 1409,1415 ----
        /* If we don't have a hostname yet, and we've been asked to do
           a reverse lookup to find the hostname, do it. */
        j = SV_GET_LEASE_HOSTNAMES;
!       if (!lookup_option (&server_universe, state -> options, i) &&
            (evaluate_boolean_option_cache
             (packet, packet -> options,
              lookup_option (&server_universe, state -> options, j)))) {
***************
*** 1491,1497 ****
        /* If a site option space has been specified, use that for
           site option codes. */
        i = SV_SITE_OPTION_SPACE;
!       if ((oc = lookup_option (&dhcp_universe, state -> options, i)) &&
            evaluate_option_cache (&d1, packet, state -> options, oc)) {
                struct universe *u;
                
--- 1491,1497 ----
        /* If a site option space has been specified, use that for
           site option codes. */
        i = SV_SITE_OPTION_SPACE;
!       if ((oc = lookup_option (&server_universe, state -> options, i)) &&
            evaluate_option_cache (&d1, packet, state -> options, oc)) {
                struct universe *u;
                


------------------------------------------------------------------------------
To unsubscribe from this list, please visit http://www.fugue.com/dhcp/lists
If you are without web access, or if you are having trouble with the web page,
please send mail to [EMAIL PROTECTED]   Please try to use the web
page first - it will take a long time for your request to be processed by hand.

Archives for this mailing list are available at 
http://www.webnology.com/list-archives/dhcp/dhcp-server

------------------------------------------------------------------------------

Reply via email to