openbsd
10 years agodon't clear label before readasciilabel(), it will not fill in some
otto [Wed, 23 Apr 2014 11:49:25 +0000 (11:49 +0000)]
don't clear label before readasciilabel(), it will not fill in some
required fields like disk size, causing consistency check failures.
with and ok krw@

10 years agoKill useless assignement, matchlen is initialized two lines below.
jca [Wed, 23 Apr 2014 11:47:04 +0000 (11:47 +0000)]
Kill useless assignement, matchlen is initialized two lines below.
From Fritjof Bornebusch.

10 years agoRemove badly outdated information: FDDI and Token Ring are gone,
naddy [Wed, 23 Apr 2014 11:42:14 +0000 (11:42 +0000)]
Remove badly outdated information: FDDI and Token Ring are gone,
VLAN tags on transmitted packets have been visible to bpf since
the introduction of bpf_mtap_ether().  ok brad@, henning@

10 years agoDon't attempt to deal with link types supported by no drivers in the
jca [Wed, 23 Apr 2014 10:50:18 +0000 (10:50 +0000)]
Don't attempt to deal with link types supported by no drivers in the
tree.  ok henning@

10 years agoexplain a bit more what's going on for stupid me.
espie [Wed, 23 Apr 2014 10:47:15 +0000 (10:47 +0000)]
explain a bit more what's going on for stupid me.
okay otto@

10 years agoDifferentiate between linked and unlinked window closes and renames,
nicm [Wed, 23 Apr 2014 10:14:29 +0000 (10:14 +0000)]
Differentiate between linked and unlinked window closes and renames,
like we already do for adds. From Andre Masella.

10 years agoRemove krb5 bits from rc(8).
ajacoutot [Wed, 23 Apr 2014 09:56:56 +0000 (09:56 +0000)]
Remove krb5 bits from rc(8).

ok reyk@

10 years agoYou don't want to use ifa_ifwithroute(), it exists for to the routing
mpi [Wed, 23 Apr 2014 09:30:57 +0000 (09:30 +0000)]
You don't want to use ifa_ifwithroute(), it exists for to the routing
crazyness only.

10 years agoMerge traceroute6 into traceroute.
florian [Wed, 23 Apr 2014 09:27:13 +0000 (09:27 +0000)]
Merge traceroute6 into traceroute.
Not yet enabled in the build.
OK benno@

10 years agoPrepare for merge: s/hops/ttl/ in struct packetdata
florian [Wed, 23 Apr 2014 09:24:36 +0000 (09:24 +0000)]
Prepare for merge: s/hops/ttl/ in struct packetdata
OK benno@

10 years agoPrepare for merge: no more useicmp
florian [Wed, 23 Apr 2014 09:23:30 +0000 (09:23 +0000)]
Prepare for merge: no more useicmp
OK benno@

10 years agoKNF
florian [Wed, 23 Apr 2014 09:22:34 +0000 (09:22 +0000)]
KNF
OK benno@

10 years agobzero -> memset
florian [Wed, 23 Apr 2014 09:20:15 +0000 (09:20 +0000)]
bzero -> memset
OK benno@

10 years agos/lastaddr/lastaddr6/
florian [Wed, 23 Apr 2014 09:19:23 +0000 (09:19 +0000)]
s/lastaddr/lastaddr6/
OK benno@

10 years agoPrepare merge: check AF
florian [Wed, 23 Apr 2014 09:18:27 +0000 (09:18 +0000)]
Prepare merge: check AF
OK benno@

10 years agomissing break; not reachable
florian [Wed, 23 Apr 2014 09:17:10 +0000 (09:17 +0000)]
missing break; not reachable
OK benno@

10 years agoNo need to set protocol in hints.
florian [Wed, 23 Apr 2014 09:16:11 +0000 (09:16 +0000)]
No need to set protocol in hints.
OK benno@

10 years agozap redundant cast
florian [Wed, 23 Apr 2014 09:14:49 +0000 (09:14 +0000)]
zap redundant cast
OK benno@

10 years agoIntroduce check_tos to unclutter the main loop.
florian [Wed, 23 Apr 2014 09:14:07 +0000 (09:14 +0000)]
Introduce check_tos to unclutter the main loop.
OK benno@

10 years agomove AF independet setsockopts down
florian [Wed, 23 Apr 2014 09:13:00 +0000 (09:13 +0000)]
move AF independet setsockopts down
OK benno@

10 years agos/Nxt/nxt/
florian [Wed, 23 Apr 2014 09:11:35 +0000 (09:11 +0000)]
s/Nxt/nxt/
OK benno@

10 years agoAdd error checking to sysctl. While there pass in an int otherwise
florian [Wed, 23 Apr 2014 09:10:53 +0000 (09:10 +0000)]
Add error checking to sysctl. While there pass in an int otherwise
it failes with ENOMEM in traceroute.
OK benno@

10 years agosync to traceroute: move sndsock creation up.
florian [Wed, 23 Apr 2014 09:09:28 +0000 (09:09 +0000)]
sync to traceroute: move sndsock creation up.
OK benno@

10 years agoPrepare for merge: introduce icmp_code for the AF switch.
florian [Wed, 23 Apr 2014 08:59:35 +0000 (08:59 +0000)]
Prepare for merge: introduce icmp_code for the AF switch.
OK benno@

10 years agoPrepare for merge: s/icmp_code/icmp4_code/ and use icmp_code for
florian [Wed, 23 Apr 2014 08:58:26 +0000 (08:58 +0000)]
Prepare for merge: s/icmp_code/icmp4_code/ and use icmp_code for
the AF switch.
OK benno@

10 years agoPrepare for merge: s/packet_ok/packet_ok6/ and use packet_ok
florian [Wed, 23 Apr 2014 08:56:31 +0000 (08:56 +0000)]
Prepare for merge: s/packet_ok/packet_ok6/ and use packet_ok
for the AF switch.

10 years agoPrepare for merge: s/packet_ok/packet_ok4/ and use packet_ok
florian [Wed, 23 Apr 2014 08:55:42 +0000 (08:55 +0000)]
Prepare for merge: s/packet_ok/packet_ok4/ and use packet_ok
for the AF switch.

10 years agoPrepare merge: s/to/to6/; s/from/from6/
florian [Wed, 23 Apr 2014 08:51:32 +0000 (08:51 +0000)]
Prepare merge: s/to/to6/; s/from/from6/
OK benno@

10 years agoPrepare merge: introduce struct sockaddr *from, *to to be used in
florian [Wed, 23 Apr 2014 08:50:27 +0000 (08:50 +0000)]
Prepare merge: introduce struct sockaddr *from, *to to be used in
AF independet places.
OK benno@

10 years agoPrepare merge: s/to/to4/; s/from/from4/
florian [Wed, 23 Apr 2014 08:47:16 +0000 (08:47 +0000)]
Prepare merge: s/to/to4/; s/from/from4/
OK benno@

10 years agoMake this compile with -Wall et al.
florian [Wed, 23 Apr 2014 08:44:50 +0000 (08:44 +0000)]
Make this compile with -Wall et al.
OK benno@

10 years agoBetter, cleaner hash function that computes the same on be and le archs.
otto [Wed, 23 Apr 2014 05:43:25 +0000 (05:43 +0000)]
Better, cleaner hash function that computes the same on be and le archs.
Should improve sparc64 and other be archs. ok matthew@ miod@

10 years agoMake libssl and libcrypto compile with -Werror
beck [Wed, 23 Apr 2014 05:13:57 +0000 (05:13 +0000)]
Make libssl and libcrypto compile with -Werror
ok miod@

10 years agoMake sure ret->name is NULL'ed before return when freeing.
beck [Wed, 23 Apr 2014 04:33:10 +0000 (04:33 +0000)]
Make sure ret->name is NULL'ed before return when freeing.
from Dirk Engling <erdgeist@erdgeist.org>

10 years agoRather than sprinkling magical numbers everywhere, we can use sizeof()
beck [Wed, 23 Apr 2014 04:24:39 +0000 (04:24 +0000)]
Rather than sprinkling magical numbers everywhere, we can use sizeof()
for the size of a fixed size array.
From Dirk Engling <erdgeist@erdgeist.org>

10 years agorename some hardware revisions to match FreeBSD
jsg [Wed, 23 Apr 2014 03:37:29 +0000 (03:37 +0000)]
rename some hardware revisions to match FreeBSD

10 years agoadd support for RTL8168EP
jsg [Wed, 23 Apr 2014 03:20:55 +0000 (03:20 +0000)]
add support for RTL8168EP
From Edward O'Callaghan via FreeBSD

10 years agoWhile we always mask the revision with 0x7c800000 linux uses a table
jsg [Wed, 23 Apr 2014 02:58:06 +0000 (02:58 +0000)]
While we always mask the revision with 0x7c800000 linux uses a table
that masks with either 0x7c800000 or 0x7cf00000 depending on the chip.

Some of the hardware revisions I previously added can't be matched with
the current mask, these are already handled by other revision defines
so remove them.

When masking the revision defines with 0x7c800000:

RL_HWREV_8106E_SPIN1 is the same as RL_HWREV_8106E
RL_HWREV_8168G_SPIN1 is the same as RL_HWREV_8168G
RL_HWREV_8168G_SPIN2 is the same as RL_HWREV_8168GU

10 years agoAdd support for RTL8168GU
jsg [Wed, 23 Apr 2014 02:39:28 +0000 (02:39 +0000)]
Add support for RTL8168GU
from Rafael Neves

10 years agoUnify the model name to LUNA-88K{,2}, that is considered the
aoyama [Tue, 22 Apr 2014 22:58:02 +0000 (22:58 +0000)]
Unify the model name to LUNA-88K{,2}, that is considered the
`official' name.

ok jmc@ miod@

10 years agounifdef -UAES_LONG for we do not intend to run on platforms where int is smaller
miod [Tue, 22 Apr 2014 22:21:32 +0000 (22:21 +0000)]
unifdef -UAES_LONG for we do not intend to run on platforms where int is smaller
than 32 bits.

10 years agoUse calloc() instead of malloc(n * s) followed by memset(). Not
millert [Tue, 22 Apr 2014 22:11:23 +0000 (22:11 +0000)]
Use calloc() instead of malloc(n * s) followed by memset().  Not
actually used on OpenBSD but changed to avoid false positives in
audits.  From Jean-Philippe Ouellet.

10 years agoSo it turns out that libcrypto on i386 platforms, unconditionaly compiles this
miod [Tue, 22 Apr 2014 21:52:21 +0000 (21:52 +0000)]
So it turns out that libcrypto on i386 platforms, unconditionaly compiles this
little gem called OPENSSL_indirect_call(), supposedly to be ``handy under
Win32''.

In my view, this is a free-win ROP entry point. Why try and return to libc
when you can return to libcrypto with an easy to use interface?

Better not give that much attack surface, and remove this undocumented
entry point.

ok beck@ tedu@

10 years agoWhen compiling with AES_WRAP_TEST, make main() return a meaningful value
miod [Tue, 22 Apr 2014 21:27:11 +0000 (21:27 +0000)]
When compiling with AES_WRAP_TEST, make main() return a meaningful value
instead of garbage, and add this to the libcrypto regress. Note these tests
are incomplete, as they always use the default IV.

10 years agouse reallocarray
tedu [Tue, 22 Apr 2014 21:24:20 +0000 (21:24 +0000)]
use reallocarray

10 years agoMention 16-bit sound is supported nowadays.
miod [Tue, 22 Apr 2014 21:01:10 +0000 (21:01 +0000)]
Mention 16-bit sound is supported nowadays.

10 years agoremove dead stores to error. from Fritjof Bornebusch
tedu [Tue, 22 Apr 2014 20:48:41 +0000 (20:48 +0000)]
remove dead stores to error. from Fritjof Bornebusch

10 years agomalloc/memset -> calloc. from peter malone
tedu [Tue, 22 Apr 2014 20:42:01 +0000 (20:42 +0000)]
malloc/memset -> calloc. from peter malone

10 years agoRemove the certs directory that contains ancient files not used
lteo [Tue, 22 Apr 2014 20:41:43 +0000 (20:41 +0000)]
Remove the certs directory that contains ancient files not used
by anything.

"yes, blow it away" beck@

10 years agomalloc/memset->calloc. with bonus null check. from peter malone.
tedu [Tue, 22 Apr 2014 20:40:37 +0000 (20:40 +0000)]
malloc/memset->calloc. with bonus null check. from peter malone.

10 years agonull a pointer to prevent double free. from Dirk Engling
tedu [Tue, 22 Apr 2014 20:38:02 +0000 (20:38 +0000)]
null a pointer to prevent double free. from Dirk Engling

10 years agoRemove files which look like actual code compiled in libcrypto, but isn't.
miod [Tue, 22 Apr 2014 20:33:29 +0000 (20:33 +0000)]
Remove files which look like actual code compiled in libcrypto, but isn't.
One even says (in comments): HAS BUGS! DON'T USE

10 years agofix memory leaks. from Dirk Engling
tedu [Tue, 22 Apr 2014 20:31:57 +0000 (20:31 +0000)]
fix memory leaks. from Dirk Engling

10 years agoRemove meat which either duplicates code found in apps/, or is only of value
miod [Tue, 22 Apr 2014 20:31:38 +0000 (20:31 +0000)]
Remove meat which either duplicates code found in apps/, or is only of value
for 20th century historians, and can be put in the Attic.

10 years agomalloc/memset -> calloc. from peter malone
tedu [Tue, 22 Apr 2014 20:25:16 +0000 (20:25 +0000)]
malloc/memset -> calloc. from peter malone

10 years agoFix issue where we could jump into getdirtybuf without splbio() on a retry
beck [Tue, 22 Apr 2014 20:14:39 +0000 (20:14 +0000)]
Fix issue where we could jump into getdirtybuf without splbio() on a retry
that probably crashed espie.
ok tedu@

10 years agoturns out there are exactly 3 ports that actually use longnames:
espie [Tue, 22 Apr 2014 18:22:20 +0000 (18:22 +0000)]
turns out there are exactly 3 ports that actually use longnames:

eclipse-plugins-wtp-sdk
openclipart
qt4-html

so switch to pax extended headers now, the transition period is not
really needed. :)

10 years agoTrojan horse is still a noun. noted by fritjof
tedu [Tue, 22 Apr 2014 16:58:20 +0000 (16:58 +0000)]
Trojan horse is still a noun. noted by fritjof

10 years agoRemove RX checksum offloading support. The chip is too limited, and
naddy [Tue, 22 Apr 2014 15:52:05 +0000 (15:52 +0000)]
Remove RX checksum offloading support.  The chip is too limited, and
examining higher protocol layers to adjust the checksum and calculate
the pseudo-header in the driver is too complex to be worthwhile.
ok henning@

10 years agoadd closing parenthesis.
sobrado [Tue, 22 Apr 2014 15:22:04 +0000 (15:22 +0000)]
add closing parenthesis.

ok millert@

10 years ago- one more mallocarray -> reallocarray
jmc [Tue, 22 Apr 2014 15:02:16 +0000 (15:02 +0000)]
- one more mallocarray -> reallocarray
- use <>

10 years agoNuke the last of the windows related defines from the openssl apps.
jsing [Tue, 22 Apr 2014 14:54:13 +0000 (14:54 +0000)]
Nuke the last of the windows related defines from the openssl apps.

ok deraadt@

10 years agothis commit is really florian@'s, since he's the one who made removal
henning [Tue, 22 Apr 2014 14:47:23 +0000 (14:47 +0000)]
this commit is really florian@'s, since he's the one who made removal
of our forked apache possible by his work on nginx and slowcgi, but he
doesn't want it - so it is my pleasure to tedu it. I spent so much work
on chroot in it 10 years ago - and am very happy to see it go now, nginx
is a far better choice today.
Bye bye, Apache, won't miss you.

10 years agoFinally remove KERBEROS5? from the Makefile infrastructure.
reyk [Tue, 22 Apr 2014 14:42:53 +0000 (14:42 +0000)]
Finally remove KERBEROS5? from the Makefile infrastructure.

ok henning@

10 years agoRemove some altq tentacles.
mpi [Tue, 22 Apr 2014 14:41:03 +0000 (14:41 +0000)]
Remove some altq tentacles.

ok pelikan@, henning@

10 years agoswitch to reallocarray
tedu [Tue, 22 Apr 2014 14:27:25 +0000 (14:27 +0000)]
switch to reallocarray

10 years agochange mallocarray to reallocarray. useful in a few more situations.
tedu [Tue, 22 Apr 2014 14:26:26 +0000 (14:26 +0000)]
change mallocarray to reallocarray. useful in a few more situations.
malloc can, as always, be emulated via realloc(NULL).
ok deraadt

10 years agoKNF.
jsing [Tue, 22 Apr 2014 14:22:51 +0000 (14:22 +0000)]
KNF.

10 years agomore kerberos zapping;
jmc [Tue, 22 Apr 2014 14:19:04 +0000 (14:19 +0000)]
more kerberos zapping;

10 years agozap eol whitespace;
jmc [Tue, 22 Apr 2014 14:16:30 +0000 (14:16 +0000)]
zap eol whitespace;

10 years agozap stray Pp;
jmc [Tue, 22 Apr 2014 14:15:55 +0000 (14:15 +0000)]
zap stray Pp;

10 years agoMore KNF.
jsing [Tue, 22 Apr 2014 14:05:40 +0000 (14:05 +0000)]
More KNF.

10 years agomalloc -> calloc
gilles [Tue, 22 Apr 2014 13:57:58 +0000 (13:57 +0000)]
malloc -> calloc

10 years agoMore KNF.
jsing [Tue, 22 Apr 2014 13:48:29 +0000 (13:48 +0000)]
More KNF.

10 years agoMore KNF.
jsing [Tue, 22 Apr 2014 13:32:17 +0000 (13:32 +0000)]
More KNF.

10 years agoMore KNF.
jsing [Tue, 22 Apr 2014 13:13:58 +0000 (13:13 +0000)]
More KNF.

10 years agono more kerb, ok kettenis
henning [Tue, 22 Apr 2014 12:53:48 +0000 (12:53 +0000)]
no more kerb, ok kettenis

10 years agono more kerberos authentication styles.
sobrado [Tue, 22 Apr 2014 12:48:17 +0000 (12:48 +0000)]
no more kerberos authentication styles.

ok henning@, reyk@

10 years agoMore KNF.
jsing [Tue, 22 Apr 2014 12:43:34 +0000 (12:43 +0000)]
More KNF.

10 years agoDocument sftp upload resume.
logan [Tue, 22 Apr 2014 12:42:04 +0000 (12:42 +0000)]
Document sftp upload resume.

OK from djm@, with feedback from okan@.

10 years agoInstead of special casing ftpd, uucpd and others that may have entries
okan [Tue, 22 Apr 2014 12:36:36 +0000 (12:36 +0000)]
Instead of special casing ftpd, uucpd and others that may have entries
in wtmp, go the other way and exclude entries we know ('console' and
'tty') from pid stripping, then strip the rest.

idea, feedback and ok millert@

10 years agoifa_ifwithroute() is the only magic place where an AF_LINK sockaddr
mpi [Tue, 22 Apr 2014 12:35:00 +0000 (12:35 +0000)]
ifa_ifwithroute() is the only magic place where an AF_LINK sockaddr
can be given to ifa_ifwithnet().

Handle this specific case directly and let ifa_ifwithnet() do only
one thing:  iterate on all the addresses of all the interfaces in a
given routing domain to return the most specific matching address.

ok mikeb@

10 years agopure reindent
espie [Tue, 22 Apr 2014 12:21:17 +0000 (12:21 +0000)]
pure reindent

10 years agoNULL is cooler than 0 when pointers are concerned
henning [Tue, 22 Apr 2014 12:07:20 +0000 (12:07 +0000)]
NULL is cooler than 0 when pointers are concerned
ok gcc & md5 (aka no binary change)

10 years agoUpdate iked to use the same proc.c that relayd uses.
reyk [Tue, 22 Apr 2014 12:00:03 +0000 (12:00 +0000)]
Update iked to use the same proc.c that relayd uses.
Less differences, less code to audit.

ok mikeb@

10 years agoIf VLAN_HWTAGGING is disabled, we tell the chip not to strip the
naddy [Tue, 22 Apr 2014 11:54:46 +0000 (11:54 +0000)]
If VLAN_HWTAGGING is disabled, we tell the chip not to strip the
tag from the received frame.  Do not add the tag from the receive
descriptor in this case so that the packet isn't tagged twice.
Matches FreeBSD.
ok brad@

10 years agocomment out the .if (${KERBEROS5:L} block for now, breaks the build
henning [Tue, 22 Apr 2014 11:47:55 +0000 (11:47 +0000)]
comment out the .if (${KERBEROS5:L} block for now, breaks the build
once the bsd.own.mk KERBEROS5 is removed otherwise. this way suggested
by theo.

10 years agowe used to handle the vlan tag etc insertion very very very late,
henning [Tue, 22 Apr 2014 11:43:07 +0000 (11:43 +0000)]
we used to handle the vlan tag etc insertion very very very late,
on al already ass embed ethernet frame, which meant:
-copy (most of) the existing ethernet header into a ether_vlan_header
on the stack
-fill the extra fields in ether_vlan_header
-set the ether type
-m_adj() to make room for the extra space ether_vlan_header needs
-m_copyback the ether_vlan_header into the mbuf
that involves moving data around, which isn't all that cheap.
cleaner & easier to have ether_output prepend the ether_vlan_header instead
of the regular ethernet header, which makes the vlan tagging essentially
free in most cases.
help & ok reyk, naddy; waste of time bikeshedding tech@

10 years agosync
deraadt [Tue, 22 Apr 2014 11:29:29 +0000 (11:29 +0000)]
sync

10 years agono more kerberos, ok theo reyk
henning [Tue, 22 Apr 2014 11:15:05 +0000 (11:15 +0000)]
no more kerberos, ok theo reyk

10 years agoRemove the kerberos login methods.
reyk [Tue, 22 Apr 2014 11:06:22 +0000 (11:06 +0000)]
Remove the kerberos login methods.

10 years ago-KERBEROS5
henning [Tue, 22 Apr 2014 11:05:22 +0000 (11:05 +0000)]
-KERBEROS5

10 years agoRemove the kerberos login methods.
reyk [Tue, 22 Apr 2014 11:03:39 +0000 (11:03 +0000)]
Remove the kerberos login methods.

ok henning@

10 years agokerberos has been tedu'd, ok reyk
henning [Tue, 22 Apr 2014 10:50:15 +0000 (10:50 +0000)]
kerberos has been tedu'd, ok reyk

10 years agoRemove kerberosV, it is not special anymore.
reyk [Tue, 22 Apr 2014 10:48:36 +0000 (10:48 +0000)]
Remove kerberosV, it is not special anymore.

ok henning@

10 years agolist VSCSI_STAT_RESET.
dlg [Tue, 22 Apr 2014 10:25:12 +0000 (10:25 +0000)]
list VSCSI_STAT_RESET.

claudio didnt believe it existed cos it wasnt documented. i didnt believe
there was a manpage. i guess we were both wrong.

10 years agoRemove kerberosV from etc/
reyk [Tue, 22 Apr 2014 10:24:29 +0000 (10:24 +0000)]
Remove kerberosV from etc/

ok deraadt@ guenther@

10 years agoRemove KERBEROS5 from the Makefiles (except ssh for now, where it is
reyk [Tue, 22 Apr 2014 10:21:56 +0000 (10:21 +0000)]
Remove KERBEROS5 from the Makefiles (except ssh for now, where it is
already manually disabled).

ok deraadt@

10 years agofor consistency's sake, use the terminology from the 802.1Q standard
henning [Tue, 22 Apr 2014 10:11:32 +0000 (10:11 +0000)]
for consistency's sake, use the terminology from the 802.1Q standard
here too. pt out by alexey suslikov via mpi, ok reyk

10 years agoOh yeah, MLINKS for errc family
guenther [Tue, 22 Apr 2014 10:08:54 +0000 (10:08 +0000)]
Oh yeah, MLINKS for errc family

Prodded by deraadt@