File: libnet_test.h

package info (click to toggle)
libnet0 1.0.2a-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 2,860 kB
  • ctags: 858
  • sloc: sh: 9,149; ansic: 9,055; makefile: 192
file content (31 lines) | stat: -rw-r--r-- 868 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 *  $Id: libnet_test.h,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
 *
 *  libnet_test.h
 *
 *  Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
 */

#ifndef __LIBNET_TEST_H
#define __LIBNET_TEST_H

#include "../include/libnet.h"

u_char enet_src[6] = {0x0d, 0x0e, 0x0a, 0x0d, 0x00, 0x00};
u_char enet_dst[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
u_char ip_src[4]   = {0x0a, 0x00, 0x00, 0x01};
u_char ip_dst[4]   = {0x0a, 0x00, 0x00, 0x02};

int send_arp(struct libnet_link_int *, u_char *);
int libnet_do_arp(struct libnet_link_int *, u_char *, struct ether_addr *, u_long);
int send_tcp(struct libnet_link_int *, u_char *, u_long, u_short, u_long, u_short);
int send_icmp(struct libnet_link_int *, u_char *, u_long, u_long);
void usage(u_char *);

#ifndef IPOPT_SECURITY
#define IPOPT_SECURITY  130
#endif

#endif  /* __LIBNET_TEST_H */

/* EOF */