! $Id: t1.s,v 1.6 1996/01/08 11:25:01 jhawk Exp $

		
	.global _tcp_output_hack
	
_tcp_output_hack:

	add  %o7, %i5, %o7			! original code (8f4)
	sth  %o7, [ %l7 + 2 ]			! original code (8f8)

	ld [ %i0 + 0x6c ], %o1			! o1 = &tp.tos (sizeof(struct tcpcb))
	stb %o1, [ %l7 + 1 ]			! ip_tos = "tp.tos"
	
	sethi %hi(_tcp_output+0x8fc), %o0
	jmp %lo(_tcp_output+0x8fc)+%o0		! go back
	nop
