About the passthru driver

I am writing a packet filter for NIC based on the
passthru driver in DDK 2000.I have some question:
1.In IM driver if we have packet descriptor can we
access to the data(content) of the packet?
2.When we run our application can we set a rule for
the IM driver(like block an IP address)?
Please help me.Thanks a lot.
Linh


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

  1. Yes. See packet discussion(s) at
    http://www.ndis.com/papers/default.htm.
  2. Yes. To “block” a packet, you would just fail to pass the packet up
    or down the stack.

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Linh Nguyen
Sent: Sunday, August 31, 2003 4:04 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] About the passthru driver

I am writing a packet filter for NIC based on the
passthru driver in DDK 2000.I have some question:
1.In IM driver if we have packet descriptor can we
access to the data(content) of the packet?
2.When we run our application can we set a rule for
the IM driver(like block an IP address)?
Please help me.Thanks a lot.
Linh


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Also see “Extending the PASSTHRU Sample” article at:

http://www.wd-3.com/071503/ExtendingPassthru.htm.

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Bryan Burgin
Sent: Sunday, August 31, 2003 4:30 PM
To: ‘Windows System Software Developers Interest List’
Cc: ‘xxxxx@yahoo.com’
Subject: RE: [ntdev] About the passthru driver

  1. Yes. See packet discussion(s) at
    http://www.ndis.com/papers/default.htm.
  2. Yes. To “block” a packet, you would just fail to pass the packet up
    or down the stack.

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Linh Nguyen
Sent: Sunday, August 31, 2003 4:04 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] About the passthru driver

I am writing a packet filter for NIC based on the
passthru driver in DDK 2000.I have some question:
1.In IM driver if we have packet descriptor can we
access to the data(content) of the packet?
2.When we run our application can we set a rule for
the IM driver(like block an IP address)?
Please help me.Thanks a lot.
Linh


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

I can open the page of http://www.wd-3.com/071503/ExtendingPassthru.htm. Can you paste the content here? thank you
----- Original Message -----
From: “Bryan Burgin”
To: “Windows System Software Developers Interest List”
Cc:
Sent: Monday, September 01, 2003 7:31 AM
Subject: [ntdev] RE: About the passthru driver

Also see “Extending the PASSTHRU Sample” article at:

http://www.wd-3.com/071503/ExtendingPassthru.htm.

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Bryan Burgin
Sent: Sunday, August 31, 2003 4:30 PM
To: ‘Windows System Software Developers Interest List’
Cc: ‘xxxxx@yahoo.com’
Subject: RE: [ntdev] About the passthru driver

1. Yes. See packet discussion(s) at
http://www.ndis.com/papers/default.htm.
2. Yes. To “block” a packet, you would just fail to pass the packet up
or down the stack.

Bryan S. Burgin
xxxxx@microsoft.com

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Linh Nguyen
Sent: Sunday, August 31, 2003 4:04 PM
To: Windows System Software Developers Interest List
Subject: [ntdev] About the passthru driver

I am writing a packet filter for NIC based on the
passthru driver in DDK 2000.I have some question:
1.In IM driver if we have packet descriptor can we
access to the data(content) of the packet?
2.When we run our application can we set a rule for
the IM driver(like block an IP address)?
Please help me.Thanks a lot.
Linh

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@emgsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

You’ll have to find a better internet connection. The page is there.

Thomas F. Divine

“???” wrote in message news:xxxxx@ntdev…
> I can open the page of http://www.wd-3.com/071503/ExtendingPassthru.htm.
Can you paste the content here? thank you
> ----- Original Message -----
> From: “Bryan Burgin”
> To: “Windows System Software Developers Interest List”

> Cc:
> Sent: Monday, September 01, 2003 7:31 AM
> Subject: [ntdev] RE: About the passthru driver
>
>
> Also see “Extending the PASSTHRU Sample” article at:
>
> http://www.wd-3.com/071503/ExtendingPassthru.htm.
>
> Bryan S. Burgin
> xxxxx@microsoft.com
>
> This posting is provided “AS IS” with no warranties, and confers no
> rights.
>
> -----Original Message-----
> From: Bryan Burgin
> Sent: Sunday, August 31, 2003 4:30 PM
> To: ‘Windows System Software Developers Interest List’
> Cc: ‘xxxxx@yahoo.com’
> Subject: RE: [ntdev] About the passthru driver
>
>
>
> 1. Yes. See packet discussion(s) at
> http://www.ndis.com/papers/default.htm.
> 2. Yes. To “block” a packet, you would just fail to pass the packet up
> or down the stack.
>
> Bryan S. Burgin
> xxxxx@microsoft.com
>
> This posting is provided “AS IS” with no warranties, and confers no
> rights.
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Linh Nguyen
> Sent: Sunday, August 31, 2003 4:04 PM
> To: Windows System Software Developers Interest List
> Subject: [ntdev] About the passthru driver
>
> I am writing a packet filter for NIC based on the
> passthru driver in DDK 2000.I have some question:
> 1.In IM driver if we have packet descriptor can we
> access to the data(content) of the packet?
> 2.When we run our application can we set a rule for
> the IM driver(like block an IP address)?
> Please help me.Thanks a lot.
> Linh
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@microsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@emgsoft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

I can’t build the sample passthru in DDK 2000.What
should i do?
Linh

— “Thomas F. Divine” wrote:
> You’ll have to find a better internet connection.
> The page is there.
>
> Thomas F. Divine
>
> “???” wrote in message
> news:xxxxx@ntdev…
> > I can open the page of
> http://www.wd-3.com/071503/ExtendingPassthru.htm.
> Can you paste the content here? thank you
> > ----- Original Message -----
> > From: “Bryan Burgin”
> > To: “Windows System Software Developers Interest
> List”
>
> > Cc:
> > Sent: Monday, September 01, 2003 7:31 AM
> > Subject: [ntdev] RE: About the passthru driver
> >
> >
> > Also see “Extending the PASSTHRU Sample” article
> at:
> >
> > http://www.wd-3.com/071503/ExtendingPassthru.htm.
> >
> > Bryan S. Burgin
> > xxxxx@microsoft.com
> >
> > This posting is provided “AS IS” with no
> warranties, and confers no
> > rights.
> >
> > -----Original Message-----
> > From: Bryan Burgin
> > Sent: Sunday, August 31, 2003 4:30 PM
> > To: ‘Windows System Software Developers Interest
> List’
> > Cc: ‘xxxxx@yahoo.com’
> > Subject: RE: [ntdev] About the passthru driver
> >
> >
> >
> > 1. Yes. See packet discussion(s) at
> > http://www.ndis.com/papers/default.htm.
> > 2. Yes. To “block” a packet, you would just fail
> to pass the packet up
> > or down the stack.
> >
> > Bryan S. Burgin
> > xxxxx@microsoft.com
> >
> > This posting is provided “AS IS” with no
> warranties, and confers no
> > rights.
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf
> Of Linh Nguyen
> > Sent: Sunday, August 31, 2003 4:04 PM
> > To: Windows System Software Developers Interest
> List
> > Subject: [ntdev] About the passthru driver
> >
> > I am writing a packet filter for NIC based on the
> > passthru driver in DDK 2000.I have some question:
> > 1.In IM driver if we have packet descriptor can we
> > access to the data(content) of the packet?
> > 2.When we run our application can we set a rule
> for
> > the IM driver(like block an IP address)?
> > Please help me.Thanks a lot.
> > Linh
> >
> >
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> xxxxx@microsoft.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> xxxxx@emgsoft.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> >
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Find someone who can build it or maybe tell someone the specifics of why you
can’t build it. No DDK? No computer? What?

“Linh Nguyen” wrote in message news:xxxxx@ntdev…
>
> I can’t build the sample passthru in DDK 2000.What
> should i do?
> Linh
>
> — “Thomas F. Divine” wrote:
> > You’ll have to find a better internet connection.
> > The page is there.
> >
> > Thomas F. Divine
> >
> > “???” wrote in message
> > news:xxxxx@ntdev…
> > > I can open the page of
> > http://www.wd-3.com/071503/ExtendingPassthru.htm.
> > Can you paste the content here? thank you
> > > ----- Original Message -----
> > > From: “Bryan Burgin”
> > > To: “Windows System Software Developers Interest
> > List”
> >
> > > Cc:
> > > Sent: Monday, September 01, 2003 7:31 AM
> > > Subject: [ntdev] RE: About the passthru driver
> > >
> > >
> > > Also see “Extending the PASSTHRU Sample” article
> > at:
> > >
> > > http://www.wd-3.com/071503/ExtendingPassthru.htm.
> > >
> > > Bryan S. Burgin
> > > xxxxx@microsoft.com
> > >
> > > This posting is provided “AS IS” with no
> > warranties, and confers no
> > > rights.
> > >
> > > -----Original Message-----
> > > From: Bryan Burgin
> > > Sent: Sunday, August 31, 2003 4:30 PM
> > > To: ‘Windows System Software Developers Interest
> > List’
> > > Cc: ‘xxxxx@yahoo.com’
> > > Subject: RE: [ntdev] About the passthru driver
> > >
> > >
> > >
> > > 1. Yes. See packet discussion(s) at
> > > http://www.ndis.com/papers/default.htm.
> > > 2. Yes. To “block” a packet, you would just fail
> > to pass the packet up
> > > or down the stack.
> > >
> > > Bryan S. Burgin
> > > xxxxx@microsoft.com
> > >
> > > This posting is provided “AS IS” with no
> > warranties, and confers no
> > > rights.
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf
> > Of Linh Nguyen
> > > Sent: Sunday, August 31, 2003 4:04 PM
> > > To: Windows System Software Developers Interest
> > List
> > > Subject: [ntdev] About the passthru driver
> > >
> > > I am writing a packet filter for NIC based on the
> > > passthru driver in DDK 2000.I have some question:
> > > 1.In IM driver if we have packet descriptor can we
> > > access to the data(content) of the packet?
> > > 2.When we run our application can we set a rule
> > for
> > > the IM driver(like block an IP address)?
> > > Please help me.Thanks a lot.
> > > Linh
> > >
> > >
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> > design software
> > > http://sitebuilder.yahoo.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > xxxxx@microsoft.com
> > > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> > >
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as:
> > xxxxx@emgsoft.com
> > > To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> > >
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
>

> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
>
>

I have downloaded the Extending Passthru driver Sample
source code and tried to build it but there are some
problems:
It says the file “ntddndis.h” have errors in the
“typedef struct _NDIS_VAR_DATA_DESC” line when I
include ntddndis.h in the \ntddk\inc directory.But
when I use ntddndis.h in the directory
\ntddk\inc\winme then no error in the compile stage
but in the build stage it say:

Linking…
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved
external symbol __endthreadex
nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved
external symbol __beginthreadex
Debug/PTUSERIO.exe : fatal error LNK1120: 2 unresolved
externals
Error executing link.exe.

What happened?I am using DDK 2000 on Win XP.Thanks a
lot.
Linh


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Try building using the Windows XP release of the DDK or the Windows Server
2003 release of the DDK.

You can can build uisng the “W2K Build Environment” that is available with
either of those DDK releases.

I believe that there are compiler differences between the Windows 2000
release of the DDK (uses VC++ 6.0 tools) and later releases (use
DDK-provided compiler, etc.). These differences may be causing your problem.

Good luck,

Thomas F. Divine

“Linh Nguyen” wrote in message news:xxxxx@ntdev…
>
> I have downloaded the Extending Passthru driver Sample
> source code and tried to build it but there are some
> problems:
> It says the file “ntddndis.h” have errors in the
> “typedef struct _NDIS_VAR_DATA_DESC” line when I
> include ntddndis.h in the \ntddk\inc directory.But
> when I use ntddndis.h in the directory
> \ntddk\inc\winme then no error in the compile stage
> but in the build stage it say:
>
> Linking…
> nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved
> external symbol __endthreadex
> nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved
> external symbol__beginthreadex
> Debug/PTUSERIO.exe : fatal error LNK1120: 2 unresolved
> externals
> Error executing link.exe.
>
> What happened?I am using DDK 2000 on Win XP.Thanks a
> lot.
> Linh
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
>