On Wed, Jun 13, 2001 at 03:21:26AM +0200, Andi Kleen wrote:
> On Wed, Jun 06, 2001 at 08:11:45PM +0200, Richard Guy Briggs wrote:
> > Hi again,
> >
> > If this is an FAQ, can someone point me to the reasons that skb_push()
> > and skb_put() panic rather than dropping the skb and complaining in the
> > log?
> >
> > If not, why does it do that?
>
> Because an overflow or underflow is always a bug in the code. If you're
> not sure if the skb has enough room you have to use *_expand_headroom and
> friends.
...so checking for it is considered debugging code and thus, overhead
that need not be in a production system?
> -Andi
>
> --
> Life would be so much easier if we could just look at the source code.
slainte mhath, RGB
--
Richard Guy Briggs -- PGP key available Auto-Free Ottawa! Canada
<www.conscoop.ottawa.on.ca/rgb/> <www.flora.org/afo/>
Prevent Internet Wiretapping! -- FreeS/WAN:<www.freeswan.org>
Thanks for voting Green! -- <green.ca> Marillion:<www.marillion.co.uk>
|