summaryrefslogtreecommitdiff
path: root/sys/netinet/in.c
AgeCommit message (Expand)Author
2013-08-08Insert new IPv4 addresses in only one place, no functional change.Martin Pieuchot
2013-06-23Revert r1.78 for now, it breaks ipv4 on carp. As found the hard way byStuart Henderson
2013-06-20Revert previous and unbreak asr, the new include should be protected.Martin Pieuchot
2013-06-20Allocate the various hook head descriptors as part of the ifnetMartin Pieuchot
2013-06-17Always add/remove IPv4 addresses consistently from the global list and tree.Martin Pieuchot
2013-05-31Remove the scrub argument from in_ifinit() and simply call in_ifscrub()Martin Pieuchot
2013-05-13Make SIOCSIFDSTMASK and SIOCSIFNETMASK fail if there is no previousMartin Pieuchot
2013-04-17Simplify the check to call in_ifinit() by merging two conditionalMartin Pieuchot
2013-03-22simple replacement of LIST_END with NULL. ok mpiTed Unangst
2013-03-07Remove the IFAFREE() macro, the ifafree() function it was calling alreadyMartin Pieuchot
2012-07-10in_scrubprefix needs the same netmask checking as in_addprefix (which wasClaudio Jeker
2012-07-08Instead of casting interface address pointers, use the macros NULLAlexander Bluhm
2012-01-03To access the ifaddr of an in_ifaddr or in6_ifaddr struct, it isAlexander Bluhm
2011-10-13Since the IPv6 madness is not enough introduce NAT64 -- which is actuallyClaudio Jeker
2011-07-06allow /31s on broadcast interfaces (eg ethernet) to work as per rfc3021.David Gwynne
2011-07-03slight knf (particularly the function decls) so i dont get too distractedDavid Gwynne
2011-07-02gc in_interfaces. doesnt seem to do anything except get incremented.David Gwynne
2011-04-28Make in_broadcast() rdomain aware. Mostly mechanical change.Claudio Jeker
2010-11-28Only call ifa_del() when no error happend previously. Do the same thingClaudio Jeker
2010-11-17an extra parameter for in_ifinit, indicating wether the ifaddr passed to itHenning Brauer
2010-11-17use ifa_update_broadaddr and make sure bcast address is set before callingHenning Brauer
2010-11-17move the ifa_add call to in_ifinit() so it is called AFTER the ifaddrHenning Brauer
2010-01-13remove subnetsarelocal / SUBNETSARELOCAL. it's been off by default sinceHenning Brauer
2010-01-134.2BSD had the host parts bit of the address all zero as broadcast address.Henning Brauer
2010-01-13we don't need broadcast for the classful network AND broadcast for theHenning Brauer
2010-01-13instead of fiddling with the per-interface address lists directly inHenning Brauer
2010-01-13let's admit it's not 1992 any more. CIDR is around for a long time, evenHenning Brauer
2009-11-03rtables are stacked on rdomains (it is possible to have multiple routingClaudio Jeker
2009-06-05Initial support for routing domains. This allows to bind interfaces toClaudio Jeker
2009-03-15Introduce splsoftassert(), similar to splassert() but for soft interruptMiod Vallat
2008-06-04adderss -> addressMiod Vallat
2007-10-01Last of the really easy bzero() -> M_ZERO. Use 'p = malloc(sizeof(*p) ...'Kenneth R Westerback
2007-09-17remove backpointer from ifa to ifp if an address gets delete; fixesMarkus Friedl
2007-07-20Remove inm_ifp from struct in_multi -- caching struct ifnet is dangerousClaudio Jeker
2007-07-04Fix a use after free crash in in_delmulti(). If a interface is detachedClaudio Jeker
2007-05-27thou shalt not use static in the kernelDavid Gwynne
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
2007-01-02move local network route to real interface instead of carp interface; from mpf@Markus Friedl
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
2006-02-21Fix a panic reported by D.Snezhkov by issuing an ifconfig command withClaudio Jeker
2005-06-03Hold a reference to the relevant struct in_ifaddr while a multicast addressChristopher Pascoe
2005-03-07Correctly compare routes in in_addprefix. If a netmask is supplied it needsClaudio Jeker
2005-01-15From NetBSD:Christopher Pascoe
2004-11-18for loopback, set ia_dstaddr instead of ia_ifa.ifa_dstaddr in in_ifinit()Daniel Hartmeier
2004-08-24Don't allow SIOCGET{VIF,SG}CNT from sockets other than the multicast router.Brad Smith
2004-06-21When in_ifinit fails and we've created a new address, clean it up beforeRyan Thomas McBride
2004-05-31clean some copy&paste leftovers from KAME code.Marco Pfatschbacher
2004-03-28memory leak fix; from pat, via tedu, ok dhartmeiTheo de Raadt
2003-12-10de-register. deraadt okJun-ichiro itojun Hagino