Subject: bug fix for rarpd
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Christos Zoulas <christos@deshaw.com>
List: current-users
Date: 03/01/1994 00:40:55
I finally managed to make an ncd-15c work of my pc
[there should be a fix to tftpd upcoming...]
Here's the patch for rarpd!
Please apply if not already there.
[ar_hrd is not in network order!]
christos
*** rarpd.c.orig Mon Jan 24 05:29:22 1994
--- rarpd.c Tue Mar 1 00:38:57 1994
***************
*** 697,703 ****
/* Build the rarp reply by modifying the rarp request in place. */
ep->ether_type = htons(ETHERTYPE_REVARP);
! ap->ea_hdr.ar_hrd = ARPHRD_ETHER;
ap->ea_hdr.ar_pro = htons (ETHERTYPE_IP);
ap->arp_op = htons (REVARP_REPLY);
--- 697,703 ----
/* Build the rarp reply by modifying the rarp request in place. */
ep->ether_type = htons(ETHERTYPE_REVARP);
! ap->ea_hdr.ar_hrd = htons(ARPHRD_ETHER);
ap->ea_hdr.ar_pro = htons (ETHERTYPE_IP);
ap->arp_op = htons (REVARP_REPLY);
------------------------------------------------------------------------------