Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Dec 1998 19:30:10 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        ache@nagual.pp.ru, dillon@apollo.backplane.com
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG
Subject:   Re: cvs commit: src/sys/netinet icmp_var.h ip_icmp.c tcp_input.c udp_usrreq.c
Message-ID:  <199812040830.TAA13675@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>:>   Modified files:
>:>     sys/netinet          icmp_var.h ip_icmp.c tcp_input.c 
>:>                          udp_usrreq.c 
>:
>:Please remove or #ifdef KERNEL
>:#include "opt_icmp_bandlim.h"
>:from icmp_var.h, this file sometimes used in userland applications which
>:are broken now.
>:Function badport_badlim should also be removed of KERNEL #ifdefed.
>:
>:Basically I dislike idea of touching icmp_var.h at all, could you add
>:separate include file for this stuff, please?
>
>    I'll add the #ifdef KERNEL.  I'd gladly move everything out of
>    icmp_var.h if you tell me how to deal with the sysctl initialization 
>    (can I just use the AUTO mode and get rid of the ICMPCTL_MAXID and 
>    ICMP_BANDLI<_INFO junk?) and where to put the badport_bandlim() extern.

Rules for avoiding messes like this:
- Options headers shall never be included in headers.
- Always use OID_AUTO for new sysctls.  (XXX_MAXID and XXX_NAMES
  definitions are never used, so even if you don't use OID_AUTO, the
  only reason to add them is for BSD4.4 compatibility in case we decide
  to throw out phk's reimplementation of sysctl).

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812040830.TAA13675>