Maxim Konovalov
7102717ac1
o netisr_queue() returns 1 on success and 0 on failure,
...
fix a typo (?) in rev. 1.90.
PR: kern/50163
2003-03-27 12:52:57 +00:00
Matthew N. Dodd
868d8b6286
- Use if_broadcastaddr from struct ifnet rather than relying on
...
extern 'etherbroadcastaddr'.
- Make 'etherbroadcastaddr' static.
Reviewed by: imp
2003-03-21 17:53:16 +00:00
Matthew N. Dodd
d79bf33783
Assignment could be NULL, check.
2003-03-21 15:13:29 +00:00
John Baldwin
31566c96f4
Use td->td_ucred instead of td->td_proc->p_ucred.
2003-03-20 21:17:40 +00:00
Matthew N. Dodd
04b269f5fe
- Use IFP2AC().
...
- Support IFF_MONITOR.
- Borrow some consistency for if_input() routines from if_ethersubr.c.
- Correct comments regarding fddi_input() that no longer apply.
2003-03-16 00:17:44 +00:00
Matthew N. Dodd
8b247b5adc
Fix whitespace issues.
2003-03-15 23:55:33 +00:00
Matthew N. Dodd
ac46f4fce3
Don't strip header from packets before input routine is called.
2003-03-15 23:08:40 +00:00
Matthew N. Dodd
59d776b808
Use if_printf().
2003-03-15 23:02:36 +00:00
Matthew N. Dodd
089b2f2ead
iso88025_ifattach() changes:
...
- Call if_attach().
- Conditionally call bpfattach() based on second function argument.
2003-03-15 22:52:23 +00:00
Matthew N. Dodd
69ed274634
- Style(9) changes.
...
- Remove unneeded assignment.
- Increment if_oerrors as per if_fddisubr.c.
- Wrap ISO code with conditional.
2003-03-15 22:37:11 +00:00
Matthew N. Dodd
94b3e4d32f
Stray } forgotten by manual merging.
2003-03-15 22:28:51 +00:00
Matthew N. Dodd
bd3e6bb8b8
- Remove stray ).
...
- Add missing breaks.
- Add missing if_noproto++.
2003-03-15 22:25:06 +00:00
Matthew N. Dodd
0e96758da8
Revert part of 1.37; use bcopy() like if_fddisubr.c.
2003-03-15 22:09:29 +00:00
Matthew N. Dodd
2910fe6d37
- Increment ifp->if_noproto when appropriate.
...
- Use 'goto dropanyway' when appropriate.
- Move dropanyway label out of switch for readability.
2003-03-15 21:59:11 +00:00
Matthew N. Dodd
0c61d694a8
Update interface statistics after MAC and IFF_UP|IFF_RUNNING checks.
2003-03-15 21:51:39 +00:00
Matthew N. Dodd
f156dd7b68
- Adopt tests for (IFF_UP|IFF_RUNNING) and non local unicast packets
...
in promiscuous mode from if_fddisubr.c.
- Add comment to reduce diffs.
2003-03-15 21:42:19 +00:00
Matthew N. Dodd
9a3c9f3971
Add MAC support.
...
This is the same code that was added in 1.70 of if_fddisubr.c
2003-03-15 21:30:00 +00:00
Matthew N. Dodd
15eccea260
Use llc_control rather than llc_snap.control.
2003-03-15 20:35:19 +00:00
Matthew N. Dodd
ad20d0f577
- Add comment.
...
- Whitespace fixes.
2003-03-15 20:33:30 +00:00
Matthew N. Dodd
06f684b004
Reduce code differences.
2003-03-15 19:37:44 +00:00
Matthew N. Dodd
a93a116153
Use ISO88025_ADDR_LEN where appropriate.
2003-03-15 19:25:00 +00:00
Matthew N. Dodd
dbd05f2e56
Don't use etherbroadcastaddr; use iso88025_broadcastaddr.
2003-03-15 19:16:39 +00:00
Matthew N. Dodd
fd87fbf6b8
- Remove definition of senderr() from iso88025.h.
...
- Use definition of senderr() from if_ethersubr.c.
2003-03-15 19:10:19 +00:00
Matthew N. Dodd
386dca02cb
Some whitespace/style/readability changes.
2003-03-15 17:54:49 +00:00
Matthew N. Dodd
7c16bd3a8b
Add iso88025_resolvemulti().
...
Cribbed from net/if_fddisubr.c
2003-03-15 16:49:08 +00:00
Matthew N. Dodd
bf54cb290a
Fix formatting of iso88025_ifattach().
2003-03-15 16:41:35 +00:00
Matthew N. Dodd
fe7e109c6f
Re-order and prune includes.
2003-03-15 16:37:28 +00:00
Matthew N. Dodd
40811c1473
Add module data and version.
2003-03-15 15:38:02 +00:00
Matthew N. Dodd
4fd80d5b9d
s/llc_un.type_snap/llc_snap/g
2003-03-15 15:35:25 +00:00
Matthew N. Dodd
67df65de97
Formatting and whitespace changes.
2003-03-15 15:09:11 +00:00
Hartmut Brandt
57648f8aae
This corrects a longstanding endian bug in processing LLC/SNAP encoded
...
frames. A comment in if_atm.h suggests that both macros, that for extracting
the ethertype and that for inserting it, handle their argument in host
byte order. In fact, the inserting macro treated its argument as an opposite
host order short and the calling code feeds it the result of htons(). This
happens to work on i386, but fails on sparc. Make the macro use real host
endianess.
Reviewed by: kjc, atm@
2003-03-13 12:44:06 +00:00
Maxime Henrion
f3b8b63b15
Pass the correct malloc flags to m_tag_alloc().
2003-03-13 00:30:31 +00:00
Sam Leffler
4a692a1fc2
correct two more flag misuses; m_tag* use malloc flags
2003-03-12 14:45:22 +00:00
Poul-Henning Kamp
d42ee4e410
Note that MAJOR_AUTO is now the default if d_maj is not initialized. This
...
is more robust and prevents the hijacking of /dev/console for the typical
mistake.
Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the
driver source has cross-branch compatibility to old releases.
2003-03-09 11:03:45 +00:00
Jonathan Lemon
fb68148f4a
Discard the packet if the netisr queue is null instead of panicing, for
...
the benefit of modules which are compiled differently than the kernel.
2003-03-08 22:12:32 +00:00
Jonathan Lemon
06acad4aa4
Revert last change and insure the driver can support other address families.
...
Pointed out by: ume, matusita
2003-03-08 17:32:21 +00:00
Jonathan Lemon
e0e6419344
The tun driver is INET only. Don't pretend to support other address families.
...
Sponsored by: DARPA, NAI Labs
2003-03-08 16:26:34 +00:00
Peter Wemm
3c6b084e96
Finish driving a stake through the heart of netns and the associated
...
ifdefs scattered around the place - its dead Jim!
The SMB stuff had stolen AF_NS, make it official.
2003-03-05 19:24:24 +00:00
Jonathan Lemon
f0757123c9
GC unused files.
2003-03-04 23:28:19 +00:00
Jonathan Lemon
1cafed3941
Update netisr handling; Each SWI now registers its queue, and all queue
...
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
2003-03-04 23:19:55 +00:00
Poul-Henning Kamp
182a9f7455
Make nokqfilter() return the correct return value.
...
Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
2003-03-03 16:24:47 +00:00
Poul-Henning Kamp
7ac40f5f59
Gigacommit to improve device-driver source compatibility between
...
branches:
Initialize struct cdevsw using C99 sparse initializtion and remove
all initializations to default values.
This patch is automatically generated and has been tested by compiling
LINT with all the fields in struct cdevsw in reverse order on alpha,
sparc64 and i386.
Approved by: re(scottl)
2003-03-03 12:15:54 +00:00
Matthew N. Dodd
ad59f9d14e
Revert last commit. File tracks NetBSD.
...
Requested by: sam
2003-03-03 06:09:18 +00:00
Matthew N. Dodd
797f247b51
sizeof(struct llc) -> LLC_SNAPFRAMELEN
...
sizeof(struct ether_header) -> ETHER_HDR_LEN
sizeof(struct fddi_header) -> FDDI_HDR_LEN
2003-03-03 05:04:57 +00:00
Matthew N. Dodd
c6269f4b26
Use IFP2AC() rather than casting to struct arpcom *
2003-03-03 00:30:02 +00:00
Matthew N. Dodd
098a8c3b64
De-register.
2003-03-03 00:21:52 +00:00
Matthew N. Dodd
7f760c4890
Reduce code duplication. This adds the function rt_check() to route.c.
...
Approved by: sam (in principle)
2003-03-02 21:34:37 +00:00
Dag-Erling Smørgrav
521f364b80
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
2003-03-02 16:54:40 +00:00
Dag-Erling Smørgrav
8994a245e0
Clean up whitespace, s/register //, refrain from strong urge to ANSIfy.
2003-03-02 15:56:49 +00:00
Dag-Erling Smørgrav
c952458814
uiomove-related caddr_t -> void * (just the low-hanging fruit)
2003-03-02 15:50:23 +00:00