03912400e5
regen patches ok pvalchev@ msf@
31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
$OpenBSD: patch-tcpreplay_c,v 1.1 2005/05/24 00:08:29 mjc Exp $
|
|
--- tcpreplay.c.orig Wed May 19 13:00:35 1999
|
|
+++ tcpreplay.c Mon May 23 12:06:01 2005
|
|
@@ -229,7 +229,7 @@ void write_packet(u_char * user,struct p
|
|
}
|
|
|
|
while (write_status < 0) {
|
|
- write_status = write_link_layer((struct link_int *)user, interface,
|
|
+ write_status = libnet_write_link_layer((struct libnet_link_int *)user, interface,
|
|
data,pcap_hdr->caplen);
|
|
#ifdef DEBUG
|
|
if (debug > 1) {
|
|
@@ -255,7 +255,7 @@ void write_packet(u_char * user,struct p
|
|
int main(int argc, char * argv[])
|
|
{
|
|
pcap_t * in_file;
|
|
- struct link_int * write_if;
|
|
+ struct libnet_link_int * write_if;
|
|
float Mrate = 0;
|
|
double starttime_local, startusec;
|
|
char ebuf[256];
|
|
@@ -327,7 +327,7 @@ int main(int argc, char * argv[])
|
|
failed_writes = 0;
|
|
pkts_sent = 0;
|
|
bytes_sent = 0;
|
|
- write_if = open_link_interface(interface,ebuf);
|
|
+ write_if = libnet_open_link_interface(interface,ebuf);
|
|
if (write_if <= 0) {
|
|
fprintf(stderr, "output i/f: %s\n",ebuf);
|
|
exit(1);
|