Currently I'm working on adding my own software to provide internet support to an old MS-DOS game. Because my primary environment is Linux, I use DOSBOX from within Linux and feed my internet connection into DOSBOX as per instructions from here: configuring DOSBOX for internet
After this, linux is basically acting like another router to DOSBOX but the gateway address and DNS that DOSBOX uses are the same as the host uses to connect to the internet.
I then download the mTCP dos internet suite and I can use its ping tool and its htget tool to retrieve the home page of google, but when I analyze the packets in unix's tcpdump I don't see the first 14 bytes of the ethernet frame and I don't even see an ARP packet either, and the mTCP suite has no ARP table.
So I don't understand how its possibly such software can connect to google when it doesn't even know the remote machines MAC address, unless its using broadcast address all the time, but wouldn't that drain network resources?
So back to my own software.... I am able to connect to my host (linux) from DOSBOX (we are dealing with the same computer here) if I use IP packets, but I am having trouble sending an ARP packet out (well at least tcpdump won't show it).
This is the data I am sending on the network in order:
FF FF FF FF FF FF 00 02 12 00 56 34 08 06 00 01 08 00 06 04 00 01 00 02 12 00 56 34 C0 A8 07 02 FF FF FF FF FF FF 08 08 08 08
And I add zeros to the data until the size of the data is 60 bytes.
DOSBOX identifies my ethernet address through ETHERSLIP driver as: 00:02:12:00:56:34
While DOSBOX runs, I pre-created a tunnel and info for it is as follows:
sl0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1524 inet 192.168.7.1 netmask 255.255.255.252 destination 192.168.7.2 adaptive txqueuelen 15240 (Adaptive Serial Line IP) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Is there a way to set this up so that when I issue an arp request to the network in DOSBOX it will show up as an arp request (instead of showing up nothing) when I use tcpdump in linux?