China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 03:04
中国DOS联盟论坛 » DOS媒体世界 & 网络技术 (多媒体室) » What exactly is PACKET DRIVER? View 6,878 Replies 21
Floor 16 Posted 2006-09-21 18:55 ·  中国 福建 福州 连江县 电信
中级用户
★★
Credits 288
Posts 78
Joined 2003-11-19 00:00
22-year member
UID 13041
Gender Male
Status Offline
Let me talk about my personal understanding of NDIS and Packet drivers.

Both NDIS and Packet are network card drivers.

The Packet - type driver is relatively simple. Generally, it is an executable file. For example, the Packet driver of the 8139 network card is "RtsPkt.com". You can directly run "RtsPkt.com 0x60" in the command prompt to load the driver into memory for application programs to use. "0x60" is the interrupt number. Of course, some other parameters can also be added, such as speed, bus number, device number, etc. On the Realtek website, the Packet driver is classified under the UNIX system, and I don't know the details specifically.

And the NDIS driver is more complex. Generally, it is not a directly executable program. For example, the NDIS driver of the 8139 network card is "RtsNd.dos", and there is also a configuration file "Protocol.ini" which is used to set some specific parameters, such as the driver name, network card speed, which network card on the bus to drive when there are multiple network cards, etc. There are some other files, but they are not the key. Generally, they are used when the application program using this driver installs this driver. There are multiple versions of NDIS drivers, from NDIS1 to NDIS5. The NDIS - type driver is more advanced than the Packet - type driver, so Microsoft uses the NDIS - type driver in the WINDOWS system. The commonly used one in DOS is the NDIS2 driver, and from 98 to Xp, the NDIS5 driver is generally used. For loading the NDIS driver, one way is to load it in the CONFIG.SYS file. For example, the IBM DOS network client software uses this way. Another way is that the application program itself calls the driver file for loading. For example, the Microsoft DOS network client software calls the.dos file to load the driver when running the Net.exe program.

Because there is no unified network card driver under DOS, different applications use different types of drivers. So you need to load the corresponding network card driver program according to the type of driver used by the specific application you are running. It is not like under WINDOWS where as long as the network card driver is loaded once, all applications can use the network.

Most network programs under DOS use the Packet driver, of course, because the Packet driver is relatively simple. For example, the network cloning function of GHOST uses the Packet driver. So as long as the Packet driver of the network card is loaded before running GHOST, the network cloning function can be used in GHOST. The FTP.EXE program also uses the Packet driver.

The typical software using the NDIS2 driver is the Microsoft DOS network client software. The IBM DOS network client software also uses the NDIS2 driver.

Let's talk about the "Dis_Pkt.dos" program. Because the Microsoft WINDOWS system uniformly uses the NDIS - type driver, some network card manufacturers no longer develop the Packet - type driver under DOS. For example, Intel's Pro 100, Pro1000 network cards, Broadcom network cards, etc., which are widely used, have no Packet driver but have NDIS2 drivers. To solve this problem, a compromise solution is provided. That is, converting the NDIS2 driver into a Packet driver, which is the function of the "Dis_Pkt.dos" program. As long as you drive the NDIS2 driver of the network card, and then through the "Dis_Pkt.dos" program, you can provide a Packet driver for the application program.

[ Last edited by LanCat on 2006-9-21 at 19:14 ]
Floor 17 Posted 2006-09-21 23:05 ·  中国 四川 绵阳 联通
初级用户
Credits 66
Posts 26
Joined 2006-01-23 16:28
20-year member
UID 49404
Status Offline
I used several methods under DOS but couldn't view the help. ftp /? ftp - help I don't know how to view the help.

Thank you, I'll try again
Floor 18 Posted 2006-09-21 23:25 ·  中国 四川 绵阳 联通
初级用户
Credits 66
Posts 26
Joined 2006-01-23 16:28
20-year member
UID 49404
Status Offline
I'm sorry, I used several methods but couldn't view the ftp help /? -help. Is the ftp version I sent you 0.7? My get.bat is written like this:
ftp -f cmd.txt
The content of cmd.txt is as follows:
open 210.12.168.8:21
anonymous
anonymous
bin
get kvdos.exe
get kva.vlb
bye
Is this correct? How do you write it? The script for downloading multiple files.
Thank you.
Do you have QQ? Mine is 7717441
Floor 19 Posted 2006-09-21 23:42 ·  中国 四川 绵阳 联通
初级用户
Credits 66
Posts 26
Joined 2006-01-23 16:28
20-year member
UID 49404
Status Offline
Hahaha!!It worked out!
Floor 20 Posted 2006-09-22 00:02 ·  中国 四川 绵阳 联通
初级用户
Credits 66
Posts 26
Joined 2006-01-23 16:28
20-year member
UID 49404
Status Offline
Another problem. There is an error when downloading files larger than 300k. Do you know the solution?
Attachments
get.bmp
Floor 21 Posted 2006-09-22 00:28 ·  中国 重庆 九龙坡区 电信
新手上路
Credits 2
Posts 1
Joined 2006-09-13 08:29
19-year member
UID 62480
Status Offline
The reply on floor 16 is really good, relatively clear. If you write a little more, it will be even better. I still don't understand some things. I want to connect to the network step by step manually under DOS. For example, after loading the Packet driver, how to add an IP address? What are the differences between the operation methods of automatic IP address acquisition and manual specified address?
In fact, there are many complex DOS systems with network functions that have already been made on the Internet, but they have one big shortcoming, that is, they are too complex (especially that batch script, which is much more complex than the batch scripts we usually see, and it's too hard to understand.)
Floor 22 Posted 2010-04-29 14:14 ·  中国 江西 南昌 移动
初级用户
Credits 73
Posts 31
Joined 2010-04-22 19:49
16-year member
UID 165262
Gender Male
Status Offline
The reply on floor 16 is good!
Forum Jump: