<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN 
class=029261522-12092003>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=029261522-12092003>Authentication type 
simple does not work, because bird sends 256 instead of 1 in auth type 
field.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=029261522-12092003>The reason is the 
wrong byte order.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=029261522-12092003>I suggest these 
corrections in proto/ospf/packet.c to fix this.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=029261522-12092003>Best regards: 
Joseph</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=029261522-12092003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># diff -u 
../../../tmp/bird-1.0.7/proto/ospf/packet.c packet.c<BR>--- 
../../../tmp/bird-1.0.7/proto/ospf/packet.c Thu Aug 14 10:13:14 2003<BR>+++ 
packet.c    Fri Sep 12 23:50:45 2003<BR>@@ -32,7 +32,7 
@@<BR> ospf_tx_authenticate(struct ospf_iface *ifa, struct ospf_packet 
*pkt)<BR> {<BR>   int i;<BR>-  
pkt->autype=ifa->autype;<BR>+  
pkt->autype=htons(ifa->autype);<BR>   
memcpy(pkt->authetication, ifa->aukey, 8);<BR>   
return;<BR> }<BR>@@ -41,7 +41,7 @@<BR> ospf_rx_authenticate(struct 
ospf_iface *ifa, struct ospf_packet *pkt)<BR> {<BR>   int 
i;<BR>-  if(pkt->autype!=ifa->autype) return 0;<BR>+  
if(pkt->autype!=htons(ifa->autype)) return 0;<BR>   
if(ifa->autype==AU_NONE) return 1;<BR>   
if(ifa->autype==AU_SIMPLE)<BR>   {<BR></DIV></FONT></BODY></HTML>