1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-04 23:35:36 -08:00
Commit Graph

39 Commits

Author SHA1 Message Date
jmc
2811b70e6c spelling fixes; from paul tagliamonte 2022-12-27 07:44:56 +00:00
mpi
44c85a19f1 Consistently spell "IPsec" in comments and debug outputs.
From Raf Czlonka, ok sthen@
2018-03-16 12:31:09 +00:00
guenther
02a6e1c4ea The macro versions of htonl et al don't require them, but POSIX says
<arpa/inet.h> needs to provide uint16_t and uint32_t.

ok millert@ krw@ naddy@
2017-02-04 19:16:25 +00:00
guenther
828e760f53 Move the typedefs for in_{addr,port}_t from <sys/types.h> to
<netinet/in.h> and <arpa/inet.h>

ok and ports test naddy@ (thanks!)
ok krw@ beck@ millert@
2017-02-04 02:54:33 +00:00
guenther
c261d7e9a9 Revert: finger slip 2015-09-14 08:24:37 +00:00
guenther
f09ad35c18 Prefer the standardized <poll.h> over <sys/poll.h> 2015-09-14 08:16:14 +00:00
deraadt
587e6a09eb Switch to including <sys/types.h> instead of <sys/param.h>
This hides the unavoidably cruddy sys/param.h namespace in some programs.
Little impact, because many programs are cruddy and still get it via
other includes.
ports testing thanks to sthen and naddy
ok guenther millert
2015-01-16 00:01:28 +00:00
guenther
b099c39fbd inet_nsap_{addr,ntoa}() were removed on 2013/12/17 2014-08-31 04:04:01 +00:00
guenther
7c5b55ffaa Tackle the endian.h mess. Make it so that:
* you can #include <sys/endian.h> instead of <machine/endian.h>,
   and ditto <endian.h>  (fixes code that pulls in <sys/endian.h> first)

 * those will always export the symbols that POSIX specified for
   <endian.h>, including the new {be,le}{16,32,64}toh() set.  c.f.
	http://austingroupbugs.net/view.php?id=162

   if __BSD_VISIBLE then you also get the symbols that our <machine/endian.h>
   currently exports (ntohs, NTOHS, dlg's bemtoh*, etc)

 * when doing POSIX compiles (not __BSD_VISIBLE), then <netinet/in.h> and
   <arpa/inet.h> will *stop* exporting the extra symbols like BYTE_ORDER
   and betoh*

ok deraadt@
2014-07-12 16:25:08 +00:00
deraadt
4a39ccd02c Remove excessive sys/cdefs.h inclusion
ok guenther millert kettenis
2012-12-05 23:19:48 +00:00
guenther
de9f3fadcd Improve POSIX/SUS compliance of <netdb.h>, <sys/socket.h>, and <sys/un.h>.
Much ports testing of various versions by naddy@ and jasper@
ok matthew@, miller@
2012-09-15 00:47:08 +00:00
guenther
17c9ee9b67 Instead of <arpa/inet.h> pulling in <netinet/in.h>, just copy in the
three things that it needed from there: INET_ADDRSTRLEN, INET6_ADDRSTRLEN,
and struct in_addr.  Add protecting #ifndefs to netinet6?/in6?.h for those.

ok deraadt@
2012-07-10 11:49:42 +00:00
guenther
fb11ead1ea Improve compliance for <arpa/inet.h> and <netinet/in.h> to define/declare
all the symbols that POSIX says they must and fewer that they can't and,
most importantly, to not require a specific ordering of headers.

ports testing by naddy@
ok millert@ deraadt@
2012-06-26 06:39:27 +00:00
otto
abf3e76998 fix inet_ntop(3) prototype; ok millert@ libc to be bumbed very soon 2008-12-09 19:38:38 +00:00
deraadt
a19ae36332 TIMEOUT* values are not part of the protocol. tftp.h is a namespace
export of the protocol.  you shall not add non-protocol stuff to such
a file, period.
2006-07-26 16:43:30 +00:00
mglocker
af07602a0a Fixing several timeout quirks at tftpd and tftp:
- move TIMEOUT* defines to arpa/tftp.h, as they are used several times
  in tftpd and tftp, and the values are part of the RFC definition.
- tftpd and tftp did count the total retransmission time in retries
  instead in seconds.  fixed.
- tftpd rexmt timeout was hardcoded by a define and therefore didn't
  changed when the timeout option was sent.  fixed.
- limit total retransmission timeout in tftp to also 255 seconds.
- replace obvious atoi()'s by strtonum().

ok claudio@
2006-07-26 09:10:03 +00:00
mglocker
3e7729ddb4 Add blksize option support for tftpd according to RFC 2348.
Note:
While testing the new option, we noticed that our stable tftpd has
a problem if any option is set (e.g. tsize) and you try to put a file.
This has nothing todo with our new blksize option.  We fix this as
next.

ok claudio@
2006-07-20 09:42:44 +00:00
millert
425c26cc4c Get rid of non-OpenBSD bits and use _BYTE_ORDER not BYTE_ORDER
OK deraadt@
2005-12-20 02:06:56 +00:00
deraadt
c5a6a5b3f6 TSIZE & TIMEOUT support; from freebsd via tholo 2004-01-27 02:25:30 +00:00
espie
d1f942ab4c Remove unnecessary typedef usage.
u_char -> unsigned char
u_short -> unsigned short
u_long -> unsigned long
u_int -> unsigned int

okay millert@
2004-01-22 21:48:02 +00:00
jakob
1aeee3deda add a couple of new RR types; ok deraadt@ 2004-01-17 21:01:31 +00:00
avsm
89b95c1c6c add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
2003-08-01 17:38:33 +00:00
avsm
3e87668a71 backout the __bounded__ attributes for a while; requested by deraadt@ 2003-06-26 19:34:17 +00:00
avsm
585be00bb5 Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok
2003-06-26 18:35:13 +00:00
millert
e33d3bd3b8 Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.
2003-06-02 19:34:12 +00:00
millert
c72b5b24e1 Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically. 2002-02-16 21:27:05 +00:00
jakob
a572a86e93 add support for EDNS0 extended flag DNSSEC OK (aka DO). ok deraadt@ 2001-07-31 22:02:18 +00:00
jakob
b55eb29af7 EDNS0 RFC ref typo. ok deraadt@ 2001-07-25 17:05:46 +00:00
itojun
79b6bf3810 support EDNS0 (RFC2671) buffer size notification on DNS queries.
"options edns0" in /etc/resolv.conf will enable the behavior.  no behavior
change if you don't have the line.  see resolv.conf(5) for more details.

EDNS0 is useful for avoiding TCP DNS queries/replies on larger DNS responses.
also, draft-ietf-dnsext-message-size-* plans to mandate EDNS0 support for DNS
clients that support IPv6 transport.
2001-06-11 10:05:58 +00:00
todd
941451a598 spelling 2001-01-04 21:36:58 +00:00
niklas
5ea2d675e0 Well, as we are heading for a release people are encouraged to rebuild their
entire trees for testing anyway, I might as well do this intrusive touching
of include files now.  Added openBSD tags.
1997-09-21 10:45:23 +00:00
deraadt
9d8732d59b typo; graphix@iastate.edu 1997-08-12 11:43:36 +00:00
millert
d698e0d326 Use u_int16_t, not short in struct tftphdr. From Marc Evans <marc@destek.net>. 1997-06-29 07:12:44 +00:00
millert
5290f10fc1 Use in_addr_t not u_long. 1997-04-05 20:58:28 +00:00
downsj
1231c44100 BIND 4.9.5 includes. 1997-03-13 19:11:49 +00:00
robin
af0841dd0b Fix SLC_NAME_OK() macro which would return non-zero, if given the
argument: 0 (which is not a valid SLC code -- valid SLC codes are currently
1 -> 30 inclusive, from RFC-1184).
1996-12-11 17:05:25 +00:00
deraadt
ddcc1519bd add rfc1184 components; from robin@mailgate.dtc.rankxerox.co.uk 1996-12-04 01:56:09 +00:00
dm
1ddd5cc1d5 netbsd: bind 4.9.3 1996-02-19 19:53:13 +00:00
deraadt
df930be708 initial import of NetBSD tree 1995-10-18 08:37:01 +00:00