[Simh] Help getting network support to build on OS X 10.3.5

Galen Tackett gtackett at yahoo.com
Sat Oct 16 11:47:53 EDT 2004


Thanks, Mark.

Your suggestion that I 0readme_ethernet.txt carefully led me to the 
current pcap version from tcpdump.org. Installing that took care of my 
problem.

Galen
On Oct 15, 2004, at 10:24 PM, Mark Pizzolato wrote:

>
> --- Tim Newsham <newsham at lava.net> wrote:
>
>>> I can't get SimH to compile with network support. I'm a bit
>> uncertain
>>> what version of pcap should be used, for one thing. There seem to
>> be a
>>> lot of declarations missing from /usr/include/pcap.h. I've also
>> tried
>>> the version 0.8.1-1 from fink. With that one the only error I get
>> is
>>> that pcap_sendpacket is undefined.  It's defined in pcap.h but
>> the
>>> definition is conditionalized on WIN32 being defined.
>>
>> The pcap library is a packet capture library.  Unfortunately
>> it doesn't have a function for sending packets (it should).
>> Some platforms have gone and added their own using various
>> different names.
>>
>> I'm not familiar with os x's packet capture interface, but
>> if it is using BPF like BSD does, you can simply change it
>> to open the device O_RDWR (rather than O_RDONLY) and then
>> write your pcap_sendpacket function something along the lines
>> of:
>>
>>    int
>>    pcap_sendpacket(pcap_t *p, const u_char *buf, u_int len) {
>>        return write(p->fd, buf, len);
>>    }
>>
>> You may want to check that it doesn't yet have this functionality
>> under a different function name first.  pcap_inject and pcap_write
>> and pcap_send are good candidate names.
>>
>>> Galen
>>
>> Tim N.
>> _______________________________________________
>> Simh mailing list
>> Simh at trailing-edge.com
>> http://mailman.trailing-edge.com/mailman/listinfo/simh
>
> I'm the one who worked out much of the porting details for the
> current networking support.
>
> The above advise is not currently correct.
>
> There is documentation on how to build with networking support on all
> Unix/Unix-like platforms included in the current release.  Please
> read 0readme_ethernet.txt carefully.
>
> Get back to me with furthur questions.
>
> - Mark
>




More information about the Simh mailing list