[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 921] openbsd newbie building altq
Hi Kenjiro
I'm a newbie in OpenBSD and I would like to limit internal
interfaces of a pc-router to limit the incoming traffic from the
internet
to the clients behind the pc-router. Is this a good way with ALTQ ???
I tried to apply the altq_conf.c patch but some errors ocurred :
# pwd
/usr/src/sys-altq/altq
# patch -p0 < /root/altq-3.0/altq_conf.c.diff
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- altq_conf.c- Thu Jun 21 20:29:18 2001
|+++ altq_conf.c Thu Jun 21 20:29:01 2001
--------------------------
Patching file altq_conf.c using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 24.
Hunk #3 failed at 178.
1 out of 3 hunks failed--saving rejects to altq_conf.c.rej
done
#
After when compiling, I got an error too:
this is my ALTQ kernel conf file, with the include of my old kernel conf
file "www3"
# more ../../conf/ALTQ
include "arch/i386/conf/www3"
# a pseudo device needed for ALTQ
pseudo-device altq # altq pseudo-device
# ALTQ options
options ALTQ #alternate queueing
options ALTQ_CBQ #class based queueing
options ALTQ_WFQ #weighted fair queueing
options ALTQ_FIFOQ #fifo queueing
options ALTQ_RED #random early detection
#options ALTQ_FLOWVALVE #flowvalve for RED (needs RED)
options ALTQ_RIO #triple red for diffserv (needs RED)
#options ALTQ_LOCALQ #local use
options ALTQ_HFSC #hierarchical fair service curve
#options ALTQ_ECN #ecn extention to tcp (needs RED)
#options ALTQ_IPSEC #check ipsec in IPv4
options ALTQ_CDNR #diffserv traffic conditioner
#options ALTQ_BLUE #blue by wu-chang feng
options ALTQ_PRIQ #priority queue
#options ALTQ_NOPCC #don't use processor cycle counter
#options ALTQ_DEBUG #for debugging
#
And these are the errors when compiling...
cc -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wno-uninitialized -Wno-format -Wno-main -nostd
inc -I. -I/usr/src/sys-altq/arch/i386/compile/ALTQ/../../../../arch
-I/usr/src/sys-altq/arch/i386/compile/ALTQ/..
/../../.. -DI386_CPU -DI486_CPU -DI586_CPU -DI686_CPU -DGPL_MATH_EMULATE
-DUVM -DXSERVER -DAPERTURE -DDUMMY_NOPS
-DCOMPAT_SVR4 -DCOMPAT_IBCS2 -DCOMPAT_LINUX -DCOMPAT_FREEBSD
-DCOMPAT_BSDOS -DPCIVERBOSE -DEISAVERBOSE -DUSBVERBO
SE -DWSDISPLAY_COMPAT_USL -DWSDISPLAY_COMPAT_RAWKBD
-DWSDISPLAY_DEFAULTSCREENS="6" -DWSDISPLAY_COMPAT_PCVT -DTIME
ZONE="-3" -DDST="0" -DNTP -DSWAPPAGER -DDEVPAGER -DDDB -DDIAGNOSTIC
-DKTRACE -DKMEMSTATS -DCRYPTO -DSYSVMSG -DSYS
VSEM -DSYSVSHM -DUVM_SWAP_ENCRYPT -DCOMPAT_11 -DCOMPAT_43 -DLKM -DFFS
-DFFS_SOFTUPDATES -DQUOTA -DEXT2FS -DMFS -D
TCP_SACK -DNFSCLIENT -DNFSSERVER -DCD9660 -DMSDOSFS -DFDESC -DFIFO
-DKERNFS -DNULLFS -DPORTAL -DPROCFS -DUMAPFS -
DUNION -DGATEWAY -DINET -DPULLDOWN_TEST -DIPSEC -DKEY -DIPFILTER
-DIPFILTER_LOG -DPPP_BSDCOMP -DPPP_DEFLATE -DMRO
UTING -DBOOT_CONFIG -DALTQ -DALTQ_CBQ -DALTQ_WFQ -DALTQ_FIFOQ -DALTQ_RED
-DALTQ_RIO -DALTQ_HFSC -DALTQ_CDNR -DALT
Q_PRIQ -D_KERNEL -Di386 -c
/usr/src/sys-altq/arch/i386/compile/ALTQ/../../../../net/if_strip.c
/usr/src/sys-altq/arch/i386/compile/ALTQ/../../../../net/if_strip.c: In
function `stripoutput':
/usr/src/sys-altq/arch/i386/compile/ALTQ/../../../../net/if_strip.c:857:
`error' undeclared (first use in this fu
nction)
/usr/src/sys-altq/arch/i386/compile/ALTQ/../../../../net/if_strip.c:857:
(Each undeclared identifier is reported
only once
/usr/src/sys-altq/arch/i386/compile/ALTQ/../../../../net/if_strip.c:857:
for each function it appears in.)
*** Error code 1
Stop in /usr/src/sys-altq/arch/i386/compile/ALTQ (line 1219 of
Makefile).
#
any suggestion?
Thank you very much, and sorry for my poor english.
Bye
--
_____________________________________________________________________
\_
\ Denys Sene dos Santos - sene@cptec.inpe.br
o/\_ http://www1.cptec.inpe.br/~sene/ - ICQ #31845401
<\__,\ Divisão de Supercomputação - Tel:(012)560-8458
">. | Centro de Previsao de Tempo e Estudos Climaticos - CPTEC
` .-| Instituto Nacional de Pesquisas Espaciais - MCT/INPE
. \ A happy Linux User #71117
. \
.-|