summaryrefslogtreecommitdiff
path: root/libnet
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2011-06-09 13:57:33 -0700
committerSam Roberts <vieuxtech@gmail.com>2011-06-09 13:57:33 -0700
commite20d0bcb9d3eed803bdcd547dbf88b1954204332 (patch)
treee6c7440b299d374811c4aa60bdaabbe3b5c14bf6 /libnet
parentfe9dc0dcec42c1beebe9b0242cd2ccf1464f83d3 (diff)
downloadlibnet-e20d0bcb9d3eed803bdcd547dbf88b1954204332.tar.gz
snap parameter was getting copied into the dhost field.
Diffstat (limited to 'libnet')
-rw-r--r--libnet/src/libnet_build_isl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnet/src/libnet_build_isl.c b/libnet/src/libnet_build_isl.c
index e120eba..8b97763 100644
--- a/libnet/src/libnet_build_isl.c
+++ b/libnet/src/libnet_build_isl.c
@@ -73,7 +73,7 @@ uint32_t payload_s, libnet_t *l, libnet_ptag_t ptag)
isl_hdr.isl_user = user;
memcpy(&isl_hdr.isl_shost, shost, sizeof(isl_hdr.isl_shost));
isl_hdr.isl_len = htons(len);
- memcpy(&isl_hdr.isl_dhost, snap, sizeof(isl_hdr.isl_dhost));
+ memcpy(&isl_hdr.isl_snap, snap, sizeof(isl_hdr.isl_snap));
isl_hdr.isl_vid = htons(vid);
isl_hdr.isl_index = htons(portindex);
isl_hdr.isl_reserved= htons(reserved);