diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-03-01 16:18:12 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2023-03-24 08:32:17 -0400 | 
| commit | e6685141aae8fc869d49cde1d459f73b87bbec89 (patch) | |
| tree | 465539dece789430eaaf76bce18c754c5e18f452 /ldpd/packet.c | |
| parent | cb37cb336a2cca77bfbaf6b0cfab12e847e45623 (diff) | |
*: Rename `struct thread` to `struct event`
Effectively a massive search and replace of
`struct thread` to `struct event`.  Using the
term `thread` gives people the thought that
this event system is a pthread when it is not
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ldpd/packet.c')
| -rw-r--r-- | ldpd/packet.c | 18 | 
1 files changed, 9 insertions, 9 deletions
diff --git a/ldpd/packet.c b/ldpd/packet.c index a253ef4660..6770ab73ef 100644 --- a/ldpd/packet.c +++ b/ldpd/packet.c @@ -17,12 +17,12 @@  static struct iface		*disc_find_iface(unsigned int, int,  				    union ldpd_addr *); -static void session_read(struct thread *thread); -static void session_write(struct thread *thread); +static void session_read(struct event *thread); +static void session_write(struct event *thread);  static ssize_t			 session_get_pdu(struct ibuf_read *, char **);  static void			 tcp_close(struct tcp_conn *);  static struct pending_conn	*pending_conn_new(int, int, union ldpd_addr *); -static void pending_conn_timeout(struct thread *thread); +static void pending_conn_timeout(struct event *thread);  int  gen_ldp_hdr(struct ibuf *buf, uint16_t size) @@ -95,10 +95,10 @@ send_packet(int fd, int af, union ldpd_addr *dst, struct iface_af *ia,  }  /* Discovery functions */ -void disc_recv_packet(struct thread *thread) +void disc_recv_packet(struct event *thread)  {  	int			 fd = THREAD_FD(thread); -	struct thread		**threadp = THREAD_ARG(thread); +	struct event **threadp = THREAD_ARG(thread);  	union {  		struct	cmsghdr hdr; @@ -290,7 +290,7 @@ disc_find_iface(unsigned int ifindex, int af, union ldpd_addr *src)  	return (iface);  } -void session_accept(struct thread *thread) +void session_accept(struct event *thread)  {  	int			 fd = THREAD_FD(thread);  	struct sockaddr_storage	 src; @@ -394,7 +394,7 @@ session_accept_nbr(struct nbr *nbr, int fd)  	nbr_fsm(nbr, NBR_EVT_MATCH_ADJ);  } -static void session_read(struct thread *thread) +static void session_read(struct event *thread)  {  	int		 fd = THREAD_FD(thread);  	struct nbr	*nbr = THREAD_ARG(thread); @@ -610,7 +610,7 @@ static void session_read(struct thread *thread)  	free(buf);  } -static void session_write(struct thread *thread) +static void session_write(struct event *thread)  {  	struct tcp_conn *tcp = THREAD_ARG(thread);  	struct nbr	*nbr = tcp->nbr; @@ -795,7 +795,7 @@ pending_conn_find(int af, union ldpd_addr *addr)  	return (NULL);  } -static void pending_conn_timeout(struct thread *thread) +static void pending_conn_timeout(struct event *thread)  {  	struct pending_conn	*pconn = THREAD_ARG(thread);  	struct tcp_conn		*tcp;  | 
