summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2002-12-09allow setting of ifcost with brconfig. enables selection of preferredMarkus Friedl
port/path to root bridge among several LANs. unlike ifpriority, which allows you to select designated port if serveral interfaces belong to the same LAN; ok jason@
2002-12-09do not allow redefinitions in variable option blocks; henning okTheo de Raadt
2002-12-08strncpy is evil.Henning Brauer
2002-12-08GNU semantics say that if optstring begins with '-' thenTodd C. Miller
each non-option shall be treated as arguments to option '\1'. BSD getopt match '-' in optstring with a '-' on the command line. This is used to support deprecated options like "su -" that would otherwise prevent the use of getopt(). Resolving this simply requires that the leading '-' be moved somewhere else (I moved it to the end of optstring) since position within optstring is not meaningful.
2002-12-08allow flexible options order like Theo did for rules.Henning Brauer
idea, lots of input, motivation and ok deraadt@ ATTENTION: this changes the syntax. the "scheduler" keyword is gone now. old: altq on $interface scheduler cbq ... new: altq on $interface cbq ...
2002-12-07Support parameters in anchor rules. Allows conditional evaluation, like:Daniel Hartmeier
anchor spews inet proto tcp from any to any port smtp ok deraadt
2002-12-07more KNFHenning Brauer
2002-12-07KNFHenning Brauer
2002-12-07TAILQ_INSERT_TAIL instead of TAILQ_INSERT_HEAD. Makes addresses printRyan Thomas McBride
out in correct order when getting rules from kernel (affects pfctl -s). ok henning@
2002-12-07shadow cleanupHenning Brauer
ok mcbride@ frantzen@
2002-12-07kill an unused param to lungetcHenning Brauer
2002-12-07KNFHenning Brauer
2002-12-07get the interface's MTU instead of assuming 1500Henning Brauer
2002-12-07Convert the hash of a string key to network byte order. Makes regressionRyan Thomas McBride
work on all platforms. Bug found by dhartmei@ ok dhartmei@ henning@
2002-12-06Set transform from default. PR#3008Hakan Olsson
2002-12-06fix linebreak in example; ok ho@, jason@Markus Friedl
2002-12-06styleHenning Brauer
2002-12-06Remove negated address list check again, doesn't work right yet.Daniel Hartmeier
2002-12-06let pfctl -v print out "block drop" instead of just "block" in the dropHenning Brauer
case. fixes the last self-regress test. ok markus@
2002-12-06Section and tag comparisions should be case-insensitive. PR#3010, Mike Neuman.Hakan Olsson
2002-12-06unkown; torh@bogus.netTheo de Raadt
2002-12-06Introduce anchors and named rule sets, allowing to load additional ruleDaniel Hartmeier
sets with pfctl and evaluate them from the main rule set using a new type of rule (which will support conditional evaluation soon). Makes maintenance of sub-rulesets simpler for pfctl and daemons. Idea and ok deraadt@
2002-12-05fix a small cosmetic problem. if ifa_lookup was called in LOOKUP_NET mode,Henning Brauer
it would return things like 127.0.0.1/8. when 127.0.0.1/8 is passed through the new selftests, it becomes 127.0.0.0/8. fix: instead of just copying addr.mask in ifa_lookup, use set_ipmask, so it is 127.0.0.0/8 from the beginning on.
2002-12-05one step further to "program output is valid program input" and the relatedHenning Brauer
extra regress testing opportunities (an excellent idea by markus@). only print rule numbers in case of pfctl -v -v; but not with pfctl -v. ok markus@ frantzen@ mcbride@
2002-12-05-quote varset in -v outputHenning Brauer
-don't add 's' in set timeout -v output makes the feedback regression tests succeed. ok markus@ mcbride@
2002-12-05Replace warnx with warn on ioctls so that we get the error message associatedRyan Thomas McBride
with the warning. From DJ Gregor. ok henning@ dhartmei@
2002-12-05correct sizeof() to memset(). sync w/kameJun-ichiro itojun Hagino
2002-12-04bit_ffc(3) returns a -1 location for a full bitset. Problem found byHakan Olsson
Olivier Courtay.
2002-12-04allow ACQUIRE with empty EXT_ADDRESS_SRC; PR 2996; ok angelos@, ho@Markus Friedl
2002-12-04in host(), apply a given netmask to all members of the node_host listHenning Brauer
returned by ifa_lookup(). reported by Alejandro G. Belluscio ok dhartmei@
2002-12-04do not warn for unused variables except with -v -v; henning okTheo de Raadt
2002-12-03Add -4/-6 cmdline options to select what address family (IPv4,v6) to use.Hakan Olsson
niklas@ ok.
2002-12-03LOG_DBG for missing ca/, certs/, crls/ dirs, notHakan Olsson
log_error(). Suggested by markus@.
2002-12-03be nice and shutdown the socket after beeing done; pointed out by kenjiroHenning Brauer
2002-12-02KNFHenning Brauer
2002-12-02permit more flexible pass/block lines. the options giving at the end ofTheo de Raadt
a line can now be placed in any order, and some merging of duplicat options is also done. this is easier to use.
2002-12-02allow for "altq on $interface" without specifying a bandwidth. TheHenning Brauer
interface's bandwidth is taken then. as a side-effect, "altq on $interface bandwidth xx%" is also possible now, it's relative to the interface's bandwidth then. ok theo
2002-12-01deal with not-ALTQ-enabled kernelsHenning Brauer
2002-12-01Match pf_ioctl.c cleanup; set up the pool_ticket when loading rulesRyan Thomas McBride
ok dhartmei@ henning@
2002-11-30oopsTheo de Raadt
2002-11-30do not syslog with extra newlineTheo de Raadt
2002-11-30move damn unmask() proto into place as wellMichael Shalayeff
2002-11-30move unmask back into pf_print_state.c where it was, and please keep it ↵Michael Shalayeff
there; henning@ ok
2002-11-29no need for extra hrs; henning@ okMichael Shalayeff
2002-11-29coredumps are not nice.Henning Brauer
deal with the fact that when we are merging the lists in host_list both can be NULL. found at EuroBSDCon 2002 while I was explaining the expansion process to Paul de Weerd ok dhartmei@
2002-11-29in pfctl_find_altq_node also compare the interface.Henning Brauer
fixes pfctl -sq output in case the queuespec was expanded to >1 queues on different interfaces
2002-11-29print queuespec only once in verbose mode, even if referenced more oftenHenning Brauer
2002-11-29FREE_LIST nqueues later; can be used more than onceHenning Brauer
2002-11-28qlimit before tbrsizeHenning Brauer
2002-11-28print qlimit on altq if not equal to the default valueHenning Brauer