[2187] in Athena Bugs

home help back first fref pref prev next nref lref last post

if_un.c patch

daemon@ATHENA.MIT.EDU (Jeffrey I. Schiller)
Fri May 5 22:06:21 1989

From: Jeffrey I. Schiller <jis@ATHENA.MIT.EDU>
Date: Fri, 5 May 89 22:06:03 EDT
To: don@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
Here is the patch I came up with (note: It has not been tested in any
way at this point):

*** /u1/sys/caif/if_un.c	Fri Jul 29 01:41:20 1988
--- /tmp/if_un.c	Fri May  5 22:04:43 1989
***************
*** 480,490 ****
  	if (status & XS_16CL){
  		us->us_if.if_collisions += 16;
  		us->us_if.if_oerrors++;
! 		printf("un%d: ethernet jammed\n", unit);
  	}
  	else if (status & XS_SHRT){
  		us->us_if.if_oerrors++;
! 		printf( "un%d: ethernet not responding (is it connected?)\n",
  			unit);
  	}
  	else {
--- 480,492 ----
  	if (status & XS_16CL){
  		us->us_if.if_collisions += 16;
  		us->us_if.if_oerrors++;
! 		if (us->us_if.if_flags & IFF_DEBUG)
! 		  printf("un%d: ethernet jammed\n", unit);
  	}
  	else if (status & XS_SHRT){
  		us->us_if.if_oerrors++;
! 		if (us->us_if.if_flags & IFF_DEBUG)
! 		  printf( "un%d: ethernet not responding (is it connected?)\n",
  			unit);
  	}
  	else {

home help back first fref pref prev next nref lref last post