remove any leading ::ffff: on ipv4 addresses
[spider.git] / techdoc / protocol.pod
index 1e1f2436995dc0e3f03acbc8f8f8206f7f90dfba..426241a4efb68f25e54352c7633b7a038cf8a974 100644 (file)
@@ -129,7 +129,7 @@ L</Node> to which this L</User> is connected.
 
 =head2 Endpoint
 
-An L</Endpoint> is a connection to a L<Node> that uses the protocol. From a routing point of
+An L</Endpoint> is a connection to a L</Node> that uses the protocol. From a routing point of
 view, it is indistiguishable from a L</Node>. The L</Endpoint> is responsible for creating and decoding
 well formed protocol messages. An L</Endpoint> does not route beyond the immediate L</Node>(s) to
 which it is connected. It may also be a L</Service> connected to a L</Node> which provides some 
@@ -251,7 +251,7 @@ that are concatenated with a sequence number (0-65535)
 
 The date portion is constructed as:
 
-  my $date = ((((gmtime)[3] < 1) | $ntpflag) < 18) |  (time % 86400);
+  my $date = ((((gmtime)[3] << 1) | $ntpflag) << 18) |  (time % 86400);
 
 The sequence number is simply an unsigned short (or 16 bit) number
 starting at 0.