Sending data via ethernet in kernel mode

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help
me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com

You need to use TDI to talk to the TCP/IP driver. This is not a simple
thing to do, but it can be done. There are sample TDI drivers around, but
are usually pretty basic.


Mark Cariddi
Open Systems Resources, Inc.
www.osr.com
“Schalken, Rob” wrote in message news:xxxxx@ntdev…
>
> Can someone help me sending data via the ethernet in kernel mode.
>
> I made a kernel driver in windows NT which receives data. I want to
> transport this data using ethernet (TCP/IP). Please can someone help
> me.
>
> If someone know how, is it possible to send me some sources???
>
> Rob schalken
> xxxxx@emdes.nl
> xxxxx@hotmail.com
>
>
>

You ARE kidding, right???

You’re talking about something that should be handled in User mode, not
Kernel. If performance is the reason, then maybe you have the wrong
architecture/OS.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Schalken, Rob
Sent: Wednesday, May 08, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help
me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%

SoftICE moves TCP/IP data from kernel mode. :slight_smile:

Alberto.

-----Original Message-----
From: Gregory G. Dyess [mailto:xxxxx@pdq.net]
Sent: Wednesday, May 08, 2002 10:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

You ARE kidding, right???

You’re talking about something that should be handled in User mode, not
Kernel. If performance is the reason, then maybe you have the wrong
architecture/OS.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Schalken, Rob
Sent: Wednesday, May 08, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help
me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to %%email.unsub%%

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

So, you say that srv.sys should be written in UM?

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory G. Dyess
Sent: Wednesday, May 08, 2002 7:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

You ARE kidding, right???

You’re talking about something that should be handled in User mode, not
Kernel. If performance is the reason, then maybe you have the wrong
architecture/OS.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Schalken, Rob
Sent: Wednesday, May 08, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%

I’m saying, in general, yes. The USER layer of the 7-layer model should
probably be done in user mode. We’re getting to the point where we’re
trying to push everything down to kernel mode. At the same time, others are
wanting to push drivers up out of Ring 0. Go figure? Taken to extreme, we
wind up with…DOS, where everything ran at the same ring! It’s amazing
how everything comes full circle!

Mainframes/Terminals => Minicomputers
=> Microcomputers
=> Personal Computers
=> Networked PCs
=> Network-based/JAVA apps
=> Large servers/Network Appliances

It’s fun to watch history repeat itself.

Have fun, all!
Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jamey Kirby
Sent: Wednesday, May 08, 2002 10:56 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

So, you say that srv.sys should be written in UM?

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory G. Dyess
Sent: Wednesday, May 08, 2002 7:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

You ARE kidding, right???

You’re talking about something that should be handled in User mode, not
Kernel. If performance is the reason, then maybe you have the wrong
architecture/OS.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Schalken, Rob
Sent: Wednesday, May 08, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%

The whole idea of having a protocol stack is that we can set it up in ways
that are independent of the underlying machine hardware and OS structure.
So, for example, I may want to have all seven layers in my peripheral board,
with nothing but a read/write/ioctrl interface between my board and the app.
Or I may have a context-sensitive board that allows me to do all seven
layers on the app side and zero OS participation - like people are beginning
to do with user-side USB and with Unix-style direct rendering. Such
decisions should be independent of the OS - a good, comprehensive, sensible,
OS, should allow a comms designer to put the layers wherever they will fit,
communications should not have to be an OS concern unless the comms designer
says so. I actually strongly believe in moving comms facility out of the
CPU, I see no reason why the whole seven layers are not implemented in the
peripheral board. After all, data is data - an app shouldn’t have to bother
about whether the data is local or remote, and the OS should do nothing but
to pass data descriptors around.

Alberto.

-----Original Message-----
From: Gregory G. Dyess [mailto:xxxxx@pdq.net]
Sent: Wednesday, May 08, 2002 12:03 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

I’m saying, in general, yes. The USER layer of the 7-layer model should
probably be done in user mode. We’re getting to the point where we’re
trying to push everything down to kernel mode. At the same time, others are
wanting to push drivers up out of Ring 0. Go figure? Taken to extreme, we
wind up with…DOS, where everything ran at the same ring! It’s amazing
how everything comes full circle!

Mainframes/Terminals => Minicomputers
=> Microcomputers
=> Personal Computers
=> Networked PCs
=> Network-based/JAVA apps
=> Large servers/Network Appliances

It’s fun to watch history repeat itself.

Have fun, all!
Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jamey Kirby
Sent: Wednesday, May 08, 2002 10:56 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

So, you say that srv.sys should be written in UM?

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory G. Dyess
Sent: Wednesday, May 08, 2002 7:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

You ARE kidding, right???

You’re talking about something that should be handled in User mode, not
Kernel. If performance is the reason, then maybe you have the wrong
architecture/OS.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Schalken, Rob
Sent: Wednesday, May 08, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to %%email.unsub%%

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

So, TCP/IP is implemented in KM which uses TDI. User mode sockets uses
AFD.SYS which is a wrapper that allows user mode applications to talk to
TDI in kernel mde; indirectly. So, when using UM sockets (WinSock), the
request must be generated in UM, sent to AFD.SYS and then sent to TDI.
After this, the response must travel back through the same path; TDI to
AFD and AFD to user mode.

It would be much faster to just use TDI in KM. Our socket library is a
.LIB that wrappes TDI to provides a socket API (Berkeley) in KM. This
code blows the socks off of WinSock all day long because of the
elimination of many UM to KM transitions.

So, I am still confused about you point. Why is it better to do it in
UM?

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory G. Dyess
Sent: Wednesday, May 08, 2002 9:03 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

I’m saying, in general, yes. The USER layer of the 7-layer model should
probably be done in user mode. We’re getting to the point where we’re
trying to push everything down to kernel mode. At the same time, others
are wanting to push drivers up out of Ring 0. Go figure? Taken to
extreme, we wind up with…DOS, where everything ran at the same ring!
It’s amazing how everything comes full circle!

Mainframes/Terminals => Minicomputers
=> Microcomputers
=> Personal Computers
=> Networked PCs
=> Network-based/JAVA apps
=> Large servers/Network Appliances

It’s fun to watch history repeat itself.

Have fun, all!
Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jamey Kirby
Sent: Wednesday, May 08, 2002 10:56 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

So, you say that srv.sys should be written in UM?

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory G. Dyess
Sent: Wednesday, May 08, 2002 7:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

You ARE kidding, right???

You’re talking about something that should be handled in User mode, not
Kernel. If performance is the reason, then maybe you have the wrong
architecture/OS.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Schalken, Rob
Sent: Wednesday, May 08, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@storagecraft.com To
unsubscribe send a blank email to %%email.unsub%%

StorageCraft.com have a nice kernel-sockets product to save you reinventing the wheel. OSR and other vendors have similar products too I believe. I don’t think anything is available in the public domain that would make it as easy to use as a commercial product…

Regards

Paul Bunn, UltraBac Software, 425-644-6000
Microsoft MVP - NT/Windows 2000/XP
http://www.ultrabac.com

-----Original Message-----
From: Schalken, Rob [mailto:xxxxx@emdes.nl]
Sent: Wednesday, May 08, 2002 7:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I want to
transport this data using ethernet (TCP/IP). Please can someone help
me.

If someone know how, is it possible to send me some sources???

The architectural cycles are interesting.

The other trend of course is the ‘offload everything’ trend, where IO
processors perform those things (such as gigaByte network and data
busses,) that the ‘computer’ itself is too far from the bus to do
effectively. So the answer to where the protocol stack ought to be
accessed is: from user mode, from kernel mode, or on the device,
depending on what the requirements are.

Meanwhile the future of course is in the handhelds and wear-ables and
appliances that are now recapitulating the history of the pc
architecture, (and the mini, ( and the mainframe,) ,) as we go through
the 4th generation of computer systems.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory G. Dyess
Sent: Wednesday, May 08, 2002 12:03 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

I’m saying, in general, yes. The USER layer of the 7-layer
model should probably be done in user mode. We’re getting to
the point where we’re trying to push everything down to
kernel mode. At the same time, others are wanting to push
drivers up out of Ring 0. Go figure? Taken to extreme, we
wind up with…DOS, where everything ran at the same ring!
It’s amazing how everything comes full circle!

Mainframes/Terminals => Minicomputers
=> Microcomputers
=> Personal Computers
=> Networked PCs
=> Network-based/JAVA apps
=> Large servers/Network Appliances

It’s fun to watch history repeat itself.

Have fun, all!
Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Jamey Kirby
Sent: Wednesday, May 08, 2002 10:56 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

So, you say that srv.sys should be written in UM?

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gregory G. Dyess
Sent: Wednesday, May 08, 2002 7:19 AM
To: NT Developers Interest List
Subject: [ntdev] RE: Sending data via ethernet in kernel mode

You ARE kidding, right???

You’re talking about something that should be handled in User
mode, not Kernel. If performance is the reason, then maybe
you have the wrong architecture/OS.

Greg

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On > Behalf Of Schalken,
Rob
Sent: Wednesday, May 08, 2002 9:05 AM
To: NT Developers Interest List
Subject: [ntdev] Sending data via ethernet in kernel mode
Importance: High

Can someone help me sending data via the ethernet in kernel mode.

I made a kernel driver in windows NT which receives data. I
want to transport this data using ethernet (TCP/IP). Please
can someone help me.

If someone know how, is it possible to send me some sources???

Rob schalken
xxxxx@emdes.nl
xxxxx@hotmail.com


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as:
xxxxx@storagecraft.com To unsubscribe send a blank email to
%%email.unsub%%


You are currently subscribed to ntdev as: xxxxx@pdq.net
To unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as:
xxxxx@hollistech.com To unsubscribe send a blank email to
%%email.unsub%%

You must use TDI or one of the kernel-mode socket libraries, like ours.
If you want to send raw Ethernet frames, not TCP/IP, then NDIS protocol is a way to go.

Max

----- Original Message -----
From: “Schalken, Rob”
To: “NT Developers Interest List”
Sent: Wednesday, May 08, 2002 6:04 PM
Subject: [ntdev] Sending data via ethernet in kernel mode

> Can someone help me sending data via the ethernet in kernel mode.
>
> I made a kernel driver in windows NT which receives data. I want to
> transport this data using ethernet (TCP/IP). Please can someone help
> me.
>
> If someone know how, is it possible to send me some sources???
>
> Rob schalken
> xxxxx@emdes.nl
> xxxxx@hotmail.com
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>

> => Networked PCs

=> Network-based/JAVA apps

I never heard on any Java-based apps to be of a common use :slight_smile:
Servlets - yes, but not client-side apps.

Max

> layers on the app side and zero OS participation - like people are beginning

to do with user-side USB and with Unix-style direct rendering.

BTW - isn’t DirectDraw the same?

Max

I believe that there is a simple TDI sample in a past issue of the OST “NT
Insider”. I think that only the ZIP file is there, but should be helpful.

PCAUSA licenses samples that illustrate use of Transport Data Interface
(TDI) to send/receive TCP/UDP from kernel mode. See:

http://www.pcausa.com/tdisamp/default.htm

Good luck,

Thomas F. Divine

PCAUSA - Tools & Resources For Network Software Developers
NDIS Protocol/Intermediate/Hooking - TDI Client/Filter
http: - http:

“Schalken, Rob” wrote in message news:xxxxx@ntdev…
>
> Can someone help me sending data via the ethernet in kernel mode.
>
> I made a kernel driver in windows NT which receives data. I want to
> transport this data using ethernet (TCP/IP). Please can someone help
> me.
>
> If someone know how, is it possible to send me some sources???
>
> Rob schalken
> xxxxx@emdes.nl
> xxxxx@hotmail.com
>
>
></http:></http:>

Sorry, I meant the OSR “NT Insider”. At http://www.osr.com.

Thos

“Schalken, Rob” wrote in message news:xxxxx@ntdev…
>
> Can someone help me sending data via the ethernet in kernel mode.
>
> I made a kernel driver in windows NT which receives data. I want to
> transport this data using ethernet (TCP/IP). Please can someone help
> me.
>
> If someone know how, is it possible to send me some sources???
>
> Rob schalken
> xxxxx@emdes.nl
> xxxxx@hotmail.com
>
>
>