Commit graph

60945 commits

Author SHA1 Message Date
Anton Berezin 33ea028f0f Recognize and support new output which pkg_version(1) might produce.
PR:             27707
Approved by:    bmah, markm
2001-06-11 21:31:50 +00:00
Anton Berezin 1f38377a7b Check for the existence of the Makefile in the port skeleton directory
before running make.  If the package origin points to a non-existent or
stale port, report this package as orphaned, instead of producing more
general `unknown in index' message.

PR:             27707
Submitted by:   myself, roamer
Approved by:    bmah, markm
2001-06-11 21:31:04 +00:00
Hajimu UMEMOTO f8c8c2b26d This is force commit to mention about previous commit.
- add a pointer to struct mauxtag.  two integer was too restrictive
- have m_aux_{add,find}2.
- make sure to return non-cluster on m_pulldown().  this is safer
  (but of course less performant) when we have non-loopback L2 code
  which throws the mbuf back to input path, like L2 bridging or some
  multicast handling code.
2001-06-11 21:17:59 +00:00
Hajimu UMEMOTO 217bdf3f1f This is force commit to mention about previous commit.
- move m_aux freeing code into MFREE().
2001-06-11 21:04:12 +00:00
Hajimu UMEMOTO 4b8420bf04 This is force commit to mention about previous commit.
- avoid namespace pollution by CMSG_ALIGN().
2001-06-11 20:57:55 +00:00
Hajimu UMEMOTO 4bea77b5ca This is force commit to mention about previous commit (1.50).
- show mtu on netstat -rl
2001-06-11 20:40:49 +00:00
Hajimu UMEMOTO 770f836449 This is force commit to mention about previous commit.
- print ipstat.ips_badaddr
2001-06-11 20:36:24 +00:00
Hajimu UMEMOTO 490a2c49da This is force commit to mention about previous commit.
- add SIOC[GS]LIFPHYADDR
2001-06-11 20:34:19 +00:00
Hajimu UMEMOTO aae773e460 Nuke wrongly introduced experimental stuff during KAME merge.
Following changed was made by previous commit:

  - add a pointer to struct mauxtag.  two integer was too restrictive.
  - add m_aux_{add,find}2.
  - make sure to nuke mbuf pointed to m_aux.
2001-06-11 20:14:45 +00:00
Hajimu UMEMOTO 871b256b20 This is force commit to mention about previous commit.
- pass error from ipsec_setsocket() all the way up.
2001-06-11 19:48:18 +00:00
Hajimu UMEMOTO e1d86a2426 This is force commit to mention about previous commit.
- supported the IPV6_V6ONLY socket option.
- prohibit AF_INET6 sockets from sending IPv4 packet (using a mapped address)
- prohibit AF_INET6 sockets from connecting to IPv4 hosts
  (using a mapped address)
2001-06-11 19:34:19 +00:00
Hajimu UMEMOTO 9a553fa5e5 This is force commit to mention about previous commit.
- do not assume that the ro_dst member of route_in6{} is sockaddr_in6.
- repair IPsec header size prediction.
- validate mbuf chain better in {tcp,udp}6_ctlinput.
- loosened validation inner packets of icmp6 errors as much as possible.
- scope-awareness.
- be friendly with pfctlinput2.
- simplified address scope handling in the ctlinput function.
- type change of in6_pcbnotify.
- pass error from ipsec_setsocket() all the way up.
2001-06-11 19:27:05 +00:00
Matthew Dillon ef6a93ef81 Cleanup the tabbing 2001-06-11 19:17:05 +00:00
Hajimu UMEMOTO a1942fc1aa This is force commit to mention about previous commit.
- make sure to check MGET failure during IPsec m_aux operations.
2001-06-11 19:16:06 +00:00
Hajimu UMEMOTO fc708ada5e This is force commit to mention about previous commit.
- added comments about why in6p_inputopts should not be copied in
  tcp6_input().
- call ip6_copypktopts() in order to copy in6p_outputopts
  from a listening PCB to a corresponding accepting one.
- be proactive about unspecified IPv6 source address.  pcb layer
  uses unspecified address (::) to mean "unbounded" or
  "unconnected", and can be confused by packets from outside.
- made consist between tcp and udp in using mappedaddr
- setsockopt(BIND_IPV6ONLY) now works
- deprecated address consideration on TCP SYN.
- get rid of M_ANYCAST6
2001-06-11 19:03:42 +00:00
Hajimu UMEMOTO 07a6894f8e This is force commit to mention about previous commit.
- pass error from ipsec_setsocket() all the way up.
- check ipsec policy (mis)match on raw ip{4,6} socket.
2001-06-11 18:46:51 +00:00
Dag-Erling Smørgrav fe46349692 Blah, I cut out a tad too much in the previous commit. (thanks again, Jake!) 2001-06-11 18:43:32 +00:00
Hajimu UMEMOTO f6765c630b This is force commit to mention about previous commit.
- use 0/8 to specify interface index on multicast get/setsockopt
- introduce ipstat.ips_badaddr
2001-06-11 18:41:57 +00:00
Hajimu UMEMOTO d395a51c34 This is force commit to mention about previous commit.
- use 0/8 to specify interface index on multicast get/setsockopt
- make sure to nuke m->m_aux pointer for ipsec, on if_output.
- pass error from ipsec_setsocket() all the way up.
- move ipsec output processing before filtering section.
2001-06-11 18:38:11 +00:00
Dag-Erling Smørgrav e3b373228c copyin(9) doesn't return ENAMETOOLONG. (thanks, Jake!) 2001-06-11 18:36:18 +00:00
Hajimu UMEMOTO b95111df12 This is force commit to mention about previous commit.
- (possible) remote kernel panic fix - out of bounds access on
  ill-formed ipopt.
- strict boundary check on ipopt.
- make sure to enforce inbound IPsec policy on all final header.
- add missing ipcomp entry from ipprotosw.
- 127/8 must not appear on wire - RFC1122.
  this is rather important as we use weak host model, so outsider
  can abuse 127.0.0.1 from outside.
- introduce ipstat.ips_badaddr
- use ipsec_gethist() to prevent packet filters from looking at
  decapulated packets.
- remove duplicate 127.0.0.0/8 checking.
2001-06-11 18:21:31 +00:00
Andrew Gallatin 4d38dc6689 Use struct device * rather than device_t for (*pci_intr_route args), so
as to match other prototypes in the file.
2001-06-11 18:19:44 +00:00
Jonathan Lemon add0681213 Fix small bogon.
Submitted by: Anton Berezin <tobez@tobez.org>
2001-06-11 18:15:31 +00:00
Ruslan Ermilov 8411c946f5 - Restore -nostdinc that got lost in rev.1.105; we don't
want host headers during `buildworld'.

- During `buildworld', install headers in a "copy" mode
  until we decide what to do with the (currently broken)
  SHARED=symlinks.

- Temporarily run `buildworld' with -DNO_WERROR, which
  effectively disabled the -Werror bit of recently added
  WARNS=X feature.  This is required because adding the
  -nostdinc bit back revealed bugs in some header files
  that were hiding after not using -nostdinc.
  It is unclear currently how exactly (and why) -nostdinc
  affects gcc(1) warnings.
2001-06-11 18:09:08 +00:00
Hajimu UMEMOTO f48bc80966 This is force commit to mention about previous commit.
- allow oversized routing messages.
2001-06-11 18:00:56 +00:00
Hajimu UMEMOTO 8e7d564224 This is force commit to mention about previous commit.
- use getifaddrs() instead of directly executing SIOCGIFCONF
- added a sockaddr_storage member to sockunion{} for safety
- scoped address printing
2001-06-11 17:52:02 +00:00
Ruslan Ermilov f811bd81b1 Backout removal of -I${.CURDIR}/../../../sys in previous revision.
It is needed to pick up (missing in SHARED=copy case) netatm/uni/
headers.

The right fix would be to install missing netatm/uni headers.
2001-06-11 17:48:15 +00:00
Ruslan Ermilov 2107b6c68e Backout previous change (removal of -I${.CURDIR}/../../sys/netinet).
This is needed to pick up the right headers.  Wrong headers from
src/contrib/ipfilter are used otherwise.

The right fix would be to fix contrib/ipfilter C sources to pick up
headers from <sys/netinet>.

Noticed by:	peter
2001-06-11 17:41:58 +00:00
Hajimu UMEMOTO 74cf6cfebf Mention about -rl behavior change. Now, MTU is printed. 2001-06-11 17:34:25 +00:00
Hajimu UMEMOTO 7165726d0d Add missing column for Mtu in header when -rl is specified. 2001-06-11 17:32:53 +00:00
Dag-Erling Smørgrav b0def2b548 Add sbuf_copyin(). Also add 'b' variants of sbuf_{cat,copyin,cpy}() which
ignore NUL bytes in the source string.
2001-06-11 17:05:52 +00:00
Dag-Erling Smørgrav 21ceb6efa2 For some reason, though the module builds just fine without <sys/lock.h>,
LINT fails to build without it.
2001-06-11 15:04:48 +00:00
Dag-Erling Smørgrav 2b67592fad Pass on the verbose option to fetchGetURL().
In the child that's set up to run tar(1), close all file descriptors except
stdin, stdout and stderr.

PR:		bin/27760
2001-06-11 14:18:26 +00:00
Dag-Erling Smørgrav 9e2a792c46 Don't call _ftp_closefn() upon EOF in _ftp_readfn(); just return 0. This
fixes a bug in pkg_add(1) (which nobody noticed because of another bug).
2001-06-11 14:12:46 +00:00
Bruce Evans e1d071dbfd Removed the broken code which claimed to lose the set[ug]id bits in
the !(pflag && setfile()) case for regular files unless the copy is
owned by the same user and group.  These bits have already been lost
(or never gained) in the correct way.  The code didn't actually lose
the bits; it depended on them being lost already (apparently in all
cases) and attempted to gain them as necessary, but it often gained
them (and sometimes collateral bits) when wrong:
- pflag && setfile() == 0 case (i.e., for a successful cp -p):
  setfile() copies all the attributes as correctly as possible (as
  specified by POSIX), and we sometimes messed up the up the mode by
  setting it again.  Also, if the file is immutable, then setting the
  mode again gave spurious errors (PR 20646).
- !pflag case.  If the target is created, POSIX requires it to not
  have the set[ug]id bits, but we sometimes copied them from the source.
  If the target already exists, POSIX requires its mode to be unchanged,
  but we sometimes copied the whole mode from the source.

PR:		20646
MFC after:	4 weeks
2001-06-11 13:57:54 +00:00
Hajimu UMEMOTO 449eb73569 prefixcmd_enable was obsoleted by syncing recent KAME. New prefix(8)
is just a shell script for backward compatibility.  Now, we always use
ifconfig(8) instead of prefix(8).

MFC after:	3 weeks
2001-06-11 13:28:05 +00:00
Ruslan Ermilov e72aa2fa57 The README file says:
c)  The listing should be kept in filename sorted order.
2001-06-11 12:48:45 +00:00
Hajimu UMEMOTO 3384154590 Sync with recent KAME.
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.

TODO:
  - The definitions of SADB_* in sys/net/pfkeyv2.h are still different
    from RFC2407/IANA assignment because of binary compatibility
    issue.  It should be fixed under 5-CURRENT.
  - ip6po_m member of struct ip6_pktopts is no longer used.  But, it
    is still there because of binary compatibility issue.  It should
    be removed under 5-CURRENT.

Reviewed by:	itojun
Obtained from:	KAME
MFC after:	3 weeks
2001-06-11 12:39:29 +00:00
Dag-Erling Smørgrav 52ebde4fba Add PSEUDOFS, and note that LINPROCFS depends on it. 2001-06-11 11:04:36 +00:00
Dag-Erling Smørgrav 81cbd9b091 Add pseudofs and the new linprocfs here. 2001-06-11 11:02:10 +00:00
Dag-Erling Smørgrav 36b2d3b7be Add a PSEUDOFS option to allow pseudofs to be built statically. 2001-06-11 10:58:07 +00:00
Dag-Erling Smørgrav fb69758d03 Remove the old linprocfs code. 2001-06-11 10:57:33 +00:00
Joerg Wunsch f8ce7dd521 Cosmetics:
. remove stale comments and a stale #define (from the old days of ft(4))
. make MAX_SEC_SIZE (used in isa_dmainit()) a #define

. fix a typo in a string
. use 0 as the blocksize in devstat_add_entry(), since the actual blocksize
  is unknown (devstat(9) suggests to use 0 in that case)
2001-06-11 10:48:10 +00:00
Peter Pentchev f351b05a52 WARNS=2 cleanup, ANSIfication, manpage mdoc(7) cleanup.
Once again, as explained in my messages to -audit, the ANSIfication comes
as part of the preparation to add a new -d command-line flag to send
output to stdout/stderr.  That commit will come in a week, pending any
further comments/objections.  For those who have missed the -audit mails,
it's at http://people.FreeBSD.org/~roam/bsd/rarpd/usr.sbin-rarpd-d.patch

Asbestos suit:	on ;)
Reviewed by:	dd, silence on -audit
MFC after:	1 month
2001-06-11 09:29:34 +00:00
David Malone c7fd62da6c Try to make the setting of the SIGCHLD handler the same as setting of
the NOCLDWAI flag. Susv2 seems to require this.

Submitted by:	Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
Reviewed by:	dillon
2001-06-11 09:15:41 +00:00
Andrey A. Chernov ee84c5b19d ISO_ -> ISO 2001-06-11 04:24:43 +00:00
Andrey A. Chernov 21ff62e236 ISO_ -> ISO 2001-06-11 03:45:33 +00:00
Andrey A. Chernov 5cbf767700 ISO_ -> ISO 2001-06-11 03:08:46 +00:00
Andrey A. Chernov b04359b9b7 ISO_ -> ISO 2001-06-11 02:59:46 +00:00
Andrey A. Chernov 8513f6b5b2 ISO_ -> ISO, calendar 2001-06-11 02:59:08 +00:00