OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / lib / Libnet / test / libnet_test.h
1 /*
2  *  $Id: libnet_test.h,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
3  *
4  *  libnet_test.h
5  *
6  *  Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
7  */
8
9 #ifndef __LIBNET_TEST_H
10 #define __LIBNET_TEST_H
11
12 #include "../include/libnet.h"
13
14 u_char enet_src[6] = {0x0d, 0x0e, 0x0a, 0x0d, 0x00, 0x00};
15 u_char enet_dst[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
16 u_char ip_src[4]   = {0x0a, 0x00, 0x00, 0x01};
17 u_char ip_dst[4]   = {0x0a, 0x00, 0x00, 0x02};
18
19 int send_arp(struct libnet_link_int *, u_char *);
20 int libnet_do_arp(struct libnet_link_int *, u_char *, struct ether_addr *, u_long);
21 int send_tcp(struct libnet_link_int *, u_char *, u_long, u_short, u_long, u_short);
22 int send_icmp(struct libnet_link_int *, u_char *, u_long, u_long);
23 void usage(u_char *);
24
25 #ifndef IPOPT_SECURITY
26 #define IPOPT_SECURITY  130
27 #endif
28
29 #endif  /* __LIBNET_TEST_H */
30
31 /* EOF */