File: packet.h

package info (click to toggle)
icmpush 2.2-6.2
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 256 kB
  • sloc: ansic: 1,726; makefile: 78; sh: 24
file content (32 lines) | stat: -rw-r--r-- 938 bytes parent folder | download | duplicates (4)
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
32
#ifndef __PACKET_H__
#define __PACKET_H__

 /* Linked list of Routers within an ICMP Router Advertisement */
struct router {
                u_long address;
                u_long pref;
                struct router *next;
              };
              
struct my_pack { u_long ip_spoof;
                 struct sockaddr_in destino;
                 u_long gway;
                 u_long dest_red;
                 u_long orig;
                 int cod_icmp;
                 u_short tipo_icmp;
                 u_short protocol;
                 u_short p_origen;
                 u_short p_destino;
                 u_long maskaddr;
                 struct router *router;
                 u_short lifetime;
                 u_short num_routers;
                 char *pattern;
                 int size_pattern;
                 int timeout;
                 u_char pointer;
                 u_long garbage;
               };
 
 #endif