aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-08 13:08:50 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-08 13:08:52 +0200
commit3dfdbc21dcf524bd66a3f79f5ebc7fbc6218e8cb (patch)
tree1acb100c332a53752b647980b53e4595a839467a
parente89231d8b0ab0f45ed5714123d1bfb4d655b2aa3 (diff)
cosmetic: client: rename forward_packet function
Function only checks if packet should be forwarded, it doesn't forward any packet. Change-Id: I87cd64290245db134b17bc0d6665c58f1cde17b6
-rw-r--r--src/osmo_client_core.c4
1 files 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);