Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char query[200];
- char ips_s[16];
- char ips_d[16];
- snprintf(ips_s,sizeof ips_s,"%u.%u.%u.%u" ,(ip->daddr & 0x000000ff)
- ,(ip->daddr & 0x0000ff00) >> 8
- ,(ip->daddr & 0x00ff0000) >> 16
- ,(ip->daddr & 0xff000000) >> 24);
- snprintf(ips_d,sizeof ips_d,"%u.%u.%u.%u" , (ip->daddr & 0x000000ff)
- ,(ip->daddr & 0x0000ff00) >> 8
- ,(ip->daddr & 0x00ff0000) >> 16
- ,(ip->daddr & 0xff000000) >> 24);
- sprintf(query,"icmp && icmp[icmptype] = 3 && icmp[icmpcode] = 3 && src host %s && dst host %s",
- ips_d,
- ips_s);
Advertisement
Add Comment
Please, Sign In to add comment