mirror of https://gerrit.osmocom.org/osmo-pcap
cosmetic: client: rename forward_packet function
Function only checks if packet should be forwarded, it doesn't forward any packet. Change-Id: I87cd64290245db134b17bc0d6665c58f1cde17b6
This commit is contained in:
parent
e89231d8b0
commit
3dfdbc21dc
|
@ -100,7 +100,7 @@ static int check_gprs(const u_char *data, bpf_u_int32 len)
|
|||
return 1;
|
||||
}
|
||||
|
||||
static int forward_packet(
|
||||
static int can_forward_packet(
|
||||
struct osmo_pcap_client *client,
|
||||
struct pcap_pkthdr *hdr,
|
||||
const u_char *data)
|
||||
|
@ -165,7 +165,7 @@ static int pcap_read_cb(struct osmo_fd *fd, unsigned int what)
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (!forward_packet(client, &hdr, data))
|
||||
if (!can_forward_packet(client, &hdr, data))
|
||||
return 0;
|
||||
|
||||
osmo_client_send_data(&client->conn, &hdr, data);
|
||||
|
|
Loading…
Reference in New Issue