[Simh] sim_ether.c bug

R 0xef967c36 at gmail.com
Fri Mar 2 19:05:10 EST 2007


On Fri, Mar 02, 2007 at 06:41:17PM -0500, Thomas Pfau wrote:
> ---- cut here ----
> --- sim_ether.c~        2006-10-15 14:58:04.000000000 -0400
> +++ sim_ether.c 2007-02-10 15:51:08.000000000 -0500
> @@ -1188,7 +1188,7 @@
>     if (NULL != conn) datalink = pcap_datalink(conn), pcap_close(conn);
>     if ((NULL == conn) || (datalink != DLT_EN10MB)) {
>       for (j=i+1; j<used; ++j)
> -        list[j] = list[j+1];
> +        list[j-1] = list[j];
>       --used;
>       --i;
>     }
> ---- cut here ----

http://mailman.trailing-edge.com/pipermail/simh/2006-March/000498.html

I decided since then to scrap just everything of sim_ether.c (except some
utility functions, I was too lazy) and to do let simh do all networking
through reading/writing to a simple file descriptor (that I wire to a
TUN/TAP device with a simple (setuid) wrapper).
And no need to run simh as root anymore :)



More information about the Simh mailing list