bms
9dc2491bfe
Document the AF_LINK extension which was imported from NetBSD.
2007-02-28 21:28:33 +00:00
bms
0738a9d791
Nuke ascii2addr() and addr2ascii(). They have no consumers anywhere
...
in FreeBSD, and originated from INRIA IPv6.
Stub out netstat reference to addr2ascii() I mistakenly introduced.
Update misleading man page sections.
Merge NetBSD's getnameinfo() AF_LINK extensions for a portable way to
print link-layer addresses given a sockaddr_dl(), minus the IEEE 1394
bits which don't map directly to our code.
Obtained from: NetBSD (getnameinfo.c)
Discussed on: current (March 2006)
2007-02-28 21:18:38 +00:00
rrs
dfdc42503b
Fix include declaration it was sys/sctp.h should be netinet/sctp.h,
...
reported by pluknet@gmail.com .
2007-02-26 12:23:32 +00:00
rrs
d7423f55fb
Fixes build breakage.. invalid type casts.. and invalid
...
type for size in one place.
2007-02-22 14:48:12 +00:00
rrs
ae6663525a
First cut of the sctp man pages. Still need work.
2007-02-22 14:32:39 +00:00
rrs
5a82d02989
Fixes __FreeBSD__ being present (they should not)
...
and also trailing garbage on undef of magic numbers.
2007-02-22 13:39:57 +00:00
rrs
d35264cb57
Adds a performance improvement for when sctp_sendx is
...
called with only one address, we then can call the
generic system call. Also fixes some socket api
type issues and cleans up the "magic" numbers that
were being used in the code.
Reviewed by: gnn
2007-02-22 12:42:43 +00:00
bms
df992b84fc
Docuemnt exactly which functions access which NSS databases.
...
Point out that FreeBSD libc has compat stubs for GNU glibc NSS
modules which access NSDB_PASSWD/NSDB_GROUP, but not NSDB_HOSTS;
based on painful experience porting nss_mdns.
Reviewed by: ru
2007-01-22 11:45:25 +00:00
imp
cd1f140ae4
Per Regents of the University of Calfornia letter, remove advertising
...
clause.
# If I've done so improperly on a file, please let me know.
2007-01-09 00:28:16 +00:00
rodrigc
0ce5d91ed1
Consistently use a socklen_t type where required, and eliminate
...
GCC warning "dereferencing type-punned pointer will
break strict-aliasing rules".
Reviewed by: rrs
2006-12-16 06:03:43 +00:00
rrs
45136271b2
This adds the "system calls"
...
sctp_getaddrlen()
sctp_connectx()
sctp_bindx()
sctp_opt_info()
sctp_getpaddrs()
sctp_freepaddrs()
sctp_getladdrs()
sctp_freeladdrs()
sctp_sendmsg()
sctp_getassocid()
sctp_send()
sctp_sendx()
sctp_sendmsgx()
sctp_recvmsg()
sctp_peeloff()
Manual pages will be forthcoming (and the commit to porters-handbook)
2006-12-15 12:01:50 +00:00
ume
6c74892876
Use _kevent() instead of kevent().
...
Requested by: nork
2006-12-04 17:08:43 +00:00
cognet
367bc6b8e0
Instead of re-implementing hton[ls] and friends for each arch, add a new MI
...
file, net/ntoh.c, which just implement them using the inline functions from
<sys/endian.h>.
Suggested by: bde
2006-11-06 22:07:47 +00:00
lawrance
20a2ef67d2
Document return values for res_query and res_search.
...
h_errno is not an extern int, just a macro providing an integer lvalue.
PR: doc/50573
Submitted by: Ronald F.Guilmette <rfg@monkeys.com>
Reviewed by: trhodes
MFC after: 3 days
2006-11-04 09:42:22 +00:00
ru
e80cd771cb
Add missing markup bits.
...
Submitted by: Emil Mikulic
2006-10-28 13:05:10 +00:00
ru
f4eec08060
Markup fixes.
2006-09-17 21:27:35 +00:00
yar
dfd296d48e
Respect MK_INET6_SUPPORT.
2006-07-26 08:36:46 +00:00
yar
082a928eac
Fix build w/o INET6.
...
Submitted by: Andre Albsmeier <Andre.Albsmeier siemens com>
2006-07-26 08:35:46 +00:00
ume
d2efba70b7
do not overload the port number on to the return value of
...
str2number(). this could result in an unexpected code path.
Obtained from: KAME
MFC after: 1 week
2006-07-23 15:31:03 +00:00
ume
538856133a
stop use of mutex lock in ICMP lookup.
...
MFC after: 1 week
2006-07-23 07:07:49 +00:00
ume
7169bc1ce5
remove obsolete comments.
...
MFC after: 3 days
2006-07-22 14:36:56 +00:00
ume
636a28fc75
simplification in explore_numeric: unified the post-process with
...
GET_AI and GET_PORT. Commented on an impossible case.
Obtained from: KAME
MFC after: 1 week
2006-07-21 19:02:28 +00:00
ume
34bbbddd7e
RFC3493 requires use of inet_aton for AF_INET.
...
Obtained from: KAME
MFC after: 1 week
2006-07-21 19:00:22 +00:00
ume
9cc6e84d28
clean-up: rewrote explore_null and explore_numeric without using sentinel.
...
we do not need it since we make (at most) a single addrinfo entry in these
cases.
Obtained from: KAME
MFC after: 1 week
2006-07-21 18:57:44 +00:00
ume
cd6fe37440
- draft-ietf-ipngwg-icmp-namelookups-09
...
- make it compilable
It still requires root privilege and is experimental.
Obtained from: KAME
MFC after: 1 week
2006-07-21 18:55:51 +00:00
stefanf
01c3a07e52
Use a prototype for res_init().
...
MFC after: 3 days
2006-07-17 09:27:26 +00:00
ume
dce008dac9
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1 on 64 bit
...
arch.
X-MFC after: never
2006-05-21 11:27:28 +00:00
ume
c499297986
Return EAI_OVERFLOW instead of EAI_MEMORY when the supplied buffer is
...
too short. This conforms to RFC3493, POSIX and XPG6.
Obtained from: NetBSD
2006-05-21 11:22:31 +00:00
ume
2103e7a60f
Upgrade res_update(3) and the friends to BIND9's one excluding TSIG
...
support.
X-MFC after: never
2006-05-21 11:19:36 +00:00
ume
ab3eacdf31
Fix gethostbyaddr() prototype to conform to IEEE Std 1003.1:
...
http://www.opengroup.org/onlinepubs/009695399/functions/gethostbyaddr.html
gethostbyaddr_r() is changed as well.
It breaks ABI backward compatibility on 64 bit arch. So, we fix it
on 32 bit arch only for now.
Reported by: Rostislav Krasny <rosti.bsd@gmail.com>
2006-05-12 15:37:23 +00:00
ume
90151bff3d
Fix alignment problem on AMD64.
...
Reported by: Pascal Hofstee <caelian__at__gmail.com>
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Tested by: Pascal Hofstee <caelian__at__gmail.com>
2006-05-02 23:02:32 +00:00
ume
86fb2d93f4
cache' couldn't co-exist with
compat'.
...
Submitted by: "Michael Bushkov" <bushman__at__rsu.ru>
2006-04-30 21:25:00 +00:00
ume
e14f1c3b3b
- Extend the nsswitch to support Services, Protocols and Rpc
...
databases.
- Make nsswitch support caching.
Submitted by: Michael Bushkov <bushman__at__rsu.ru>
Sponsored by: Google Summer of Code 2005
2006-04-28 12:03:38 +00:00
ume
b6bb84cf9e
- make reentrant version of netdb functions glibc style API, and
...
expose them to outside of libc.
- make netdb functions NSS friendly.
Reviewed by: arch@ and current@ (no objection)
2006-04-15 16:20:27 +00:00
ume
5965562ffe
fix indent.
2006-04-01 15:53:39 +00:00
ume
3a893e11a7
Expose res_update and friends again. At least, ports/mail/spamilter
...
uses them.
Now, we have res_nupdate and res_nmkupdate as well, but they are
still based on our old resolver for binary backward compatibility.
So, they don't provide new features such as TSIG support.
Reported by: pointyhat via kris
2006-03-30 20:15:53 +00:00
ume
39501d50fa
If the query choked with EDNS0, retry without EDNS0.
...
Obtained from: res_nquery() of BIND9.
2006-03-28 07:42:57 +00:00
ume
869b9276a7
- Use ANSI C prototype.
...
- Remove trailing space.
2006-03-25 11:46:37 +00:00
ume
bf9a791993
When res_nquerydomain() returns SERVFAIL, we should try next domain.
2006-03-24 13:30:10 +00:00
ume
6d9b77bdc9
When res_send() fails, we should reserve an error code.
2006-03-24 04:49:30 +00:00
ume
b09a8950a1
Update the resolver in libc to BIND9's one.
...
Since, res_sendsigned(3) and the friends use MD5 functions, it is
hard to include them without having MD5 functions in libc. So,
res_sendsigned(3) is not merged into libc.
Since, res_update(3) in BIND9 is not binary compatible with our
res_update(3), res_update(3) is leaved as is, except some
necessary modifications.
The res_update(3) and the friends are not essential part of the
resolver. They are not defined in resolv.h but defined in
res_update.h separately in BIND9. Further, they are not called from
our tree. So, I hide them from our resolv.h, but leave them only
for binary backward compatibility (perhaps, no one calls them).
Since, struct __res_state_ext is not exposed in BIND9, I hide it
from our resolv.h. And, global variable _res_ext is removed. It
breaks binary backward compatibility. But, since it is not used from
outside of our libc, I think it is safe.
Reviewed by: arch@ (no objection)
2006-03-21 16:11:11 +00:00
delphij
53d6233f74
When we are doing initialization against q, use its own size, not
...
the size of q2. This should be a no-op because q and q2 are of
the same type.
Submitted by: Alexey Dobriyan <adobriyan gmail com>
2006-03-21 12:39:29 +00:00
ru
388e590f95
Reimplementation of world/kernel build options. For details, see:
...
http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html
The src.conf(5) manpage is to follow in a few days.
Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
2006-03-17 18:54:44 +00:00
deischen
bb2532ee37
ns_name_skip was recently redefined to __ns_name_skip
...
like the others in <include/arpa/nameser.h>.
Submitted by: ume
2006-03-13 04:49:40 +00:00
deischen
a0f6b0f1d0
Add each directory's symbol map file to SYM_MAPS.
2006-03-13 01:15:01 +00:00
deischen
138dd54357
Add symbol maps and initial symbol version definitions to libc.
...
Reviewed by: davidxu
2006-03-13 00:53:21 +00:00
ume
5e1521cce3
Handle the errors returned by res_querydomain() in same manner.
...
Reported by: yar
Tested by: yar, Rostislav Krasny <rosti.bsd__at__gmail.com>
MFC after: 1 week
2006-03-01 15:53:49 +00:00
deischen
2a2559a103
Correct a comment.
...
Staticize two tables thare are not visible in <resolv.h>
and which are also local in Solaris' libresolv.
Remove two functions that are not referenced in libc nor
anywhere else I can find, not visible in <resolv.h> and
which are also local in Solaris libresolv.
2006-02-27 22:08:16 +00:00
ume
a8acef0bfb
Sync inet_net_pton() and inet_net_ntop() with latest BIND9's includes
...
an IPv6 support.
PR: kern/93740
Submitted by: Rudolf Cejka <cejkar__at__fit.vutbr.cz>
Obtained from: BIND9
MFC after: 1 week
2006-02-26 05:44:21 +00:00
ume
d095cafa05
- Just query 'as is', if there is a trailing dot in the name.
...
- Don't query 'as is' twice.
PR: bin/62139
Reported by: Rostislav Krasny <rosti.bsd__at__gmail.com>
Tested by: Rostislav Krasny <rosti.bsd__at__gmail.com>
Obtained from: BIND9 (with some modification)
MFC after: 1 week
2006-02-24 16:53:42 +00:00