summaryrefslogtreecommitdiff
path: root/sys/net/rtsock.c
AgeCommit message (Collapse)Author
2002-07-17Don't dereference freed memory.Artur Grabowski
2002-07-03fix a null deref in sysctl_iflist()Michael Shalayeff
2002-07-02inital -> initialNathan Binkert
2002-03-15Kill #if __STDC__ used to do K&R vs. ANSI varargs/stdarg; just do thingsTodd C. Miller
the ANSI way.
2002-03-14First round of __P removal in sysTodd C. Miller
2001-12-10use queue.h macros for TAILQ operationsJason Wright
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-09-20occured->occurredMike Pechkin
idea from deraadt@ via NetBSD millert@ ok
2001-07-21repair validation on RTAX_GENMASK insertion. has been broken since 44bsd.Jun-ichiro itojun Hagino
(freebsd3 has a fix since 1999, but has insufficient validation on sa_len)
2001-06-04adjust routing socket message (kernel -> user) to the right size.Jun-ichiro itojun Hagino
with old code we may see junk at the end. sync with kame, 4.4BSD bug.
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-01-19pull post-4.4BSD change to sys/net/route.c from BSD/OS 4.2 (UCB copyrighted).Jun-ichiro itojun Hagino
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.
2000-12-13have add set locks, too. okay itojun@Niels Provos
2000-03-12don't touch root radix node on RTM_*. this can panic system fromJun-ichiro itojun Hagino
non-root userland process, under certain routing table setup. http://orange.kame.net/dev/query-pr.cgi?pr=217
2000-02-17backout incomplete hack from KAME codebase (originally from bbn).Jun-ichiro itojun Hagino
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.
2000-02-07make more check about mbuf len before rolling message for routing header.Jun-ichiro itojun Hagino
1999-12-08bring in KAME IPv6 code, dated 19991208.Jun-ichiro itojun Hagino
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).
1998-08-24Don't deref NULL.Jason Downs
1998-05-18first step to the setsockopt/getsockopt interface as described inNiels Provos
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.
1997-12-15fix for route change crash; from freebsdTheo de Raadt
1997-12-12permit non-root to use RTM_GET, but no other calls; netbsdTheo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt