changeset 75:cb3acf4f0411 draft

When MTU is less than 576 we now ignore it instead of setting the MTU to 576.
author Roy Marples <roy@marples.name>
date Fri, 23 Mar 2007 10:02:02 +0000
parents 5d21af7476c7
children 7eccf5c307df
files ChangeLog dhcp.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 04 15:08:21 2007 +0000
+++ b/ChangeLog	Fri Mar 23 10:02:02 2007 +0000
@@ -1,4 +1,5 @@
 When we get an invalid length for a DHCP option, try and continue anyway.
+When MTU is less than 576 we now ignore it instead of setting the MTU to 576.
 
 dhcpcd-3.0.16
 RFC 2131 is full of confusion regarding MTU it seems as the effective minimum
--- a/dhcp.c	Sun Mar 04 15:08:21 2007 +0000
+++ b/dhcp.c	Fri Mar 23 10:02:02 2007 +0000
@@ -611,8 +611,8 @@
 	     In practise it's 576 (minimum maximum message size) */
 	  if (dhcp->mtu < MTU_MIN)
 	    {
-	      logger (LOG_ERR, "given MTU %d is too low, minium is %d", dhcp->mtu, MTU_MIN);
-	      dhcp->mtu = MTU_MIN;
+	      logger (LOG_DEBUG, "MTU %d is too low, minium is %d; ignoring", dhcp->mtu, MTU_MIN);
+	      dhcp->mtu = 0;
 	    }
 	  break;