aboutgitcodebugslistschat
path: root/udp.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-01-16 11:50:32 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-01-22 23:35:10 +0100
commit8563e7c870e139baf14ef00b26cdc7db4884246c (patch)
tree766e432a1bfa21c863eef434e0a9a68ffabec856 /udp.h
parent17bbab1c97516048fdcc6c2e6c8efc524e56e71e (diff)
downloadpasst-8563e7c870e139baf14ef00b26cdc7db4884246c.tar
passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.gz
passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.bz2
passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.lz
passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.xz
passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.zst
passt-8563e7c870e139baf14ef00b26cdc7db4884246c.zip
treewide: Standardise on 'now' for current timestamp variables
In a number of places we pass around a struct timespec representing the (more or less) current time. Sometimes we call it 'now', and sometimes we call it 'ts'. Standardise on the more informative 'now'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'udp.h')
-rw-r--r--udp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/udp.h b/udp.h
index 85ebaaa..087e482 100644
--- a/udp.h
+++ b/udp.h
@@ -17,7 +17,7 @@ int udp_tap_handler(struct ctx *c, uint8_t pif, int af,
int udp_sock_init(const struct ctx *c, int ns, sa_family_t af,
const void *addr, const char *ifname, in_port_t port);
int udp_init(struct ctx *c);
-void udp_timer(struct ctx *c, const struct timespec *ts);
+void udp_timer(struct ctx *c, const struct timespec *now);
void udp_update_l2_buf(const unsigned char *eth_d, const unsigned char *eth_s);
/**