I wish to cause ipdivert.ko to load at boot time. Currently, ipfw.ko loads
correctly at boot time with ipfw_load="YES" in /boot/loader.conf, but
ipdivert.ko does not load at boot time with ipdivert_load="YES". I'm able to
load it using kldload, though. dmesg doesn't seem to be giving any clues as
to why ipdivert won't load... What am I doing wrong?

Regards, Sebastian Ramadan.
My uname -a, /boot/loader.conf, kldstat and a successful load of ipdivert
using kldload after boot time:
domU-12-31-39-02-15-3A# uname -a
FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb
21 20:13:46 UTC 2011
r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN
i386
domU-12-31-39-02-15-3A# cat /boot/loader.conf
ipfw_load="YES"
ipdivert_load="YES"
domU-12-31-39-02-15-3A# kldstat
Id Refs Address    Size     Name
 1    8 0xc0000000 40000000 kernel
 2    1 0xc2bb3000 10000    ext2fs.ko
 3    1 0xc2d1f000 11000    ipfw.ko
 4    1 0xc2d30000 d000     libalias.ko
domU-12-31-39-02-15-3A# uname -a
FreeBSD domU-12-31-39-02-15-3A 8.2-RELEASE FreeBSD 8.2-RELEASE #13: Mon Feb
21 20:13:46 UTC 2011
r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN
i386
domU-12-31-39-02-15-3A# kldload ipdivert
domU-12-31-39-02-15-3A# kldstat
Id Refs Address    Size     Name
 1   10 0xc0000000 40000000 kernel
 2    1 0xc2bb3000 10000    ext2fs.ko
 3    2 0xc2d1f000 11000    ipfw.ko
 4    1 0xc2d30000 d000     libalias.ko
 5    1 0xc3cc7000 4000     ipdivert.ko

My dmesg:
domU-12-31-39-02-15-3A# dmesg
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-RELEASE #13: Mon Feb 21 20:13:46 UTC 2011
    r...@chch.daemonology.net:/usr/obj/i386/usr/src/sys/XEN i386
Xen reported: 2599.998 MHz processor.
Timecounter "ixen" frequency 1953125 Hz quality 0
CPU: Dual-Core AMD Opteron(tm) Processor 2218 HE (2600.00-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40f13  Family = f  Model = 41  Stepping =
3

Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
Data TLB: 32 entries, fully associative
Instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way
associative
L2 internal cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 8-way
associative
real memory  = 644874240 (615 MB)
Physical memory chunk(s):
0x000000000062a000 - 0x0000000025b4dfff, 626147328 bytes (152868 pages)
avail memory = 623058944 (594 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
io: <I/O>
mem: <memory>
Pentium Pro MTRR support enabled
random: <entropy source, Software, Yarrow>
null: <null device, zero device>
nfslock: pseudo-device
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: <Xen Hypervisor Clock> on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 1000000us)
xs_probe: Probe retuns 0
xenstore0: <XenStore> on motherboard
Grant table initialized
xc0: <Xen Console> on motherboard
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
[XEN] hypervisor wallclock nudged; nudging TOD.
lo0: bpf attached
xenbusb_front0: <Xen Frontend Devices> on xenstore0
xn0: <Virtual Network Interface> at device/vif/0 on xenbusb_front0
xn0: bpf attached
xn0: Ethernet address: 12:31:39:02:15:3a
xenbusb_back0: <Xen Backend Devices> on xenstore0
xctrl0: <Xen Control Device> on xenstore0
xbd0: 1024MB <Virtual Block Device> at device/vbd/2049 on xenbusb_front0
xbd0: attaching as da0
GEOM: new disk da0
xbd1: 9216MB <Virtual Block Device> at device/vbd/2064 on xenbusb_front0
xbd1: attaching as da1
GEOM: new disk da1
Trying to mount root from ufs:da1s1
rtc0: [XEN] xen_rtc_gettime
rtc0: [XEN] xen_rtc_gettime: wallclock 1290456569 sec; 919153165 nsec
rtc0: [XEN] xen_rtc_gettime: uptime 11380100 sec; 82341069 nsec
rtc0: [XEN] xen_rtc_gettime: TOD 1301836670 sec; 1494234 nsec
start_init: trying /sbin/init
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based
forwarding disabled, default to deny, logging disabled
ipfw0: bpf attached
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to