diff options
author | brian <brian@FreeBSD.org> | 1999-08-06 13:53:03 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-08-06 13:53:03 +0000 |
commit | 29c67703e3751c283a1bdfe7764effe015c13b83 (patch) | |
tree | ef1e40a5b9d87f3d7f7d7336ae7dc5a534520d3d /sys/net/if_var.h | |
parent | df1c1756e31202c817f6c35422ebc847da176a0a (diff) | |
download | FreeBSD-src-29c67703e3751c283a1bdfe7764effe015c13b83.zip FreeBSD-src-29c67703e3751c283a1bdfe7764effe015c13b83.tar.gz |
Define IF_MAXMTU and IF_MINMTU and don't allow MTUs with
out-of-range values.
``comparison is always 0'' warnings are silly !
Ok'd by: wollman, dg
Advised by: bde
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r-- | sys/net/if_var.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index 35780d6..8163f60 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)if.h 8.1 (Berkeley) 6/10/93 - * $Id: if_var.h,v 1.12 1999/05/06 18:12:55 peter Exp $ + * $Id: if_var.h,v 1.13 1999/05/16 17:09:20 pb Exp $ */ #ifndef _NET_IF_VAR_H_ @@ -231,6 +231,14 @@ int if_enq_drop __P((struct ifqueue *, struct mbuf *)); #endif #endif + +/* + * 72 was chosen below because it is the size of a TCP/IP + * header (40) + the minimum mss (32). + */ +#define IF_MINMTU 72 +#define IF_MAXMTU 65535 + #endif /* KERNEL */ /* |