summaryrefslogtreecommitdiff
path: root/sbin/pfctl
AgeCommit message (Collapse)Author
2003-04-27Update the pfioc_table IOCTL structure.Cedric Berger
Prepare for anchors, improve robustness. WARNING: need to sync kernel/userland. ok dhartmei@
2003-04-25kill a workaround now that inet_net_pton acts reasonablyHenning Brauer
2003-04-25check asprintf return value for error as well, some implementations doPeter Valchev
not set the pointer to NULL necessarily; ok dhartmei, henning, kjell
2003-04-25Properly copy the second part of nat proxy port range, when specified.Daniel Hartmeier
ok henning@
2003-04-15display basic hfsc statsHenning Brauer
2003-04-15pass down the unparsed queue opts (struct node_queue_opt) toHenning Brauer
print_altq/print_hfsc -> print_hfsc_opts and extract struct node_hfsc_sc there for each service curve and pass those down to print_hfsc_sc. now bandwidth specifications in the service curves are printed correct in the case of a queue belonging to more than one interface/parent queue, the parent queues having different bandwidths and the bandwith on teh service curve beeing specified in percent.
2003-04-15make print_hfsc_sc() take an extra struct node_hfsc_sc parameter and printHenning Brauer
relative bandwidth specification if that ws given instead of the calculated absolute ones. to be used soon.
2003-04-15don't include the unit "ms" when printing the service curve; parser wantsHenning Brauer
raw number
2003-04-15factor out service curve printing to it's own function, print_hfsc_sc().Henning Brauer
2003-04-14if linkshare service curve m2 == bandwidth, but d given, we do need to printHenning Brauer
linkshare as it is not exactly the default case then
2003-04-14only print hfsc linkshare when it differs from the defaultHenning Brauer
2003-04-14do not add a realtime service curve to the root queue asKenjiro Cho
the realtime service is not hierarchically distributed. ok henning@
2003-04-14let print_altq and print_queue take a struct node_queue_bw parameter insteadHenning Brauer
of dintinct bw_percent
2003-04-13KNFHenning Brauer
2003-04-13prevent double service curve specificationHenning Brauer
2003-04-13add support for the HFSC linkshare, realtime, and upperlimit service curvesHenning Brauer
to be specified.
2003-04-13concistency in the print-funtions, here: HFSC uppercurve and bracketsHenning Brauer
2003-04-13unbreak (missing })Daniel Hartmeier
2003-04-13use pa->ifbandwidth instead of rate as reference bandwidth for the root queueHenning Brauer
2003-04-13say bye bye to hfscflags_list and hfscflags_itemHenning Brauer
welcome hfscopts_list and hfscopts_item, returning a full struct node_hfsc_opt instead of just an int for the flags. needed because of all the opts hfsc knows
2003-04-13process HFSC options for the linkshare, realtime and upperlimit service curvesHenning Brauer
2003-04-13break out bandwidth specification processing code to its own function, willHenning Brauer
be used in more places soonish
2003-04-13new struct node_hfsc_opts for, surprise, hfsc options. needed because theyHenning Brauer
contain bandwidth specifications and we need to carry the unprocessed bw specs around for quite some time until we can break them down to absolute values.
2003-04-13pass down the struct node_queue_opts from the altqif/queuespec yacc targetsHenning Brauer
to expand_altq/expand_queue -> eval_pfaltq/eval_pfqueue and further down to the new eval_queue_opts() instead of evaluating them directly in the yacc grammar. this will be needed to process the hfsc options which can contain relative bandwidth specifications, and we can't break them down to an absolute one earlier.
2003-04-13move the structs node_queue_bw and node_queue_opt to pfctl_parser.h.Henning Brauer
let eval_pfqueue() and eval_pfaltq() take a pointer to a struct node_queue_bw instead of two distince bw_absolute and bw_percent parameters.
2003-04-13move the bandwidth keyword from within the bandwidth target up to theHenning Brauer
queue_opts target so the bandwidth parser can be used for other things too; will be needed for hfsc's linkshare etc
2003-04-12initial support for the HFSC scheduler.Henning Brauer
whoever uses that for more than toying around is on drugs. it's far from done.
2003-04-12make the first queue id we assign 2 instead of 1, 1 is the default queue forHenning Brauer
HFSC
2003-04-12in check_commit_hfsc, don't check wether the default queue is a leaf queueHenning Brauer
when we have no default queue. avoids null pointer deref.
2003-04-12correctly make up the root queue in eval_pfqueue_hfscHenning Brauer
2003-04-12make print_*_opts() int instead of void where the return value indicatesHenning Brauer
wether it printed something or not, and use that to decide wether to print the scheduler name in the altq on .. case instead of checking flags again, which would be a horrible mess for hfsc with its tons of opts (checking flags is not enough there)
2003-04-12fix print_hfsc_opts to only print "hfsc( " and " )" when there are opts toHenning Brauer
print, so it behaves like the print_*_opts for the other schedulers
2003-04-12assign queue IDs for HFSC simimar to what we do for PRIQ and CBQHenning Brauer
2003-04-11KNFHenning Brauer
2003-04-11qname_to_qid and qname_to_pfaltq can be private functions now; nothingHenning Brauer
outside pfctl_altq.c uses them any more, nor should.
2003-04-11kill dead code.Henning Brauer
qid_to_qname is not used anywhere. moreover, I cannot think of any legitimate use; misuse is easy tho.
2003-04-11don't set r->qid and r->pqid in expand_rule any more, queue name -> queue IDHenning Brauer
mapping is done in kernel land now
2003-04-09on "pfctl -vvss", print the anchor rule number when there is one.Cedric Berger
ok dhartmei@ henning@
2003-04-07Catch and refuse invalid icmp codes (> 255). ok pb@, mpech@.Daniel Hartmeier
2003-04-05ease netmask handling a bitHenning Brauer
input theo, ok dhartmei@
2003-04-05allow queue specs to be limited to certain interfaces.Henning Brauer
altq on { $if0 $if1 $if2 $if3 } priq bandwidth 10Mb queue { one two } queue one priority 1 priq(default) queue two on $if0 priority 15 queue two on ! $if0 priority 0 ok dhartmei@
2003-04-05whitespace KNFHenning Brauer
2003-04-04clean up:Henning Brauer
instead of letting the lexer interpret '<' '>' '=' '>=' '<=' and return them as PF_OP_LT, PF_OP_GT etc etc etc in PORTUNARY, just let the lexer return '<' '>' and '=' literally, and in the few cases where the old PORTUNARY was really used like originally intended, replace that by a new unaryop yacc target. in all other cases that gets rid of quite some checks wether PORTUNARY is really < and nothing else etc etc etc. ok cedric@ deraadt@
2003-04-03Simplify pfctl printing code.Cedric Berger
ok dhartmei@ henning@
2003-04-03use a simple linear queue ID assignment algorithm for PRIQ like we do forHenning Brauer
cbq already. together with the previous change that means it is now possible to have differently named priq queues on different interfaces with the same priorities and packets end up in the right queues. ok dhartmei@ kjc@
2003-04-03Table stats are reliable now.Cedric Berger
2003-04-03explicitly include <sys/limits.h> for INT_MAX.Kenjiro Cho
2003-04-02no \n w/ errx(3), reminded by andrushockHenning Brauer
2003-04-02better error handlingHenning Brauer
2003-04-02better error messageHenning Brauer