#include "compiler.h"
#include "dirs.h"
#include "dynamic-string.h"
+#include "fatal-signal.h"
#include "nx-match.h"
#include "odp-util.h"
#include "ofp-actions.h"
{
set_program_name(argv[0]);
parse_options(argc, argv);
- signal(SIGPIPE, SIG_IGN);
+ fatal_ignore_sigpipe();
run_command(argc - optind, argv + optind, get_all_commands());
return 0;
}
int error;
bool first;
- file = pcap_open(argv[1], "rb");
+ file = ovs_pcap_open(argv[1], "rb");
if (!file) {
ovs_fatal(errno, "%s: open failed", argv[1]);
}
long long int when;
struct flow flow;
- error = pcap_read(file, &packet, &when);
+ error = ovs_pcap_read(file, &packet, &when);
if (error) {
break;
}
{
FILE *pcap;
- pcap = pcap_open(argv[1], "rb");
+ pcap = ovs_pcap_open(argv[1], "rb");
if (!pcap) {
ovs_fatal(errno, "%s: open failed", argv[1]);
}
struct flow flow;
int error;
- error = pcap_read(pcap, &packet, NULL);
+ error = ovs_pcap_read(pcap, &packet, NULL);
if (error == EOF) {
break;
} else if (error) {