Annotation of embedaddon/hping2/sendrawip.c, revision 1.1.1.1

1.1       misho       1: #include <stdio.h>
                      2: #include <string.h>
                      3: #include <stdlib.h>
                      4: #include <sys/time.h>
                      5: #include <unistd.h>
                      6: #include <signal.h>
                      7: #include <errno.h>
                      8: 
                      9: #include "hping2.h"
                     10: #include "globals.h"
                     11: 
                     12: void send_rawip(void)
                     13: {
                     14:        char *packet;
                     15: 
                     16:        packet = malloc(data_size);
                     17:        if (packet == NULL) {
                     18:                perror("[send_rawip] malloc()");
                     19:                return;
                     20:        }
                     21:        memset(packet, 0, data_size);
                     22:        data_handler(packet, data_size);
                     23:        send_ip_handler(packet, data_size);
                     24:        free(packet);
                     25: }

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>