Commit Graph

60940 Commits

Author SHA1 Message Date
tobez
b0177f628c 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
tobez
7fa7e8bf10 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
ume
04564ac889 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
ume
47ab2073e1 This is force commit to mention about previous commit.
- move m_aux freeing code into MFREE().
2001-06-11 21:04:12 +00:00
ume
f99478f099 This is force commit to mention about previous commit.
- avoid namespace pollution by CMSG_ALIGN().
2001-06-11 20:57:55 +00:00
ume
1457d70b4d This is force commit to mention about previous commit (1.50).
- show mtu on netstat -rl
2001-06-11 20:40:49 +00:00
ume
646a4bb81e This is force commit to mention about previous commit.
- print ipstat.ips_badaddr
2001-06-11 20:36:24 +00:00
ume
ef9b912c11 This is force commit to mention about previous commit.
- add SIOC[GS]LIFPHYADDR
2001-06-11 20:34:19 +00:00
ume
ba31781a6c 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
ume
fa8089432b 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
ume
5001b6d07d 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
ume
a71dcb1bdc 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
dillon
633b2a04be Cleanup the tabbing 2001-06-11 19:17:05 +00:00
ume
36f11773b0 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
ume
d1893112a5 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
ume
f60a5fa09f 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
des
7da6da146f Blah, I cut out a tad too much in the previous commit. (thanks again, Jake!) 2001-06-11 18:43:32 +00:00
ume
8b74f81bf5 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
ume
59c3d9335e 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
des
b21baf0f69 copyin(9) doesn't return ENAMETOOLONG. (thanks, Jake!) 2001-06-11 18:36:18 +00:00
ume
87ca61a4b4 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
gallatin
4dbd2f6652 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
jlemon
e8f8984147 Fix small bogon.
Submitted by: Anton Berezin <tobez@tobez.org>
2001-06-11 18:15:31 +00:00
ru
cce62bac31 - 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
ume
3088bd3d27 This is force commit to mention about previous commit.
- allow oversized routing messages.
2001-06-11 18:00:56 +00:00
ume
555f370abc 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
ru
40b62e4ea3 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
ru
a0e4020b84 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
ume
9cbadc39d1 Mention about -rl behavior change. Now, MTU is printed. 2001-06-11 17:34:25 +00:00
ume
ed4c1f2911 Add missing column for Mtu in header when -rl is specified. 2001-06-11 17:32:53 +00:00
des
86b7e548ab 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
des
cd17b04723 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
des
bd0da7df96 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
des
f47c06a197 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
bde
5f8a4bf5ab 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
ume
3851943e9b 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
ru
019f585631 The README file says:
c)  The listing should be kept in filename sorted order.
2001-06-11 12:48:45 +00:00
ume
832f8d2249 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
des
2693854b01 Add PSEUDOFS, and note that LINPROCFS depends on it. 2001-06-11 11:04:36 +00:00
des
2d47a10da5 Add pseudofs and the new linprocfs here. 2001-06-11 11:02:10 +00:00
des
17ea3b035a Add a PSEUDOFS option to allow pseudofs to be built statically. 2001-06-11 10:58:07 +00:00
des
e0f9072ef7 Remove the old linprocfs code. 2001-06-11 10:57:33 +00:00
joerg
3ec65bbf41 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
roam
b0fb480052 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
dwmalone
46ac202c04 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
ache
f07123d0f1 ISO_ -> ISO 2001-06-11 04:24:43 +00:00
ache
0dbc366325 ISO_ -> ISO 2001-06-11 03:45:33 +00:00
ache
d4b6bbfc98 ISO_ -> ISO 2001-06-11 03:08:46 +00:00
ache
096a6eced8 ISO_ -> ISO 2001-06-11 02:59:46 +00:00
ache
f7cf9c55dc ISO_ -> ISO, calendar 2001-06-11 02:59:08 +00:00