summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2009-02-23 13:30:20 -0800
committerSam Roberts <vieuxtech@gmail.com>2009-02-23 13:30:20 -0800
commit32b3fd297ab42534096074d896becc1964518907 (patch)
tree80d927d99b9505c2dbc85d67c1f04bc246ff5300
parentfec1af5f3f92b8d2d8650bc58db3b39e907f3fcc (diff)
downloadlibnet-32b3fd297ab42534096074d896becc1964518907.tar.gz
04-fix_libnet_build_ntp.patch from debian source package
See http://packages.debian.org/source/sid/libnet
-rw-r--r--libnet/src/libnet_build_ntp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnet/src/libnet_build_ntp.c b/libnet/src/libnet_build_ntp.c
index dd3d64f..9ab427d 100644
--- a/libnet/src/libnet_build_ntp.c
+++ b/libnet/src/libnet_build_ntp.c
@@ -85,8 +85,8 @@ u_int8_t *payload, u_int32_t payload_s, libnet_t *l, libnet_ptag_t ptag)
ntp_hdr.ntp_ref_ts.fraction = htonl(ref_ts_frac);
ntp_hdr.ntp_orig_ts.integer = htonl(orig_ts_int);
ntp_hdr.ntp_orig_ts.fraction = htonl(orig_ts_frac);
- ntp_hdr.ntp_rec_ts.integer = htonl(orig_ts_int);
- ntp_hdr.ntp_rec_ts.fraction = htonl(orig_ts_frac);
+ ntp_hdr.ntp_rec_ts.integer = htonl(rec_ts_int);
+ ntp_hdr.ntp_rec_ts.fraction = htonl(rec_ts_frac);
ntp_hdr.ntp_xmt_ts.integer = htonl(xmt_ts_int);
ntp_hdr.ntp_xmt_ts.fraction = htonl(xmt_ts_frac);