summaryrefslogtreecommitdiffstats
path: root/sys/net/rtsock.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* use queue.h macros for TAILQ operationsjason2001-12-101-7/+9
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-2/+2
| | | | (Look ma, I might have broken the tree)
* occured->occurredmpech2001-09-201-2/+2
| | | | | idea from deraadt@ via NetBSD millert@ ok
* repair validation on RTAX_GENMASK insertion. has been broken since 44bsd.itojun2001-07-211-2/+4
| | | | (freebsd3 has a fix since 1999, but has insufficient validation on sa_len)
* adjust routing socket message (kernel -> user) to the right size.itojun2001-06-041-2/+8
| | | | with old code we may see junk at the end. sync with kame, 4.4BSD bug.
* No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)ho2001-05-161-4/+3
|
* pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).itojun2001-01-191-14/+19
| | | | | | | | | | | | | | | | | | | have sys/net/route.c:rtrequest1(), which takes rt_addrinfo * as the argument. pass rt_addrinfo all the way down to rtrequest, and ifa->ifa_rtrequest. 3rd arg of ifa->ifa_rtrequest is now rt_addrinfo * instead of sockaddr * (almost noone is using it anyways). benefit: the follwoing command now works. previously we need two route(8) invocations, "add" then "change". # route add -inet6 default ::1 -ifp gif0 remove unsafe typecast in rtrequest(), from rtentry * to sockaddr *. it was introduced by 4.3BSD-reno and never corrected. XXX is eon_rtrequest() change correct regarding to 3rd arg? eon_rtrequest() and rtrequest() were incorrect since 4.3BSD-reno, so i do not have correct answer in the source code. someone with more clue about netiso-over-ip, please help.
* have add set locks, too. okay itojun@provos2000-12-131-12/+12
|
* don't touch root radix node on RTM_*. this can panic system fromitojun2000-03-121-6/+10
| | | | | non-root userland process, under certain routing table setup. http://orange.kame.net/dev/query-pr.cgi?pr=217
* backout incomplete hack from KAME codebase (originally from bbn).itojun2000-02-171-89/+2
| | | | | | | | | | | | the hack tries to respect ifa or ifp passed to RTM_ADD. However, the change broke certain link-layers. They include: - midway ethernet card (en*), which uses sockaddr_dl in gateway portion to pass PVC information. with the patch, the gateway portion will be overwritten by empty sockaddr_dl and PVC initialization will fail. - IPv6, which can't set static ND table with the patch (ndp -s) with the similar reason. There may be improved hack coming soon, hope the new one does not break others.
* make more check about mbuf len before rolling message for routing header.itojun2000-02-071-5/+12
|
* bring in KAME IPv6 code, dated 19991208.itojun1999-12-081-3/+123
| | | | | | | | | replaces NRL IPv6 layer. reuses NRL pcb layer. no IPsec-on-v6 support. see sys/netinet6/{TODO,IMPLEMENTATION} for more details. GENERIC configuration should work fine as before. GENERIC.v6 works fine as well, but you'll need KAME userland tools to play with IPv6 (will be bringed into soon).
* Don't deref NULL.downsj1998-08-241-3/+3
|
* first step to the setsockopt/getsockopt interface as described inprovos1998-05-181-2/+3
| | | | | | | draft-mcdonald-simple-ipsec-api, kernel notifies (EMT_REQUESTSA) signal userland key management applications when security services are requested. this is only for outgoing connections at the moment, incoming packets are not yet checked against the selected socket policy.
* fix for route change crash; from freebsdderaadt1997-12-151-2/+2
|
* permit non-root to use RTM_GET, but no other calls; netbsdderaadt1997-12-121-2/+22
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-3/+3
|
* From NetBSD: 960217 mergeniklas1996-03-031-26/+48
|
* initial import of NetBSD treederaadt1995-10-181-0/+839