Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (23 sloc) 0.506 kB
7257579 @antirez Git repository created from hping3-clockskew-0.tar.gz
authored
1 /* $Id: sendrawip.c,v 1.2 2003/09/01 00:22:06 antirez Exp $ */
2
3 #include <stdio.h>
4 #include <string.h>
5 #include <stdlib.h>
6 #include <sys/time.h>
7 #include <unistd.h>
8 #include <signal.h>
9 #include <errno.h>
10
11 #include "hping2.h"
12 #include "globals.h"
13
14 void send_rawip(void)
15 {
16 char *packet;
17
18 packet = malloc(data_size);
19 if (packet == NULL) {
20 perror("[send_rawip] malloc()");
21 return;
22 }
23 memset(packet, 0, data_size);
24 data_handler(packet, data_size);
25 send_ip_handler(packet, data_size);
26 free(packet);
27 }
Something went wrong with that request. Please try again.