Commits

Anonymous committed 1b5f2a5

Use raw.Socket.writeChecksum() instead of manually rendering checksums, Update version in package.json to 1.1.9

Comments (0)

Files changed (3)

 
  * Use `raw.Socket.createChecksum()` instead of automatic checksum generation
 
+## Version 1.1.9 - 01/07/2013
+
+ * Use `raw.Socket.writeChecksum()` instead of manually rendering checksums
+
 # Roadmap
 
 Suggestions and requirements should be sent to <stephen.vickers.sv@gmail.com>.
 	buffer.writeUInt16BE (0, 2);
 	buffer.writeUInt16BE (this.sessionId, 4);
 	buffer.writeUInt16BE (req.id, 6);
-	
-	var checksum = raw.createChecksum (buffer);
-	buffer.writeUInt8 ((checksum & 0xff00) >> 8, 2);
-	buffer.writeUInt8 (checksum & 0xff, 3);
+
+	raw.writeChecksum (buffer, 2, raw.createChecksum (buffer));
 
 	return buffer;
 };
 {
   "name": "net-ping",
-  "version": "1.1.8",
+  "version": "1.1.9",
   "description": "Ping and trace route to many hosts at once.",
   "main": "index.js",
   "directories": {