rawsock_utils.h
上传用户:bobuwen
上传日期:2007-01-07
资源大小:10k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. extern void tcp_gen(char *packet,unsigned short sport,
  2.                     unsigned short dport,unsigned long seq,
  3.                     unsigned long ack);
  4. extern void udp_gen(char *packet,unsigned short sport,
  5.                     unsigned short dport,unsigned short length);
  6. extern void ip_gen(char *packet,unsigned char protocol,struct in_addr saddr,
  7.             struct in_addr daddr,unsigned short length);
  8. extern unsigned short trans_check(unsigned char proto,
  9.                                   char *packet,
  10.                                   int length,
  11.                                   struct in_addr source_address,
  12.                                   struct in_addr dest_address);