summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2003-04-14Defer incrementing ntransmitted until we are sure sendto succeeds.Chad Loder
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-14Unlink FIFO and pid files on clean shutdown. PR#3199Hakan Olsson
2003-04-14More snprintf styleHakan Olsson
2003-04-14permit -s0. from Maxim KonovalovJun-ichiro itojun Hagino
2003-04-14A "%d" is 12 chars, not 10. Use sizeof num instead of '10' inHakan Olsson
snprintf. From Theo.
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-09Less noise for missing crl dir, demoted to debug message.Hakan Olsson
2003-04-09on "pfctl -vvss", print the anchor rule number when there is one.Cedric Berger
ok dhartmei@ henning@
2003-04-09document that rewind/eject features of tape devices depend on name ofJason McIntyre
tape device; reference st(4) for an explanation. diff from Olivier Cherrier; ok millert@
2003-04-08missing .Fl macro for -a option;Jason McIntyre
2003-04-08fix null deref in error sysloggingMichael Shalayeff
2003-04-07strlcat; ok millertTheo de Raadt
2003-04-07strlcat, and it counted srclen, not dstlen; ok millertTheo de Raadt
2003-04-07Catch and refuse invalid icmp codes (> 255). ok pb@, mpech@.Daniel Hartmeier
2003-04-06strcat->strlcat, ho@ okAnil Madhavapeddy
2003-04-06strcpy/strcat -> strlcpy/strlcat conversion; henning@, tedu@ okAnil Madhavapeddy
2003-04-06string handling; ok millertTheo de Raadt
2003-04-05ease netmask handling a bitHenning Brauer
input theo, ok dhartmei@
2003-04-05o replace a strncpy + manual NUL terminate w/ strlcpyTodd C. Miller
o remove NUL termination of d_packname since it is not needed. krw@ OK
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-04simple string fixes; ok matthieu tedu tdevalTheo de Raadt
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@