]> git.proxmox.com Git - mirror_frr.git/commit
eigrpd: Fix endianness issue in packets
authorPawel Dembicki <p.dembicki@wb.com.pl>
Fri, 14 Jun 2019 10:28:00 +0000 (12:28 +0200)
committerPawel Dembicki <p.dembicki@wb.com.pl>
Fri, 14 Jun 2019 11:04:07 +0000 (13:04 +0200)
commite296eae4f3acb9b63758cba7a536c0675fb3fd1a
tree760149e3250af70f53ce7155ea7f8b692f052e7d
parent0590d2d209d2697402ca1f1976cb04ffa48b9d76
eigrpd: Fix endianness issue in packets

Net prefixes in eigrp update packets is created and read
without check host endianness.

This patch use ntohl and htonl to read and write ip prefix
from and to packet.

Tested: x86, powerpc

Signed-off-by: Pawel Dembicki <p.dembicki@wb.com.pl>
eigrpd/eigrp_packet.c
eigrpd/eigrp_structs.h