summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2002-07-09check sin6_scope_id field, just in case we change the routing socket APIJun-ichiro itojun Hagino
for scoped address (unlikely due to the deployed codebase...).
2002-07-09getifaddrs(3) grabs link-local addrs in kernel internal form, convert themJun-ichiro itojun Hagino
into proper sockaddr_in6.
2002-07-09move common declarations to if_wivar.h; mickey@ and millert@ ok.Federico G. Schwindt
2002-07-09the new interface-to-ip lookup fuctions requires the address family to beHenning Brauer
specified in this cases. ok pb@, dhartmei@, kjell@
2002-07-09rework the interface-to-IP routines.Henning Brauer
you can use interface names instead of an IP in most places. However, until now, it was only expanded to the interface's first IPv4 address if existant (and address family unset or inet) and the first IPv6 address otherwise. this diff changes that. the interface is proper expanded to all IPs, IPv4 _and_ IPv6, now. it also cleans up the lookup procedures (well, in fact, they are replaced by a new one), there's no need for different procedures for IPv4 and IPv6. we now just have one list of interfaces (AF_LINK) and one list with IPs (AF_INET and AF_INET6) with corresponding lookup functions, ifa_exists and ifa_lookup. nat, rdr & friends now use the new function ifa_pick_ip to get the IP in rules like nat on $interface from $whatever to any -> $interface ifa_pick_ip tries to be smart. if the interface has only one IP address and the nat rule doesn't specify an address family (or it matches with this address), take this one. If the address family is specified in the nat rule and there is only one IP for the given address family, this one is used. if the address family is not specified and there is more than one IP pfctl throws an error. The same applies for multiple IPs per address family. This causes regression tests 18 and 20 to fail because the address family isn't specified there; diff for those coming. also fix some prototypes while I'm here. pb@ found another problem while testing that we must have introduced somewhat after 3.1. $cat t nat on ne3 from any to any -> 213.128.133.5 $pfctl -nvf t nat on ne3 all -> ? it's only a representation bug as far as I've checked, nontheless it should be fixed. as a nat/rdr rule always nats/redirects to one IP only we can just steal its target's IP af and set the rule's af accordingly. then inet_ntop does play nice. binat rules already enforce having an address family set always and thus are not affected. ok dhartmei@, pb@, kjell@ "It looks good" frantzen@
2002-07-09Don't write 32 bits to a 16-bit register.Aaron Campbell
2002-07-09update to reflect realityJason Wright
2002-07-09no offsetMichael Shalayeff
2002-07-09changing kernel load address does not work that well w/ elf, load it where ↵Michael Shalayeff
it was linked
2002-07-09We already did a closelog(); no need for it here.Todd C. Miller
2002-07-08minor cosmetic change to reduce diffsTodd C. Miller
2002-07-08bzero the correct size (I swear this worked at one time...)Jason Wright
2002-07-08we can live very well w/ MI ffs()Michael Shalayeff
2002-07-08Correctly convert to new timeouts (this hasn't compiled for awhile)Jason Wright
2002-07-08in addition to check cd_ndevs, also check that cd_devs[N] != NULLJason Wright
2002-07-08Use qsort() instead of mergesort() since the latter can fail dueTodd C. Miller
to malloc(). opendir() requires a stable sort so we rig the compare routine to never return 0. From Lars J. Buitinck
2002-07-08Another missing bit (appears to make the 582x series work like the 580x seriesJason Wright
as far as key setups go).
2002-07-085821 has two additional bits that must be ack'd (note they don't haveJason Wright
corresponding enable bits... they are always on... dain bramage).
2002-07-08Merge in some changes from Paul Vixie's tree; most are cosmeticTodd C. Miller
o ANSI function headers o return (foo) not return foo o add -oi to sendmail flags o update email address in man pages o make some strings const o completely remove globbing cruft from popen.c o whitespace changes o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries
2002-07-08offload the arguments from the stack before performingMichael Shalayeff
the copying, initial idea is from freebsd (not fully implemented there, apparently). this also makes bcopy/memcpy a tiny little bit faster.
2002-07-08lem and buranMichael Shalayeff
2002-07-08from itojun:Michael Shalayeff
japan fix due to emperor change (1988) - 4/29 is now called greenary day, 12/23 is the new emperor's birthday.
2002-07-08tl* multicast filter is broken. use ALLMULTI for now.Jun-ichiro itojun Hagino
2002-07-08Don't allow 'flags' option in non-TCP rules, found by mpech@Daniel Hartmeier
2002-07-08ANSITheo de Raadt
2002-07-08syncTheo de Raadt
2002-07-08make failed SIOCG80211NWKEY print alert more clearly; ↵Theo de Raadt
jolan@norm.encryptedemail.net
2002-07-08don't install Apache bench.Brad Smith
-- Idea from: Chad Loder <cloder@acm.org> via PR 2800 Ok'd by: deraadt@
2002-07-08actual signals; seb@todesplanet.deTheo de Raadt
2002-07-08syncTheo de Raadt
2002-07-07missing error checks on strdup. from cloder@acm.orgNiels Provos
2002-07-07document a bit betterTheo de Raadt
2002-07-07No, you do NOT go renumbering the sysctl table!Theo de Raadt
2002-07-07Allow isapnp to compile without isadma configured. From NetBSD.Miod Vallat
2002-07-07Add isadma to bsd.rd, for proper isapnp operation.Miod Vallat
Found the hard way by pvalchev@
2002-07-07Add a port of FreeBSD/alpha's libio as libalpha. This library enableMatthieu Herrb
access to devices I/O ports from userland. Only BWX machines supported for now. Added a man page. Ok deraadt@, miod@.
2002-07-07better say we are OpenBSD in the configromThierry Deval
2002-07-07enviroment -> environmentJan-Uwe Finck
2002-07-07enviroment -> environmentJan-Uwe Finck
2002-07-07typos/grammar/better wordsJan-Uwe Finck
in comments.
2002-07-07More cleanup/shrinkage/clarification.Kenneth R Westerback
a) Eliminate single invocation here document functions not_going_to_install(), congrats() by putting the here document at the point of invocation. b) Make (deliberately) global variables consistantly upper case and with no leading '_'. Many variables that could be local are still creating globals. c) Make all get_* functions names conform to a convention of get_<global variable name>, where the <global_variable_name> is the global variable set by the function, or whose new value is returned by the function. d) Change _IFS to IFDEVS to be consistant with CDDEVS and DKDEVS, and initialize it at the same place. e) Handle bare '+', '-' in same place other selections are parsed rather than in a separate case statement. f) eliminate '[ "$var" ] || var=value' constructs with ': ${var:=value}' constructs. g) Rename local_sets_dir -> SETSDIR. h) Rework logic around ftp passwords to eliminate duplications and ensure a new password is asked for each time. i) Some minor cosmetic adjustments.
2002-07-07syncTheo de Raadt
2002-07-06syncThomas Nordin
2002-07-06syncThomas Nordin
2002-07-06Remove kernel support for NTP. ok deraadt@ and tholo@Thomas Nordin
2002-07-06theo doesn't like it.Henning Brauer
always use the pfctl in path.
2002-07-06unused variableKevin Steves
2002-07-06use sbin/pfctl/${__objdir}/pfctl for regression tests if existant, fallHenning Brauer
back to pfctl in path otherwise. will save my ass sooner or later. ok millert@, pb@
2002-07-06Fix typo in get_get_files_list() that prevented sets fromKenneth R Westerback
being found for install/upgrade.
2002-07-06Security Mode feature set.Grigoriy Orlov
From Alexander Yurchenko <grange@rt.mipt.ru> Approved by csapuntz@ and me.