libnet_build_icmpv4_unreach()
[email protected] Thu, 15 Jul 2004 12:05:14 +0530
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <[email protected]> |
Hi,
What parameters does libnet_build_icmpv4_unreach actually take, the help says it takes all this
net_ptag_t
libnet_build_icmpv4_unreach ( u_int8_t type,
u_int8_t code,
u_int16_t sum,
u_int16_t orig_len,
u_int8_t orig_tos,
u_int16_t orig_id,
u_int16_t orig_frag,
u_int8_t orig_ttl,
u_int8_t orig_prot,
u_int16_t orig_check,
u_int32_t orig_src,
u_int32_t orig_dst,
u_int8_t * payload,
u_int32_t payload_s,
libnet_t * l,
libnet_ptag_t ptag )
but in samples, icmp_unreach.c uses this ?
libnet_build_icmpv4_unreach(
ICMP_UNREACH,
ICMP_UNREACH_PORT ,
0,
NULL,
0,
lh,
icmp);
So which one of these is correct and which is wrong, and why this mismatch ??
thanks
Amit
"DISCLAIMER: This message is proprietary to Hughes Software Systems Limited
(HSS) and is intended solely for the use of the individual to whom it is
addressed. It may contain privileged or confidential information and
should not be circulated or used for any purpose other than for what it is
intended. If you have received this message in error, please notify the
originator immediately. If you are not the intended recipient, you are
notified that you are strictly prohibited from using, copying, altering, or
disclosing the contents of this message. HSS accepts no responsibility for
loss or damage arising from the use of the information transmitted by this
email including damage from virus."