~kris/9p

9hist

f34d928ee8cbc1c8226ef8941729a5f3e03c86bf — David du Colombier 28 years ago dc81b36
Plan 9 from Bell Labs 1998-03-08
2 files changed, 6 insertions(+), 5 deletions(-)

M ip/ip.c
M pc/vgaclgd542x.c
M ip/ip.c => ip/ip.c +4 -3
@@ 100,21 100,21 @@ ipoput(Block *bp, int gating, int ttl)
		chunk = nhgets(eh->length);
		if(chunk > len){
			netlog(Logip, "short gated packet\n");
			goto raise;
			goto free;
		}
		if(chunk < len)
			len = chunk;
	}
	if(len >= IP_MAX){
		netlog(Logip, "exceeded ip max size %V\n", eh->dst);
		goto raise;
		goto free;
	}

	r = v4lookup(eh->dst);
	if(r == nil){
		stats.noroute++;
		netlog(Logip, "no interface %V\n", eh->dst);
		goto raise;
		goto free;
	}
	if(r->type & (Rifc|Runi|Rbcast|Rmulti))
		gate = eh->dst;


@@ 224,6 224,7 @@ ipoput(Block *bp, int gating, int ttl)
raise:
	runlock(ifc);
	poperror();
free:
	freeblist(bp);	
}


M pc/vgaclgd542x.c => pc/vgaclgd542x.c +2 -2
@@ 58,8 58,8 @@ clgd542xenable(VGAscr* scr)
	/*
	 * Disable the cursor.
	 */
	sr12 = vgaxi(Seqx, 0x12);
	vgaxo(Seqx, 0x12, sr12 & ~0x01);
	sr12 = vgaxi(Seqx, 0x12) & ~0x01;
	vgaxo(Seqx, 0x12, sr12);

	/*
	 * Cursor colours.