Skip to content

Commit

Permalink
eigrpd: remove workarounds for old BSDs
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
  • Loading branch information
rubenk committed Mar 11, 2020
1 parent 7b26b14 commit a38b0c9
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions eigrpd/eigrp_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,24 +749,6 @@ static struct stream *eigrp_recv_packet(struct eigrp *eigrp,

ip_len = iph->ip_len;

#if !defined(GNU_LINUX) && (OpenBSD < 200311) && (__FreeBSD_version < 1000000)
/*
* Kernel network code touches incoming IP header parameters,
* before protocol specific processing.
*
* 1) Convert byteorder to host representation.
* --> ip_len, ip_id, ip_off
*
* 2) Adjust ip_len to strip IP header size!
* --> If user process receives entire IP packet via RAW
* socket, it must consider adding IP header size to
* the "ip_len" field of "ip" structure.
*
* For more details, see <netinet/ip_input.c>.
*/
ip_len = ip_len + (iph->ip_hl << 2);
#endif

#if defined(__DragonFly__)
/*
* in DragonFly's raw socket, ip_len/ip_off are read
Expand Down

0 comments on commit a38b0c9

Please sign in to comment.