~kris/9p

9hist

d7501edd91bcaed87673aaeb1b488f6680bf6431 — David du Colombier 26 years ago 50f1850
Plan 9 from Bell Labs 1999-10-03
1 files changed, 10 insertions(+), 1 deletions(-)

M ip/ip.c
M ip/ip.c => ip/ip.c +10 -1
@@ 180,7 180,16 @@ ipoput(Fs *f, Block *bp, int gating, int ttl, int tos)
	else
		gate = r->v4.gate;

	if(!gating){
	if(gating){
		switch(eh->ttl){
		case 0:
		case 1:
			goto free;
		default:
			eh->ttl--;
			break;
		}
	} else {
		eh->vihl = IP_VER|IP_HLEN;
		eh->ttl = ttl;
		eh->tos = tos;