Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 313855 | Differences between
and this patch

Collapse All | Expand All

(-)script.c.org (-2 / +8 lines)
Lines 10-15 Link Here
10
10
11
#ifdef USE_TCL
11
#ifdef USE_TCL
12
12
13
#include "systype.h"
14
13
#include <stdio.h>
15
#include <stdio.h>
14
#include <stdlib.h>
16
#include <stdlib.h>
15
#include <string.h>
17
#include <string.h>
Lines 23-30 Link Here
23
#include <sched.h>
25
#include <sched.h>
24
26
25
#include <sys/ioctl.h>
27
#include <sys/ioctl.h>
28
#ifdef OSTYPE_LINUX
29
 #include <pcap-bpf.h>
30
#else
31
 #include <net/bpf.h>
32
#endif
26
#include <pcap.h>
33
#include <pcap.h>
27
#include <pcap-bpf.h>
28
34
29
#include "release.h"
35
#include "release.h"
30
#include "hping2.h"
36
#include "hping2.h"
Lines 262-268 Link Here
262
#define APD_MAX_LEN (65536*2+4096)
268
#define APD_MAX_LEN (65536*2+4096)
263
char *GetPacketDescription(char *data, int len, int hexdata)
269
char *GetPacketDescription(char *data, int len, int hexdata)
264
{
270
{
265
	unsigned char *p = (char*)data;
271
	unsigned char *p = (unsigned char*)data;
266
	struct ars_packet pkt;
272
	struct ars_packet pkt;
267
	char *d = malloc(APD_MAX_LEN);
273
	char *d = malloc(APD_MAX_LEN);
268
	char *ret;
274
	char *ret;

Return to bug 313855