Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sleinen/samplicator
Browse files Browse the repository at this point in the history
  • Loading branch information
sleinen committed Oct 11, 2021
2 parents 9f68a4a + 4230b82 commit ceeb1d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rawsend.c
Expand Up @@ -118,9 +118,9 @@ raw_send_from_to (s, msg, msglen, saddr_generic, daddr_generic, ttl, flags)
/* Depending on the target platform, te ip_off and ip_len fields
should be in either host or network byte order. Usually
BSD-derivatives require host byte order, but at least OpenBSD
since version 2.1 uses network byte order. Linux uses network
byte order for all IP header fields. */
#if defined (__linux__) || (defined (__OpenBSD__) && (OpenBSD > 199702))
since version 2.1 and FreeBSD since 11.0 use network byte
order. Linux uses network byte order for all IP header fields. */
#if defined (__linux__) || (defined (__OpenBSD__) && (OpenBSD > 199702)) || (defined (__FreeBSD_version) && (__FreeBSD_version > 1100030))
ih.ip_len = htons (length);
ih.ip_off = htons (0);
#else
Expand Down

0 comments on commit ceeb1d2

Please sign in to comment.