]> git.puffer.fish Git - matthieu/frr.git/commit
2004-10-05 Paul Jakma <paul@dishone.st>
authorpaul <paul>
Tue, 5 Oct 2004 14:39:43 +0000 (14:39 +0000)
committerpaul <paul>
Tue, 5 Oct 2004 14:39:43 +0000 (14:39 +0000)
commit7216466aecd59e675a4f66d6e329e748f32ad690
treef1fdec0381383aef8b8491008c4337f89c5bc077
parent18b12c387e2bcd8a0e81a8d2635c1ef52c8a9a7d
2004-10-05 Paul Jakma <paul@dishone.st>

* irdp_packet.c: (parse_irdp_packet) style issues.
  Use sockopt_iphdrincl_swab_systoh.
          Try unbork the code. Checksum the ICMP data and actually
          compare it to received checksum. Check data length against
          claimed length in header.
  Always use ntoh.. when accessing addresses, even when the
          comparison happens to be endian-safe.
  (send_packet) minor style isues. Use
          sockopt_iphdrincl_swab_htosys.
  (irdp_iph_hton/ntoh) IP header to/from network/host order.
zebra/ChangeLog
zebra/irdp_packet.c