[Xorp-hackers] [greearb/xorp.ct] f4ef5b: trivial: fix trailing ws

GitHub noreply at github.com
Wed Apr 4 11:15:18 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/greearb/xorp.ct
  Commit: f4ef5ba56416c880553d86c4bdfb1a2a8eae2d1f
      https://github.com/greearb/xorp.ct/commit/f4ef5ba56416c880553d86c4bdfb1a2a8eae2d1f
  Author: Igor Maravic <igorm at etf.rs>
  Date:   2012-04-04 (Wed, 04 Apr 2012)

  Changed paths:
    M xorp/ospf/packet.cc

  Log Message:
  -----------
  trivial: fix trailing ws

Signed-off-by: Igor Maravic <igorm at etf.rs>


  Commit: 8ad7d8fd2d17f4ef570ad588810bed98c5b231d3
      https://github.com/greearb/xorp.ct/commit/8ad7d8fd2d17f4ef570ad588810bed98c5b231d3
  Author: Igor Maravic <igorm at etf.rs>
  Date:   2012-04-04 (Wed, 04 Apr 2012)

  Changed paths:
    M xorp/ospf/packet.cc

  Log Message:
  -----------
  xorp: ospf: Make checksumming more efficient

Instead of getting checksum out of OSPF header, zeroing checksum location, calculating checksum and
comparing if computed and received checksum are equal, just checksum received packet and see if result
is equal to 0.
Based on: http://en.wikipedia.org/wiki/Header_checksum

In case the received checksum is invalid, calculate it and print it out in exception message.

Signed-off-by: Igor Maravic <igorm at etf.rs>


Compare: https://github.com/greearb/xorp.ct/compare/7890073...8ad7d8f


More information about the Xorp-hackers mailing list