summaryrefslogtreecommitdiffstats
path: root/sys/net
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a broken macro usage. It had no semicolon.green1999-12-181-1/+1
| | | | Noticed by: eivind
* Two more fixes to if_detach. These are generic to all interfaces andimp1999-12-171-2/+63
| | | | | | | | | do not pollute the interface further. o Run if_detach at splnet(). o Creatively swipe the relevant parts of the netatm atm_nif_detach which will delete the relevant references to the interface going away.
* Bring up an if_ef driver which allows support for four ethernetbp1999-12-132-1/+612
| | | | | | | frame types. Currently it supports only IPX protocol and doesn't affect existing functionality when not loaded. Reviewed by: Ollivier Robert <roberto@keltia.freenix.fr>
* Allow ifunit() routine to understand names like ed0f2. Alsobp1999-12-131-31/+26
| | | | | | fix a bug caused by using bcmp() instead of strcmp(). Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
* The current code incorrectly assumes that all vlansjkh1999-12-132-5/+4
| | | | | | | | | are configured, and/or associated with a parent device. If you receive a frame for a VLAN that's not in the list, you walk off the end of the list. Boom. Submitted by: C. Stephen Gunn <csg@waterspout.com> PR: 15291
* sys/net/if_vlan.c fails to maintain the IFF_RUNNING flag on thejkh1999-12-131-2/+3
| | | | | | | | vlan interfaces it manages. This prevents the interface from actually sending or receiving data. Submitted by: C. Stephen Gunn <csg@waterspout.com> PR: 15290
* Add some gross ad-hock hacks to increase stability of if_detach:imp1999-12-101-2/+17
| | | | | | | | | | | | | o be more careful about clearing addresses (this isn't a kludge) o For AF_INET interfaces, call SIOCDIFFADDR to remove last(?) bit of cruft. Special cases for AF_INET shouldn't be here, but I didn't see a good generic way of doing this. If I missed something, please let me know. This gross hack makes pccard ejection stable for ethernet cards. Submitted by: Atushi Onoe-san
* Fix a route table leak in rtalloc() and rtalloc_ign(). It isjdp1999-12-091-5/+12
| | | | | | | | | | | | | | possible for ro->ro_rt to be non-NULL even though the RTF_UP flag is cleared. (Example: a routing daemon or the "route" command deletes a cloned route in active use by a TCP connection.) In that case, the code was clobbering a reference to the routing table entry without decrementing the entry's reference count. The splnet() call probably isn't needed, but I haven't been able to prove that yet. It isn't significant from a performance standpoint since it is executed very rarely. Reviewed by: wollman and others in the freebsd-current mailing list
* rtcalloc() is removed because it turned out not to be necessary for FreeBSD.shin1999-12-092-11/+0
| | | | | | (It was added as a part of KAME patch) Specified by: jdp@polstra.com
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-0710-11/+620
| | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Make the stub routines have the same prototypes as the real bpfjulian1999-12-031-1/+1
| | | | routines.
* Add 'const' to the bpf_filter() and bpf_validate() prototypes.archie1999-12-022-7/+5
| | | | Remove a stale comment from bpf_validate().
* Add two new generic control messages, NGM_ASCII2BINARY andarchie1999-11-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | | NGM_BINARY2ASCII, which convert control messages to ASCII and back. This allows control messages to be sent and received in ASCII form using ngctl(8), which makes ngctl a lot more useful. This also allows all the type-specific debugging code in libnetgraph to go away -- instead, we just ask the node itself to do the ASCII translation for us. Currently, all generic control messages are supported, as well as messages associated with the following node types: async, cisco, ksocket, and ppp. See /usr/share/examples/netgraph/ngctl for an example of using this. Also give ngctl(8) the ability to print out incoming data and control messages at any time. Eventually nghook(8) may be subsumed. Several other misc. bug fixes. Reviewed by: julian
* Expand the field width for subtypes. We had already overflowed itjulian1999-11-241-3/+5
| | | | | | | | by 2 with people just adding numbers on the end of the ethernet subtypes. We now have an additional 14 subtypes available in ethernet. Use one of them immediatly for homePNA. Reviewed by: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
* Only emit the ``wrong ifa'' message if the matching interfacebrian1999-11-231-3/+5
| | | | | | | | | | | | | | | | is neither IFF_LOOPBACK or IFF_POINTOPOINT. It's quite common (and probably more correct) to route local IP numbers via lo0 and it makes configuration easier to assign the hostname address to local POINTOPOINT links too. This message usually remains hidden because the loopback interface gets the highest interface number at boot time, but when the ethernet interface is added later, the message can get pretty annoying. Also, fix a typo. Not objected to by: freebsd-net
* KAME netinet6 basic part(no IPsec,no V6 Multicast Forwarding, no UDP/TCPshin1999-11-229-67/+946
| | | | | | | | | | for IPv6 yet) With this patch, you can assigne IPv6 addr automatically, and can reply to IPv6 ping. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Add some more comments to the sl_compress_tcp() function.archie1999-11-151-2/+9
|
* YUCK!julian1999-11-151-2/+2
| | | | | m_prepend doesn't fix m_pkthdr.len, use M_PREPEND instead, which does.. (Netgraph only)
* Fix screwup on synthesising incoming ethernet header in Netgraph mode.julian1999-11-141-2/+3
| | | | Submitted by: brian@freebsd.org
* Set the queue length.phk1999-11-121-0/+1
|
* Oops forgot to put the source MAC address on outgoing packets!julian1999-11-111-1/+3
|
* KAME related header files additions and merges.shin1999-11-056-7/+59
| | | | | | | (only those which don't affect c source files so much) Reviewed by: cvs-committers Obtained from: KAME project
* Fix bug in BIOCGETIF ioctl() where it would return a bogus interfacearchie1999-11-031-24/+8
| | | | name if the interface unit number was greater than 9.
* Use typedefs for node methods.julian1999-11-011-9/+7
|
* When getting a RCN event in state ACK_RCVD, RFC 1661 demands that wejoerg1999-10-291-1/+1
| | | | | | | go to REQ_SENT (and we probably should also log this since it should only happen in a cross-linked connection). Submitted by: Mark Tinguely <tinguely@plains.NoDak.edu>
* Add a comment before sl_compress_tcp() regarding mbuf assumptions.archie1999-10-291-0/+4
|
* Re-allocate cblocks after changing the slip unit number.ru1999-10-281-0/+3
|
* Minor hack in the netgraph interface to ethernets.julian1999-10-261-11/+60
|
* Whistle's Netgraph link-layer (sometimes more) networking infrastructure.julian1999-10-213-0/+353
| | | | | | | | | | Been in production for 3 years now. Gives Instant Frame relay to if_sr and if_ar drivers, and PPPOE support soon. See: ftp://ftp.whistle.com/pub/archie/netgraph/index.html for on-line manual pages. Reviewed by: Doug Rabson (dfr@freebsd.org) Obtained from: Whistle CVS tree
* Implement pseudo_AF_HDRCMPLT, which controls the state of the 'headermsmith1999-10-155-9/+53
| | | | | | | | | | completion' flag. If set, the interface output routine will assume that the packet already has a valid link-level source address. This defaults to off (the address is overwritten) PR: kern/10680 Submitted by: "Christopher N . Harrell" <cnh@mindspring.net> Obtained from: NetBSD
* Zap #include "tun.h" (for NTUN) - which isn't used anymore.peter1999-09-271-2/+0
|
* Minor tidy up of PPP_FILTER and NBPF stuff. Don't generate bpf.h in thepeter1999-09-261-7/+1
| | | | module and don't #include "bpf.h".
* Remove five now unused fields from struct cdevsw. They should neverphk1999-09-252-10/+0
| | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags
* This patch clears the way for removing a number of tty relatedphk1999-09-251-1/+1
| | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags
* Remove NBPF conditionality of bpf calls in most of our network drivers.phk1999-09-258-83/+13
| | | | | | | | | | | | This means that we will not have to have a bpf and a non-bpf version of our driver modules. This does not open any security hole, because the bpf core isn't loadable The drivers left unchanged are the "cross platform" drivers where the respective maintainers are urged to DTRT, whatever that may be. Add a couple of missing FreeBSD tags.
* Don't call if_up() here, just set IFF_UP.ru1999-09-141-1/+1
| | | | | PR: 12251 Reviewed by: wollman
* Add comments, fix typos.ru1999-09-141-2/+8
| | | | Reviewed by: wollman
* Fix kernel compile with BRIDGE, but without DUMMYNETnsayer1999-09-111-0/+3
|
* For every "promiscuous mode enabled" message printed for an interface,sheldonh1999-08-301-0/+2
| | | | | | | print a matching "disabled" message when we drop out of promiscuous mode for that interface. Discussed on the freebsd-hackers mailing list.
* $Id$ -> $FreeBSD$peter1999-08-2856-56/+56
|
* Hopefully make IFMEDIA_DEBUG compile. if_xname[] is a NetBSD addition,peter1999-08-181-3/+3
| | | | | | we need if_name, if_unit. (maybe we should pick up if_xname[] ?) Pointed out by: jkb@yahoo-inc.com
* Give if_tun the "almost clone" makeover.phk1999-08-151-68/+60
|
* Give BPF the "almost-clone" update. If you need more of them, makephk1999-08-151-78/+31
| | | | | more entries in /dev and be happy you don't need to recompile your kernel.
* Back out redundant check, and remove the MAXMTU comparison as it'sbrian1999-08-061-7/+4
| | | | | outside of the (bogus) tuninfo mtu range. Pointed out by: bde
* Back out redundant checksbrian1999-08-062-12/+5
| | | | Pointed out by: bde
* Define IF_MAXMTU and IF_MINMTU and don't allow MTUs withbrian1999-08-065-15/+31
| | | | | | | | | out-of-range values. ``comparison is always 0'' warnings are silly ! Ok'd by: wollman, dg Advised by: bde
* Don't complain if 0 bytes are written to the tun device, simplybrian1999-07-261-1/+4
| | | | do nothing.
* fix a problem w/ zero byte writes to the tunnel device. It would bypassjmg1999-07-231-1/+1
| | | | | | | | | | the loop and not set an error, so we would then try to access an invalid mbuf... PR: 12780 Submitted by: bright@rush.net aka zb^3 a new record in length a pr was open... only about a half hour...
* Rename bpfilter to bpf.des1999-07-069-55/+55
|
* Fixed English errors, spelling errors and formatting errors in rev.1.51bde1999-07-051-7/+9
| | | | and rev.1.53.
OpenPOWER on IntegriCloud