diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2011-06-09 13:57:33 -0700 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2011-06-09 13:57:33 -0700 |
commit | e20d0bcb9d3eed803bdcd547dbf88b1954204332 (patch) | |
tree | e6c7440b299d374811c4aa60bdaabbe3b5c14bf6 /libnet | |
parent | fe9dc0dcec42c1beebe9b0242cd2ccf1464f83d3 (diff) | |
download | libnet-e20d0bcb9d3eed803bdcd547dbf88b1954204332.tar.gz |
snap parameter was getting copied into the dhost field.
Diffstat (limited to 'libnet')
-rw-r--r-- | libnet/src/libnet_build_isl.c | 2 |
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); |