summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add the IP_RECVIF socket option, which supplies a packet's incoming interfacefenner1996-11-111-93/+22
| | | | | | | | using a sockaddr_dl. Fix the other packet-information socket options (SO_TIMESTAMP, IP_RECVDSTADDR) to work for multicast UDP and raw sockets as well. (They previously only worked for unicast UDP).
* Don't allow reassembly to create packets bigger than IP_MAXPACKET, and countfenner1996-10-251-1/+6
| | | | | | | | | attempts to do so. Don't allow users to source packets bigger than IP_MAXPACKET. Make UDP length and ipovly's protocol length unsigned short. Reviewed by: wollman Submitted by: (partly by) kml@nas.nasa.gov (Kevin Lahey)
* Improved in_pcblookuphash() to support wildcarding, and changed relaventdg1996-10-071-11/+3
| | | | | | | | | | callers of it to take advantage of this. This reduces new connection request overhead in the face of a large number of PCBs in the system. Thanks to David Filo <filo@yahoo.com> for suggesting this and providing a sample implementation (which wasn't used, but showed that it could be done). Reviewed by: wollman
* Changed some memcpy()'s back to bcopy()'s.bde1996-06-081-2/+2
| | | | | | | gcc only inlines memcpy()'s whose count is constant and didn't inline these. I want memcpy() in the kernel go away so that it's obvious that it doesn't need to be optimized. Now it is only used for one struct copy in si.c.
* Instrument UDP PCB hashing to see how often the hash lookup is effectivewollman1996-06-051-1/+2
| | | | for incoming packets.
* Make it possible to return more than one piece of control informationwollman1996-05-091-2/+34
| | | | | | | | (PR #1178). Define a new SO_TIMESTAMP socket option for datagram sockets to return packet-arrival timestamps as control information (PR #1179). Submitted by: Louis Mamakos <loiue@TransSys.com>
* Back out my stupid braino; I was thinking strlen and not sizeof.fenner1996-05-021-2/+2
|
* Size temp var correctly; buf[4*sizeof "123"] is not long enoughfenner1996-05-021-2/+2
| | | | to store "192.252.119.189\0".
* inet_ntoa buffer was evaluated twice in log_in_vain, fix it.ache1996-04-271-3/+7
| | | | Thanx to: jdp
* Logging UDP and TCP connection attempts should not be enabled by default.pst1996-04-091-2/+2
| | | | | | It's trivial to create a denial of service attack on a box so enabled. These messages, if enabled at all, must be rate-limited. (!)
* Log TCP syn packets for ports we don't listen on.phk1996-04-041-1/+11
| | | | | | | | | Controlled by: sysctl net.inet.tcp.log_in_vain: 1 Log UDP syn packets for ports we don't listen on. Controlled by: sysctl net.inet.udp.log_in_vain: 1 Suggested by: Warren Toomey <wkt@cs.adfa.oz.au>
* Move or add #include <queue.h> in preparation for upcoming struct socketdg1996-03-111-2/+2
| | | | changes.
* Uniformized pr_ctlinput protosw functions. The third arg is now `voidbde1995-12-161-3/+4
| | | | | | | *' instead of caddr_t and it isn't optional (it never was). Most of the netipx (and netns) pr_ctlinput functions abuse the second arg instead of using the third arg but fixing this is beyond the scope of this round of changes.
* Another mega commit to staticize things.phk1995-12-141-4/+4
|
* Removed unnecessary #includes of vm stuff. Most of them were oncebde1995-12-061-2/+1
| | | | | | | prerequisites for <sys/sysctl.h>. subr_prof.c: Also replaced #include of <sys/user.h> by #include of <sys/resourcevar.h>.
* Fixed recent staticizations. Some protypes for static functions werebde1995-11-161-1/+3
| | | | left in headers and not staticized.
* New style sysctl & staticize alot of stuff.phk1995-11-141-41/+17
|
* Merge 4.4-Lite-2: always check the UDP checksum if it is present, evenwollman1995-09-221-5/+5
| | | | if we are not generating checksums. (Save a test in the input path.)
* Add a sanity check for the UDP length field in order to preventolah1995-08-171-2/+2
| | | | | | malformed UDP packets to panic the kernel. Reviewed by: davidg, wollman Obtained from: dab@berserkly.cray.com (David A. Borman) via end2end list
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
|
* Replaced some bcopy()'s with memcpy()'s so that gcc while inline/optimize.dg1995-05-091-2/+2
|
* Changed in_pcblookuphash() to not automatically call in_pcblookup() ifdg1995-05-031-2/+9
| | | | | | the lookup fails. Updated callers to deal with this. Call in_pcblookuphash instead of in_pcblookup() in in_pcbconnect; this improves performance of UDP output by about 17% in the standard case.
* Implemented PCB hashing. Includes new functions in_pcbinshash, in_pcbrehash,dg1995-04-091-20/+17
| | | | and in_pcblookuphash.
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-161-3/+4
| | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
* spl back down in unusual out-of-memory condition in udp_output().wollman1995-02-161-1/+3
| | | | Obtained from: Stevens, vol. 2, exercise 23.4 (solution p. 1083)
* Don't add back in the IP header length to ip_len; icmp_error will do itwollman1995-02-161-2/+1
| | | | | | for us. Obtained from: Stevens, vol. 2, p. 774
* Add lots of useful MIB variables and a few not-so-useful ones forwollman1995-02-161-1/+13
| | | | completeness.
* GCC cleanup.phk1994-10-021-2/+3
| | | | | | Reviewed by: Submitted by: Obtained from:
* Added $Id$dg1994-08-021-0/+1
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-1/+3
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+640
OpenPOWER on IntegriCloud