From 3dfdbc21dcf524bd66a3f79f5ebc7fbc6218e8cb Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 8 Oct 2018 13:08:50 +0200 Subject: [PATCH] cosmetic: client: rename forward_packet function Function only checks if packet should be forwarded, it doesn't forward any packet. Change-Id: I87cd64290245db134b17bc0d6665c58f1cde17b6 --- src/osmo_client_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osmo_client_core.c b/src/osmo_client_core.c index 5208744..e19ae89 100644 --- a/src/osmo_client_core.c +++ b/src/osmo_client_core.c @@ -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);