summaryrefslogtreecommitdiffstats
path: root/sys/net/if_iso88025subr.c
Commit message (Collapse)AuthorAgeFilesLines
* Introduce ip_fastforward and remove ip_flow.andre2003-11-141-1/+1
| | | | | | | | | | | | | | | Short description of ip_fastforward: o adds full direct process-to-completion IPv4 forwarding code o handles ip fragmentation incl. hw support (ip_flow did not) o sends icmp needfrag to source if DF is set (ip_flow did not) o supports ipfw and ipfilter (ip_flow did not) o supports divert, ipfw fwd and ipfilter nat (ip_flow did not) o returns anything it can't handle back to normal ip_input Enable with sysctl -w net.inet.ip.fastforwarding=1 Reviewed by: sam (mentor)
* Enable IPv6 for Token Ring.mdodd2003-09-141-4/+0
|
* Cosmetic cleanups.mdodd2003-09-141-19/+21
|
* Cosmetic adjustment.mdodd2003-09-141-2/+1
|
* - Use IFP2AC().mdodd2003-03-161-2/+34
| | | | | | - Support IFF_MONITOR. - Borrow some consistency for if_input() routines from if_ethersubr.c. - Correct comments regarding fddi_input() that no longer apply.
* Don't strip header from packets before input routine is called.mdodd2003-03-151-4/+26
|
* Use if_printf().mdodd2003-03-151-2/+2
|
* iso88025_ifattach() changes:mdodd2003-03-151-2/+18
| | | | | - Call if_attach(). - Conditionally call bpfattach() based on second function argument.
* - Style(9) changes.mdodd2003-03-151-4/+11
| | | | | | - Remove unneeded assignment. - Increment if_oerrors as per if_fddisubr.c. - Wrap ISO code with conditional.
* Stray } forgotten by manual merging.mdodd2003-03-151-1/+0
|
* - Remove stray ).mdodd2003-03-151-2/+6
| | | | | - Add missing breaks. - Add missing if_noproto++.
* Revert part of 1.37; use bcopy() like if_fddisubr.c.mdodd2003-03-151-3/+1
|
* - Increment ifp->if_noproto when appropriate.mdodd2003-03-151-11/+19
| | | | | - Use 'goto dropanyway' when appropriate. - Move dropanyway label out of switch for readability.
* - Adopt tests for (IFF_UP|IFF_RUNNING) and non local unicast packetsmdodd2003-03-151-5/+20
| | | | | in promiscuous mode from if_fddisubr.c. - Add comment to reduce diffs.
* Add MAC support.mdodd2003-03-151-0/+12
| | | | This is the same code that was added in 1.70 of if_fddisubr.c
* Use llc_control rather than llc_snap.control.mdodd2003-03-151-1/+1
|
* - Add comment.mdodd2003-03-151-2/+5
| | | | - Whitespace fixes.
* Reduce code differences.mdodd2003-03-151-7/+6
|
* Use ISO88025_ADDR_LEN where appropriate.mdodd2003-03-151-6/+6
|
* Don't use etherbroadcastaddr; use iso88025_broadcastaddr.mdodd2003-03-151-4/+6
|
* - Remove definition of senderr() from iso88025.h.mdodd2003-03-151-1/+2
| | | | - Use definition of senderr() from if_ethersubr.c.
* Some whitespace/style/readability changes.mdodd2003-03-151-16/+29
|
* Add iso88025_resolvemulti().mdodd2003-03-151-0/+87
| | | | Cribbed from net/if_fddisubr.c
* Fix formatting of iso88025_ifattach().mdodd2003-03-151-9/+9
|
* Re-order and prune includes.mdodd2003-03-151-16/+7
|
* Add module data and version.mdodd2003-03-151-0/+9
|
* s/llc_un.type_snap/llc_snap/gmdodd2003-03-151-9/+9
|
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-041-14/+7
| | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs
* sizeof(struct llc) -> LLC_SNAPFRAMELENmdodd2003-03-031-3/+3
| | | | | sizeof(struct ether_header) -> ETHER_HDR_LEN sizeof(struct fddi_header) -> FDDI_HDR_LEN
* Use IFP2AC() rather than casting to struct arpcom *mdodd2003-03-031-2/+2
|
* De-register.mdodd2003-03-031-5/+5
|
* Reduce code duplication. This adds the function rt_check() to route.c.mdodd2003-03-021-24/+3
| | | | Approved by: sam (in principle)
* Back out M_* changes, per decision of the TRB.imp2003-02-191-3/+3
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-3/+3
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* Use if_printf(ifp, "blah") instead ofbrooks2002-10-211-2/+1
| | | | printf("%s%d: blah", ifp->if_name, ifp->if_xname).
* Replace (ab)uses of "NULL" where "0" is really meant.archie2002-08-221-1/+1
|
* Move ISO88025 source routing information into sockaddr_dl's sdl_datakbyanc2002-05-071-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | field. This returns the sdl_data field to a variable-length field. More importantly, this prevents a easily-reproduceable data-corruption bug when the interface name plus the hardware address exceed the sdl_data field's original 12 byte limit. However, token-ring interfaces may still overflow the new sdl_data field's 46 byte limit if the interface name exceeds 6 characters (since 6 characters for interface name plus 6 for hardware address plus 34 for source routing = the size of sdl_data). Further refinements could overcome this limitation but would break binary compatibility; this commit only addresses fixing the bug for commonly-occuring cases without breaking binary compatibility with the intention that the functionality can be MFC'ed to -stable. See message ID's (both send to -arch): 20020421013332.F87395-100000@gateway.posi.net 20020430181359.G11009-300000@gateway.posi.net for a more thorough description of the bug addressed and how to reproduce it. Approved by: silence on -arch and -net Sponsored by: NTT Multimedia Communications Labs MFC after: 1 week
* whitespace fixes.jlemon2001-12-141-2/+2
|
* bring in ARP support for variable length link level addressesfjoe2001-10-141-2/+3
| | | | | | | Reviewed by: jdp Approved by: jdp Obtained from: NetBSD MFC after: 6 weeks
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-061-1/+1
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* Do not perform arp send/resolve on an interface marked NOARP.jlemon2001-06-151-0/+2
| | | | | PR: 25006 MFC after: 2 weeks
* - Add iso88025_ifdetach().mdodd2001-03-181-110/+276
| | | | | - Add support for 802.2 type IPX frames. - Cleanup iso88025_output() and iso88025_output() a bit.
* This include file has no business being here.mdodd2001-03-151-2/+0
|
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-26/+5
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Do not perform any opeartion with mbuf after it placed intobp2000-06-141-2/+2
| | | | | | interface queue. Tested by: Bosko Milekic <bmilekic@dsuper.net>
* Just need to pass the address family to if_simloop(), not the whole sockaddr.archie2000-05-241-2/+4
|
* Remove unneeded #include <sys/kernel.h>phk2000-04-291-2/+0
|
* Remove ~25 unneeded #include <sys/conf.h>phk2000-04-191-1/+0
| | | | Remove ~60 unneeded #include <sys/malloc.h>
OpenPOWER on IntegriCloud