summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Change struct sockaddr_storage member name, because following changeshin2000-01-131-9/+9
| | | | | | | | | | | | is very likely to become consensus as recent ietf/ipng mailing list discussion. Also recent KAME repository and other KAME patched BSDs also applied it. s/__ss_family/ss_family/ s/__ss_len/ss_len/ Makeworld is confirmed, and no application should be affected by this change yet.
* IPSEC support in the kernel.shin1999-12-221-0/+253
| | | | | | | | pr_input() routines prototype is also changed to support IPSEC and IPV6 chained protocol headers. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Suser() simplification:phk1999-04-271-3/+3
| | | | | | | | | | | | | | | | | | | 1: s/suser/suser_xxx/ 2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>. 3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/ The remaining suser_xxx() calls will be scrutinized and dealt with later. There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce. More changes to the suser() API will come along with the "jail" code.
* postpone the sending of IGMP LEAVE msg to after deleting theluigi1999-04-241-2/+8
| | | | | | mc address from the address list. The latter operation on some hardware resets the card, potentially canceling the pending LEAVE pkt.
* Clean up some pointer usage.eivind1998-12-071-2/+4
|
* This commit fixes various 64bit portability problems required fordfr1998-06-071-2/+2
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.phk1997-10-121-2/+2
| | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde
* Distribute and statizice a lot of the malloc M_* types.phk1997-10-111-1/+3
| | | | Substantial input from: bde
* Removed unused #includes.bde1997-08-021-6/+1
|
* The long-awaited mega-massive-network-code- cleanup. Part I.wollman1997-04-271-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following changes: 1) Old-style (pr_usrreq()) protocols are no longer supported, the compatibility glue for them is deleted, and the kernel will panic on boot if any are compiled in. 2) Certain protocol entry points are modified to take a process structure, so they they can easily tell whether or not it is possible to sleep, and also to access credentials. 3) SS_PRIV is no more, and with it goes the SO_PRIVSTATE setsockopt() call. Protocols should use the process pointer they are now passed. 4) The PF_LOCAL and PF_ROUTE families have been updated to use the new style, as has the `raw' skeleton family. 5) PF_LOCAL sockets now obey the process's umask when creating a socket in the filesystem. As a result, LINT is now broken. I'm hoping that some enterprising hacker with a bit more time will either make the broken bits work (should be easy for netipx) or dike them out.
* Don't include <sys/ioctl.h> in the kernel. Stage 2: includebde1997-03-241-2/+2
| | | | <sys/sockio.h> instead of <sys/ioctl.h> in network files.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* Convert raw IP from mondo-switch-statement-from-Hell towollman1997-02-181-1/+1
| | | | | | | | | pr_usrreqs. Collapse duplicates with udp_usrreq.c and tcp_usrreq.c (calling the generic routines in uipc_socket2.c and in_pcb.c). Calling sockaddr()_ or peeraddr() on a detached socket now traps, rather than harmlessly returning an error; this should never happen. Allow the raw IP buffer sizes to be controlled via sysctl.
* Provide PRC_IFDOWN and PRC_IFUP support for IP. Now, when an interfacewollman1997-02-131-2/+1
| | | | | | | | is administratively downed, all routes to that interface (including the interface route itself) which are not static will be deleted. When it comes back up, and addresses remaining will have their interface routes re-added. This solves the problem where, for example, an Ethernet interface is downed by traffic continues to flow by way of ARP entries.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Use the new if_multiaddrs list for multicast addresses rather than thewollman1997-01-131-156/+50
| | | | | | | previous hackery involving struct in_ifaddr and arpcom. Get rid of the abominable multi_kludge. Update all network interfaces to use the new machanism. Distressingly few Ethernet drivers program the multicast filter properly (assuming the hardware has one, which it usually does).
* Some days, it just doesn't pay to get out of bed. Fix another brokenwollman1996-12-151-2/+2
| | | | | | reference to the now-dead-for-real-this-time ia_next field. Reminded by: Russell Vincent
* Convert the interface address and IP interface address structureswollman1996-12-131-52/+24
| | | | | | to TAILQs. Fix places which referenced these for no good reason that I can see (the references remain, but were fixed to compile again; they are still questionable).
* Set subnetsarelocal to false. In a classless world, the other casewollman1996-09-091-2/+2
| | | | | is almost never useful. (This is only a quick hack; someone should go back and delete the entire subnetsarelocal==1 code path.)
* Added proper splnet protection while modifying the interface address list.dg1996-04-071-2/+17
| | | | | | | This fixes a panic that occurs when ifconfig ioctl(s) were interrupted by IP traffic at the wrong time - resulting in a NULL pointer dereference. This was originally noticed on a FreeBSD 1.0 system, but the problem still exists in current sources.
* Allow SIOCGIFBRDADDR and SIOCGIFNETMASK to return information aboutfenner1996-03-151-5/+17
| | | | | aliases, if the alias address was passed in the struct ifreq. Default to first address on the list, for backwards compatibility.
* Move or add #include <queue.h> in preparation for upcoming struct socketdg1996-03-111-2/+2
| | | | changes.
* Fix a bug where having a process listening to both a INADDR_ANY and aguido1996-01-081-2/+8
| | | | | | | | | local address, that was assigned with ifconfig alias and netmask 0xffffffff, would receive duplictae udp packets. This behaviour can easily be seen by having named run, and using the alias address as the name server. This solution is not the pretiest one, but after talk with Garreth, it is seen as the most easy one.
* Staticize.phk1995-12-091-6/+7
|
* fix #includes & warnings.phk1995-11-201-33/+1
|
* New style sysctl & staticize alot of stuff.phk1995-11-141-5/+10
|
* Second batch of cleanup changes.phk1995-10-291-2/+1
| | | | | This time mostly making a lot of things static and some unused variables here and there.
* Merge with 4.4-Lite-2. This is actually a 64-bit fix; the second parameterwollman1995-09-211-3/+3
| | | | | | | to in_control() is sometimes a pointer, and sometimes an integer, so use u_long rather than int. Obtained from: 4.4BSD-Lite-2
* Return EDESTADDRREQ rather than EADDRNOTAVAIL if the user attempts towollman1995-07-171-2/+2
| | | | | | half-configure a point-to-point interface. Submitted by: Jonathan M. Bresler <jmb@kryten.atinc.com>
* Remove trailing whitespace.rgrimes1995-05-301-9/+9
|
* Cleanup loopback interface support.pst1995-04-261-2/+2
| | | | Reviewed by: wollman
* Disallow half-configured point-to-point interfaces. It's still possible towollman1995-04-251-7/+14
| | | | | get into a half-configured state by using the old-style ioctls;this may be a feature.
* in_var.h: in_multi structures now form a queue(3)-style LIST structurewollman1995-03-231-9/+98
| | | | | | | | | | in.c: when an interface address is deleted, keep its multicast membership . records (attached to a struct multi_kludge) for attachment to the . next address on the same interface. Also, in_multi structures now . gain a reference to the ifaddr so that they won't point off into . freed memory if an interface goes away and doesn't come back before . the last socket reference drops. This is analogous to how it is . done for routes, and seems to make the most sense.
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-161-2/+1
| | | | | | (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.
* YFfix.phk1995-02-141-1/+3
|
* Move ARP interface initialization into if_ether.c:arp_ifinit().wollman1994-12-221-10/+1
|
* Fix off-by-one error reported to NetBSD by Karl Fox inwollman1994-11-031-2/+2
| | | | <9411031449.AA11102@gefilte.MorningStar.Com>.
* GCC cleanup.phk1994-10-021-3/+5
| | | | | | Reviewed by: Submitted by: Obtained from:
* Made the kernel compile even without "ether".phk1994-09-161-1/+4
|
* Fix up some sloppy coding practices:wollman1994-08-181-2/+2
| | | | | | | | | | | | - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter.
* Added $Id$dg1994-08-021-0/+1
|
* The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.rgrimes1994-05-251-1/+7
| | | | | Reviewed by: Rodney W. Grimes Submitted by: John Dyson and David Greenman
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-241-0/+622
OpenPOWER on IntegriCloud