[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[altq 1403] Kernel Panic



Hello all,
    I've recently been trying to get altq running on FreeBSD 4.5-STABLE.
I'm aware this is not supported, but having patched it there was only one
real problem (net/if.c). In my opinion it would not have caused problems,
 but I tried to manually fix it and would say I was successful.

But I still have the same problem, everytime I run   altqd   I get a kernel
panic. I can get around this with the -D option, and this is the result I
get:

[root@gemini ~]# altqd -D -v -f ./altq-3.1/altqd/altq.conf.samples/hfsc.lo0
Debug mode set.
ALTQ config file is ./altq-3.1/altqd/altq.conf.samples/hfsc.lo0
tbr installed on lo0 (rate:300.00M  size:35.16K)
qname doesn't match the interface
Error in ./altq-3.1/altqd/altq.conf.samples/hfsc.lo0, line 13.  config
failed.
[root@gemini ~]# altqd -D -v -f ./altq-3.1/altqd/altq.conf.samples/cbq.lo0
Debug mode set.
ALTQ config file is ./altq-3.1/altqd/altq.conf.samples/cbq.lo0
tbr installed on lo0 (rate:300.00M  size:35.16K)
qname doesn't match the interface
Error in ./altq-3.1/altqd/altq.conf.samples/cbq.lo0, line 2.  config failed.

What might be the cause of this ?


[root@gemini ~]# cat /usr/src/sys-altq/net/if.c.rej
***************
*** 772,777 ****
         */
        s = splnet();
        if_down(ifp);

        /*
         * Remove address from ifnet_addrs[] and maybe decrement if_index.
--- 783,794 ----
         */
        s = splnet();
        if_down(ifp);
+ #ifdef ALTQ
+       if (ALTQ_IS_ENABLED(&ifp->if_snd))
+               altq_disable(&ifp->if_snd);
+       if (ALTQ_IS_ATTACHED(&ifp->if_snd))
+               altq_detach(&ifp->if_snd);
+ #endif

        /*
         * Remove address from ifnet_addrs[] and maybe decrement if_index.
[root@gemini ~]#

That was the problem, and I know very little of coding, but I cant see
that causing this, I manually entered the lines later, and still have the
same
problem. (It was just the wrong line number as far as I can tell).

I have the the altq options compiled in my kernel (other than no_pcc and
NATM)

Any help would be much appreciated.

Thanks,
Dave Raven.