<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Cockatrice III &#8211; Virtually Fun</title>
	<atom:link href="https://virtuallyfun.com/category/cockatrice-iii/feed/" rel="self" type="application/rss+xml" />
	<link>https://virtuallyfun.com</link>
	<description>Fun with Virtualization</description>
	<lastBuildDate>Sun, 24 Mar 2024 09:18:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>Announcing Cockatrice III 0.5g</title>
		<link>https://virtuallyfun.com/2024/03/24/announcing-cockatrice-iii-0-5g/</link>
					<comments>https://virtuallyfun.com/2024/03/24/announcing-cockatrice-iii-0-5g/#comments</comments>
		
		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Sun, 24 Mar 2024 01:41:43 +0000</pubDate>
				<category><![CDATA[BasiliskII]]></category>
		<category><![CDATA[Cockatrice III]]></category>
		<category><![CDATA[Macintosh]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[virtual networking]]></category>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=14171</guid>

					<description><![CDATA[Now with better pcap filter in place. I had an issue with 86box and how NetBEUI wasn&#8217;t working. It didn&#8217;t hit me at the time but cold-brewed caught it, that the 86box didn&#8217;t have the multicast addresses in the default &#8230; <a href="https://virtuallyfun.com/2024/03/24/announcing-cockatrice-iii-0-5g/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Now with better pcap filter in place.  I had an issue with 86box and how NetBEUI wasn&#8217;t working.  It didn&#8217;t hit me at the time but <a href="https://github.com/cold-brewed" target="_blank" rel="noreferrer noopener">cold-brewed</a> caught it, that the 86box didn&#8217;t have the multicast addresses in the default pcap filter..  We need the filter to not send EVERY packet to the VM, and to also filter out the VM&#8217;s own packets so it doesn&#8217;t loop and send traffic to itself (which hopefully would just get discarded, but there is no point doing it in the first place!)</p>



<p class="wp-block-paragraph">Before I had it set to this:</p>



<pre class="wp-block-code"><code>(ether dst 09:00:07:ff:ff:ff) or (ether dst ff:ff:ff:ff:ff:ff)</code></pre>



<p class="wp-block-paragraph">It&#8217;s allowing one Multicast address for AppleTalk and the general ethernet broadcast address.  Which is more or less okay  but for everything else, you want to catch a wider net. The better choice is to use built in pcap macros:</p>



<pre class="wp-block-code"><code>((ether broadcast) or (ether multicast)</code></pre>



<p class="wp-block-paragraph">I can confirm that these do work for 86box, so I&#8217;ve copied the same into Cockatrice III.  For those who wonder what the difference between Basilisk II &amp; Cockatrice III is, I basically took a super old version of Basilisk II, ripped out as much platform code as I could, re-ported it to basic SDL, removed all the fancy clipboard/meta/drive sharing integration code, added a pcap network option to use the raw network for AppleTalk, and took the SCSI emulation from Previous so I can partition and format virtual &#8216;SCSI&#8217; disks that I&#8217;ve even been able to use in a BlueSCSI!.  I&#8217;ve sat down with a debugger some years ago and went through the SLiRP code catching as many faults when using Internet Explorer as I could, I think most of the &#8216;fix&#8217; involved renaming clashing symbols, and while it&#8217;s not perfect it was a lot more stable than the default stuff.  Although I haven&#8217;t touched it in years, and probably should look to borrowing a more modern version from elsewhere.</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="480" height="263" src="/wp-content/uploads/2024/03/cock05g.gif" alt="" class="wp-image-14175"/><figcaption class="wp-element-caption">0.5g in action</figcaption></figure>
</div>


<p class="wp-block-paragraph">Linking this thing with TDM GCC is becoming a bit of a challenge so in case I forget here is how I&#8217;m currently statically linking libgcc/libg++ along with winpthread.  All it should need now is SDL &amp; working WinSock which every Win32 should have!</p>



<pre class="wp-block-code"><code>c++ -o CockatriceIII.exe        obj/main.o obj/main_sdl.o obj/prefs.o obj/prefs_dummy.o obj/sys_unix_sdl.o obj/rom_patches.o obj/slot_rom.o obj/rsrc_patches.o obj/emul_op.o obj/macos_util.o obj/xpram.o obj/xpram_dummy.o obj/timer.o obj/timer_common.o obj/clip_dummy.o obj/adb.o obj/serial.o obj/serial_dummy.o obj/ether.o obj/sony.o obj/disk.o obj/cdrom.o obj/scsi.o obj/video.o obj/video_sdl.o obj/audio.o obj/extfs.o obj/user_strings.o obj/user_strings_unix.o obj/sdl_pcap.o obj/scsi_dummy.o obj/audio_sdl.o obj/prefs_editor_dummy.o obj/basilisk_glue.o obj/memory.o obj/newcpu.o obj/readcpu.o obj/cpustbl.o obj/cpudefs.o obj/cpuemu.o obj/fpu_ieee.o cockatricerc.o ..\slirp\libslirp.a ..\drmingw-0.7.7-win32\lib\libexchndl.a -Wl,-Bdynamic -lSDL -lws2_32  -liphlpapi -Wl,-Bstatic -lgcc -lstdc++ -lwinpthread -static -static-libgcc -static-libstdc++</code></pre>



<p class="wp-block-paragraph">I&#8217;ve been able to map to my internal servers just fine, and connect using Internet Explorer so I suppose everything is fine!</p>



<p class="wp-block-paragraph">All the cool kids love github so here you got, you can get it from the latest releases:</p>



<p class="wp-block-paragraph"><a href="https://github.com/neozeed/CockatriceIII/releases">Releases · neozeed/CockatriceIII (github.com)</a></p>



<p class="wp-block-paragraph">I&#8217;ll have to re-sync <a href="https://sourceforge.net/projects/cockatrice/" target="_blank" rel="noreferrer noopener">sourceforge</a>.  Although I do keep more resources on sourceforge since it&#8217;s clearly a lot better at file hosting.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://virtuallyfun.com/2024/03/24/announcing-cockatrice-iii-0-5g/feed/</wfw:commentRss>
			<slash:comments>13</slash:comments>
		
		
			</item>
	</channel>
</rss>
