summaryrefslogtreecommitdiff
path: root/sys/netinet/in.c
AgeCommit message (Collapse)Author
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-03-04With the exception of two other small uncommited diffs this movesBrad Smith
the remainder of the network stack from splimp to splnet. ok miod@
2006-02-21Fix a panic reported by D.Snezhkov by issuing an ifconfig command withClaudio Jeker
-alias and netmask used at the same time. This resulted in a corrupted routing table and a panic in rn_walktree after the interface was destroyed. OK krw@ henning@
2005-06-03Hold a reference to the relevant struct in_ifaddr while a multicast addressChristopher Pascoe
is bound on the interface. ok mcbride@ henning@
2005-03-07Correctly compare routes in in_addprefix. If a netmask is supplied it needsClaudio Jeker
to be compared too -- 10/8 and 10/24 are not equal. This fixes a problem with overlapping networks reported by Simon Slaytor. OK henning@
2005-01-15From NetBSD:Christopher Pascoe
- Keep track of allhost multicast address record we joined into each in_ifaddr and delete it when an address is purged. - Don't simply try to delete a multicast address record listed in the ia_multiaddrs. It results a dangling pointer. Let whoever holds a reference to it to delete it. mcbride@ markus@ ok
2004-11-18for loopback, set ia_dstaddr instead of ia_ifa.ifa_dstaddr in in_ifinit()Daniel Hartmeier
found by Ruslan Ermilov, ok markus@ http://marc.theaimsgroup.com/?l=freebsd-net&m=110072900204253
2004-08-24Don't allow SIOCGET{VIF,SG}CNT from sockets other than the multicast router.Brad Smith
From NetBSD Fixes PR 3825 ok mcbride@ canacar@ claudio@
2004-06-21When in_ifinit fails and we've created a new address, clean it up beforeRyan Thomas McBride
returning. ok markus@
2004-05-31clean some copy&paste leftovers from KAME code.Marco Pfatschbacher
ok markus, itojun.
2004-03-28memory leak fix; from pat, via tedu, ok dhartmeiTheo de Raadt
2003-12-10de-register. deraadt okJun-ichiro itojun Hagino
2003-06-23install host route for p2p interface even if there's connected net routeJun-ichiro itojun Hagino
by broadcast interface. NetBSD PR 21903. markus ok
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-10-04Prevent packet processing while tweaking address and routing tables.Henric Jungheim
ok art@
2002-09-11KNF - return is not a function. sync w/kameJun-ichiro itojun Hagino
2002-07-12- Add a flags argument to dohooks.Artur Grabowski
The flag can be either HOOK_REMOVE or HOOK_REMOVE|HOOK_FREE. o HOOK_REMOVE removes the hook from the list before executing it. o HOOK_FREE frees the hook after that. - Let dostartuphooks use HOOK_REMOVE|HOOK_FREE so we can reclaim the memory. - Let doshutdownhooks use HOOK_REMOVE so that when some shutdown hook panics (they do that all the #@$%! time these days) we don't loop for ever. Don't HOOK_FREE, it doesn't matter and I don't want to add another possible panic condition for shutdown hooks. - Actually free the pointer we're throwing away in hook_disestablish (I wonder how much memory this has leaked over the years).
2002-06-09whitespaceJun-ichiro itojun Hagino
2002-04-24Add hooks to struct ifnet that allow to register callbacks that will beDaniel Hartmeier
notified of interface address changes. ok provos@, angelos@
2002-04-01cleanup in_broadcast. don't consider /32 addrs as broadcast.Jun-ichiro itojun Hagino
2002-03-14First round of __P removal in sysTodd C. Miller
2001-11-24KNFTheo de Raadt
2001-07-27do not check in_dstaddr in rtinitflags() macro, otherwiseJun-ichiro itojun Hagino
linklocal address manipulation codepath will choke. sync with kame
2001-07-23improve IFA_ROUTE handling. do not lose connected route on primaryJun-ichiro itojun Hagino
interface address removals.
2001-06-08Cut down on include files.Angelos D. Keromytis
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2000-10-06remove now-obsolete SIOCSIFPHY* handling in in{6,}_control.Jun-ichiro itojun Hagino
sync with kame.
2000-03-22comment out ifconfig undo code. they are necessary to avoid memoryJun-ichiro itojun Hagino
leakage, however, was too strict that they disallow multiple address from same prefix to be assigned (when rtinit returns EEXIST). we'll need to improve it.
2000-03-12undo interface address addition, if in_ifinit fails.Jun-ichiro itojun Hagino
2000-01-04If SIOCSIFADDR fails, put back the old address before calling splx().Federico G. Schwindt
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).
1999-04-20Merge MROUTING and IPSEC wrt handling of IP-in-IP tunnelled packets.Niklas Hallqvist
Fix a panic case in the MROUTING code too. Drop M_TUNNEL support, nothing ever uses it.
1998-04-25close PR 459David Leonard
1998-03-27Fix bug (I introduced) with aliases and in_broadcast().Angelos D. Keromytis
1998-03-20for SIOCGIF{NETMASK,DSTADDR,BRDADDR} calls match address to if aliases entriesTheo de Raadt
so that correct information is returned (previously information about the primary address was returned). If the address cannot be found on the interface, return information about the primary (for OSIOC* compatibility). work by angelos and myself.
1998-03-19This should fix some problems with the aliases.Angelos D. Keromytis
1998-02-28Another shot at disallowing TCP connections to 255.255.255.255,Angelos D. Keromytis
0.0.0.0 and any local broadcast addresses. Tested.
1998-02-25patch could not have been tested. panics machine on bootTheo de Raadt
1998-02-25please indent as the file is currently indentedTheo de Raadt
1998-02-25Pay attention.Angelos D. Keromytis
1998-02-25Disallow TCP connects to 255.255.255.255 or local broadcast addresses.Angelos D. Keromytis
1996-09-12Don't assume other subnets than our own are local to us; from Luigi RizzoThorsten Lockert
by way of Jason Downs & Theo de Raadt. Can be overridden in the kernel configuration file by using "option SUBNETSARELOCAL=1"
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt