mdodd
d16675cd85
Update interface statistics after MAC and IFF_UP|IFF_RUNNING checks.
2003-03-15 21:51:39 +00:00
mdodd
b4d176598f
- 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
mdodd
b9f3e4fdb7
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
mdodd
0e40955002
Use llc_control rather than llc_snap.control.
2003-03-15 20:35:19 +00:00
mdodd
7603a4a452
- Add comment.
...
- Whitespace fixes.
2003-03-15 20:33:30 +00:00
mdodd
af74801cd5
Reduce code differences.
2003-03-15 19:37:44 +00:00
mdodd
46d76d5c4c
Use ISO88025_ADDR_LEN where appropriate.
2003-03-15 19:25:00 +00:00
mdodd
e0b9aba465
Don't use etherbroadcastaddr; use iso88025_broadcastaddr.
2003-03-15 19:16:39 +00:00
mdodd
093d40edb1
- Remove definition of senderr() from iso88025.h.
...
- Use definition of senderr() from if_ethersubr.c.
2003-03-15 19:10:19 +00:00
mdodd
ce9f489746
Some whitespace/style/readability changes.
2003-03-15 17:54:49 +00:00
mdodd
59ae65862f
Add iso88025_resolvemulti().
...
Cribbed from net/if_fddisubr.c
2003-03-15 16:49:08 +00:00
mdodd
5093ecd00f
Fix formatting of iso88025_ifattach().
2003-03-15 16:41:35 +00:00
mdodd
f1887e0da7
Re-order and prune includes.
2003-03-15 16:37:28 +00:00
mdodd
9cb5290df7
Add module data and version.
2003-03-15 15:38:02 +00:00
mdodd
1c36442d83
s/llc_un.type_snap/llc_snap/g
2003-03-15 15:35:25 +00:00
mdodd
665939da8f
Formatting and whitespace changes.
2003-03-15 15:09:11 +00:00
harti
928f52e38a
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
mux
9e54553707
Pass the correct malloc flags to m_tag_alloc().
2003-03-13 00:30:31 +00:00
sam
e0702e06b4
correct two more flag misuses; m_tag* use malloc flags
2003-03-12 14:45:22 +00:00
phk
2fe1f6204d
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
jlemon
d41507bc4f
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
jlemon
95fa81544f
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
jlemon
3d6036b6f4
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
fbc7526e8f
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
jlemon
964a2116a0
GC unused files.
2003-03-04 23:28:19 +00:00
jlemon
04e28d5a81
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
phk
b67232b68c
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
phk
0ae911eb0e
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
mdodd
3b02e497a0
Revert last commit. File tracks NetBSD.
...
Requested by: sam
2003-03-03 06:09:18 +00:00
mdodd
587970fdc3
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
mdodd
ae4db1f082
Use IFP2AC() rather than casting to struct arpcom *
2003-03-03 00:30:02 +00:00
mdodd
cd44ce8ede
De-register.
2003-03-03 00:21:52 +00:00
mdodd
cd4fafb346
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
des
2756b6c964
More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).
2003-03-02 16:54:40 +00:00
des
7b016a11e6
Clean up whitespace, s/register //, refrain from strong urge to ANSIfy.
2003-03-02 15:56:49 +00:00
des
765ebc59b4
uiomove-related caddr_t -> void * (just the low-hanging fruit)
2003-03-02 15:50:23 +00:00
mux
a1b221af52
Make the network /dev entries use MAJOR_AUTO.
2003-02-28 18:04:42 +00:00
phk
2800385f67
NODEVFS cleanup: remove calls to cdevsw_remove()
2003-02-26 20:20:58 +00:00
imp
cf874b345d
Back out M_* changes, per decision of the TRB.
...
Approved by: trb
2003-02-19 05:47:46 +00:00
sam
9c501577a6
remove stray debugging printf
...
Noted by: Kasper Steensgaard <steensgaard@person.dk>
2003-02-18 06:25:46 +00:00
maxim
0e0fc7fd7e
o Restore an interrupt priority level before return.
...
Submitted by: Roman Kurakin <rik@cronyx.ru>
Reviewed by: joerg
MFC after: 5 days
2003-02-17 13:41:55 +00:00
phk
4bfb37f22e
Remove #include <sys/dkstat.h>
2003-02-16 14:13:23 +00:00
peter
a6f0140de9
Do not do an assignment in a truth test (previous commit) or gcc gives a
...
warning which breaks builds.
cc1: warnings being treated as errors
src/sys/net/bridge.c: In function `bdg_forward':
sys/net/bridge.c:931: warning: suggest parentheses around assignment used as truth value
*** Error code 1
2003-02-12 19:34:34 +00:00
sam
b65dfed25b
PFIL_HOOKS optimization: check if at least one hook is present before
...
munging the IP header to pass to the hooks
2003-02-11 21:48:20 +00:00
hsu
7d8a20cfb4
Make the radix tree code compilable in userland. Requested by ru.
...
Some style fixes requested by bde.
2003-02-08 01:44:09 +00:00
phk
0f2a6b3b40
A minor stylistic change to make it more clear to lint-like tools.
2003-02-02 18:15:28 +00:00
alfred
499b47780f
chase more of the MIN/MAX mess. *sigh*
2003-02-02 13:52:25 +00:00
alfred
b5c0015ac9
Consolidate MIN/MAX macros into one place (param.h).
...
Submitted by: Hiten Pandya <hiten@unixdaemons.com>
2003-02-02 13:17:30 +00:00
fjoe
8bfc65ceab
- bpf is now working (tested with tcpdump)
...
- fix promiscious mode
MFC after: 3 days
2003-01-30 15:55:02 +00:00
phk
2cccc29f2e
NODEVFS cleanup: unifdef
2003-01-30 13:13:11 +00:00