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:
Pau Espin 2018-10-08 13:08:50 +02:00
parent e89231d8b0
commit 3dfdbc21dc
1 changed files with 2 additions and 2 deletions

View File

@ -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);