summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_mroute.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Introduce if_input_local() a function to feed local traffic back tompi2015-09-121-2/+2
| | | | | | | | | | the protocol queues. It basically does what looutput() was doing but having a generic function will allow us to get rid of the loopback hack overwwritting the rt_ifp field of RTF_LOCAL routes. ok mikeb@, dlg@, claudio@
* Replace sockaddr casts with the proper satosin(), ... calls.bluhm2015-09-011-2/+2
| | | | From David Hill; OK mpi@; tested kspillner@; tweaks bluhm@
* In kernel initialize struct sockaddr_in and sockaddr_in6 to zerobluhm2015-08-241-1/+3
| | | | | | | everywhere to avoid passing around pointers to uninitialized stack memory. While there, fix the call to in6_recoverscope() in fill_drlist(). OK deraadt@ mpi@
* rename mbuf ** parameter from m to mp, to match other similar codederaadt2015-07-151-18/+18
|
* Get rid of the undocumented & temporary* m_copy() macro added formpi2015-06-301-8/+8
| | | | | | | | compatibility with 4.3BSD in September 1989. *Pick your own definition for "temporary". ok bluhm@, claudio@, dlg@
* Implement 2 sysctl to retrieve the multicast forwarding cache (mfc) and theclaudio2015-02-091-1/+88
| | | | | virtual interface table (vif). Will be used by netstat soon. Looked over by guenther@
* De-static to make ddb hangman harder. OK phessler, henningclaudio2015-02-081-53/+54
|
* mechanical conversion of this code to using siphash instead of some xors.dlg2015-02-071-5/+23
| | | | ok tedu@ claudio@
* Remove the "multicast_" prefix from the fields a multicast-only struct.mpi2014-12-171-3/+3
| | | | Prodded by claudio@ and mikeb@
* Use an interface index instead of a pointer for multicast options.mpi2014-12-171-2/+2
| | | | | | | | | | | | Output interface (port) selection for multicast traffic is not done via route lookups. Instead the output ifp is registred when setsockopt(2) is called with the IP{V6,}_MULTICAST_IF option. But since there is no mechanism to invalidate such pointer stored in a pcb when an interface is destroyed/removed, it might lead your kernel to fault. Prevent a fault upon resume reported by frantisek holop, thanks! ok mikeb@, claudio@
* Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.mpi2014-12-051-1/+2
| | | | ok mikeb@, krw@, bluhm@, tedu@
* add back the sys/sysctl.h include removed in rev 1.60jsg2014-09-301-1/+2
| | | | fixes the kernel build when PIM is defined
* No need for raw_cb.hmpi2014-08-141-2/+1
|
* Kill MRT_{ADD,DEL}_BW_UPCALL interfaces and the bandwidth monitoringmpi2014-08-141-668/+2
| | | | | | code that comes with them. ok mikeb@, henning@
* Fewer <netinet/in_systm.h> !mpi2014-07-221-2/+1
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-13/+13
| | | | after discussions with beck deraadt kettenis.
* ip_output() using varargs always struck me as bizarre, esp since it's onlyhenning2014-04-211-3/+4
| | | | | | ever used to pass on uint32 (for ipsec). stop that madness and just pass the uint32, 0 in all cases but the two that pass the ipsec flowinfo. ok deraadt reyk guenther
* we'll do fine without casting NULL to struct foo * / void *henning2014-04-211-11/+6
| | | | ok gcc & md5 (alas, no binary change)
* bzero/bcmp -> memset/memcmp. ok matthewtedu2014-01-091-10/+10
|
* delete UPCALL_TIMING debug code from a the dark agesderaadt2013-10-271-44/+1
|
* Remove the number of in_var.h inclusions by moving some functions andmpi2013-10-231-2/+1
| | | | | | global variables to in.h. ok mikeb@, deraadt@
* tedu broken Resource Reservation Protocol code that was ifdef RSVP_ISI.mpi2013-05-021-308/+2
| | | | ok deraadt@, tedu@ (implicit)
* no need for a lot of code to include proc.htedu2013-03-281-3/+1
|
* de-guttenberg our stack a bithenning2011-04-041-13/+3
| | | | | we don't need 7 f***ing copies of the same code to do the protocol checksums (or not, depending on hw capabilities). claudio ok
* m_copyback can fail to allocate memory, but is a void fucntion so gymnasticsblambert2010-07-021-3/+4
| | | | | | | | | are required to detect that. Change the function to take a wait argument (used in nfs server, but M_NOWAIT everywhere else for now) and to return an error ok claudio@ henning@ krw@
* remove proc.h include from uvm_map.h. This has far reaching effects, astedu2010-04-201-1/+2
| | | | | | sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
* timeout_add -> timeout_add_msecblambert2009-08-011-10/+10
| | | | ok michele@ claudio@
* Get rid of the token bucket filter.michele2009-07-131-271/+9
| | | | | | | Traffic shaping code should not be inside routing code. If you want to rate-limit use altq instead. ok claudio@ henning@ dlg@
* Use MAXTTL instead of the hardcoded value.michele2009-07-091-2/+2
|
* Initial support for routing domains. This allows to bind interfaces toclaudio2009-06-051-2/+2
| | | | | | | | | alternate routing table and separate them from other interfaces in distinct routing tables. The same network can now be used in any doamin at the same time without causing conflicts. This diff is mostly mechanical and adds the necessary rdomain checks accross net and netinet. L2 and IPv4 are mostly covered still missing pf and IPv6. input and tested by jsg@, phessler@ and reyk@. "put it in" deraadt@
* remove another dead store.chl2008-09-161-2/+1
| | | | | | spotted by markus@ ok henning@ mpf@
* remove dead stores and newly created unused variables.chl2008-09-151-2/+1
| | | | | | Found by LLVM/Clang Static Analyzer. ok mpf@ looks good mk@ ok henning@
* return with ENOTTY instead of EINVAL for unknown ioctl requests.brad2008-01-021-2/+2
| | | | ok claudio@ krw@ dlg@
* add sysctl entry points into various network layers, in particular toderaadt2007-12-141-1/+28
| | | | provide netstat(1) with data it needs; ok claudio reyk
* ip_mroute.c is in bad shape.michele2007-05-221-863/+858
| | | | | | | This first step makes it style(9) compliant. Just a whitespace diff, no binary change. OK claudio@ norby@
* ``it's'' -> ``its'' when the grammar gods require this change.miod2007-04-101-2/+2
|
* Consistently spell FALLTHROUGH to appease lint.jsg2007-02-141-3/+3
| | | | ok kettenis@ cloder@ tom@ henning@
* Change cast of last vararg to ip_output to match what ip_output expects,pascoe2006-06-151-3/+3
| | | | | | for clarity. henning@ claudio@ ok
* fix corruption of pim register packets. From Hideki ONO, thanks!hshoexer2006-05-111-2/+2
| | | | ok mcbride@ itojun@
* Remove virtual tunnel support from the mrouting code. The virtual tunnelclaudio2006-04-251-108/+4
| | | | | | code breaks multicast on gif(4) interfaces and it is far better to configure a real gif(4) tunnel instead of a multicast tunnel as the latter is almost not manageable. OK norby@, mblamer@
* csum -> csum_flagsbrad2005-04-251-5/+5
| | | | ok krw@ canacar@
* fix commentbrad2005-01-151-2/+2
|
* Duplicate nested if statement in PIM code.mcbride2005-01-141-3/+2
| | | | From brad@
* Add kernel support for Protocol Independant Multicast (PIM)mcbride2005-01-141-24/+1437
| | | | | | | | Information: http://netweb.usc.edu/pim/ From Pavlin Radoslavov <pavlin@icir.org> ok deraadt@ brad@
* Multicast routing cleanup from Pavlin Radoslavovmcbride2004-11-241-426/+441
| | | | | | | | | | - sync ip_mroute.c with NetBSD - import some FreeBSD changes to MFC entry handling - set im->im_vif correctly when sending IGMPMSG_WRONGVIF - increment mrtstat.mrts_upcalls correctly - return error from get_sg_cnt() if there is no matching forwarding entry ok henning@ brad@ naddy@
* Don't allow SIOCGET{VIF,SG}CNT from sockets other than the multicast router.brad2004-08-241-12/+16
| | | | | | | From NetBSD Fixes PR 3825 ok mcbride@ canacar@ claudio@
* fix vlan destroy for MROUTING; report spamme@wouz.dk via tedu; ok itojunmarkus2004-01-061-1/+3
|
* put an mi wrapper around stdarg.h/varargs.h. gcc3 moved stdarg/varargs macrosespie2004-01-031-2/+2
| | | | | | | to built-ins, so eventually we will have one version of these files. Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes. okay millert@, drahn@, miod@.
* de-register. deraadt okitojun2003-12-101-90/+90
|
* do not flip ip_len/ip_off in netinet stack. deraadt ok.itojun2003-07-091-10/+9
| | | | (please test, especially PF portion)