Commit Graph

60813 Commits

Author SHA1 Message Date
David E. O'Brien
0d1b691ed7 Allow -u to work with UID's also.
Submitted by:	Seth Kingsley <seth.kingsley@windriver.com>
2001-06-12 15:58:31 +00:00
Ruslan Ermilov
d57e0246d1 Fixed printing of netatalk statistics WRT the -s flag.
PR:		bin/6994
Submitted by:	Zahemszky Gabor <zgabor@zg.CoDe.hu>
MFC after:	1 week
2001-06-12 14:00:39 +00:00
Ruslan Ermilov
1c59bf7de3 Allow route(8) to create "proxy only" published ARP entries.
PR:		bin/12357
Submitted by:	Craig Leres <leres@ee.lbl.gov>
2001-06-12 13:31:53 +00:00
Ruslan Ermilov
86cd74127c Fixed the -iface breakage introduced with the latest KAME merge
in revision 1.48.  It is pretty valid and often feasible to use
a non-point-to-point interface as the gateway.  One might, for
example, use this to route some hosts through an ARP on a local
interface, without having to assign an additional IP address:

Script started on Tue Jun 12 16:16:09 2001
# ifconfig rl0 inet
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 192.168.4.115 netmask 0xffffff00 broadcast 192.168.4.255
# netstat -arn -finet | grep -w rl0
192.168.4          link#1             UC          3        0     rl0 =>
192.168.4.65       0:d0:b7:16:9c:c6   UHLW        1        0     rl0   1197
# route add -net 192.168.100 -iface rl0
add net 192.168.100: gateway rl0
# ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1): 56 data bytes
64 bytes from 192.168.100.1: icmp_seq=0 ttl=255 time=0.551 ms
64 bytes from 192.168.100.1: icmp_seq=1 ttl=255 time=0.268 ms
^C
--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.268/0.410/0.551/0.142 ms
# netstat -arn -finet | grep -w rl0
192.168.4          link#1             UC          3        0     rl0 =>
192.168.4.65       0:d0:b7:16:9c:c6   UHLW        1        0     rl0   1165
192.168.100        link#1             UCSc        1        0     rl0 =>
192.168.100.1      0:d0:b7:16:9c:c6   UHLW        1        4     rl0   1192

Script done on Tue Jun 12 16:17:12 2001
2001-06-12 13:23:43 +00:00
Hajimu UMEMOTO
75f5bc80a1 FreeBSD already avoided namespace pollution (rev.1.45).
Submitted by:	bde
2001-06-12 11:12:23 +00:00
Peter Wemm
2398f0cd1d Hints overhaul:
- Replace some very poorly thought out API hacks that should have been
  fixed a long while ago.
- Provide some much more flexible search functions (resource_find_*())
- Use strings for storage instead of an outgrowth of the rather
  inconvenient temporary ioconf table from config().  We already had a
  fallback to using strings before malloc/vm was running anyway.
2001-06-12 09:40:04 +00:00
Hajimu UMEMOTO
46f48be960 Restore the code wrongly nuked by previous commit.
Following changed was made by previous commit:

  - IPV6CP supporting in kernel level ppp from NetBSD.

Submitted by:	y.shirasaki@ntt.com
2001-06-12 08:52:54 +00:00
Peter Wemm
1ae2c6005e -Wunused cleanup 2001-06-12 07:01:27 +00:00
Peter Wemm
6697e35149 Move the -I../../../include or -I/usr/include to the last entry on the
cc arguments.  Otherwise ipfilter's bogus #include lines will compile
reference /usr/include/netinet/ip_frag.h etc.
2001-06-12 06:06:18 +00:00
Dima Dorfman
d4906adb59 ANSI C prohibits text after #endif.
Reviewed by:	md5(1)
2001-06-12 03:44:35 +00:00
Brian Feldman
e7edf5a116 Enable Kerberos 5 support in sshd again. 2001-06-12 03:43:47 +00:00
Peter Wemm
7dd144d715 Turn on the extra 'const' settings for various curses functions. While
this is not strictly compliant with XSI curses, it enables us to pass
const strings to many more functions that are actually const safe than
before.  This should be harmless.

Requested by:  lots of folks
2001-06-12 01:14:02 +00:00
Jordan K. Hubbard
11fed5e2e0 Properly quote recursive pkg_add operations so that filenames with
spaces or special characters in them won't barf.
2001-06-11 23:27:42 +00:00
Ian Dowse
f9f6897972 Make the non-threaded stub for pthread_sigmask() a no-op instead
of calling sigprocmask(). This matches the behaviour of thr_sigsetmask()
on Solaris; _pthread_sigmask_stub was added purely for compatibility
with Solaris (for TI-RPC), so it might as well do the same thing.

This fixes the problem where client RPC calls ignored all signals
for the complete duration of the RPC. This behaviour is currently
necessary in the threaded case due to locking issues, but was never
intended to occur in non-threaded programs.

Reviewed by:	deischen
2001-06-11 23:18:22 +00:00
Dag-Erling Smørgrav
336d3d2ab3 Say one thing, do the other... nextpid -> lastpid 2001-06-11 23:00:35 +00:00
Dag-Erling Smørgrav
9c0247ff80 Linprocfs builds on Alpha now. 2001-06-11 21:57:18 +00:00
Dag-Erling Smørgrav
4c17857638 Implement proc/cpuinfo for the Alpha (thanks to gallatin).
Implement proc/pid/cmdline.
2001-06-11 21:55:40 +00:00
Dag-Erling Smørgrav
8f7e4eb568 Rename nextpid to lastpid and externalize it. 2001-06-11 21:54:19 +00:00
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