Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147395439
D36724.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D36724.diff
View Options
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -785,7 +785,7 @@
if (inp != NULL) {
struct udpcb *up;
void *ctx;
- udp_tun_icmp_t func;
+ udp_tun_icmp_t *func;
up = intoudpcb(inp);
ctx = up->u_tun_ctx;
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h
--- a/sys/netinet/udp_var.h
+++ b/sys/netinet/udp_var.h
@@ -62,16 +62,16 @@
struct mbuf;
#ifdef _KERNEL
-typedef bool(*udp_tun_func_t)(struct mbuf *, int, struct inpcb *,
- const struct sockaddr *, void *);
-typedef void(*udp_tun_icmp_t)(int, struct sockaddr *, void *, void *);
+typedef bool udp_tun_func_t(struct mbuf *, int, struct inpcb *,
+ const struct sockaddr *, void *);
+typedef void udp_tun_icmp_t(int, struct sockaddr *, void *, void *);
/*
* UDP control block; one per udp.
*/
struct udpcb {
- udp_tun_func_t u_tun_func; /* UDP kernel tunneling callback. */
- udp_tun_icmp_t u_icmp_func; /* UDP kernel tunneling icmp callback */
+ udp_tun_func_t *u_tun_func; /* UDP kernel tunneling callback. */
+ udp_tun_icmp_t *u_icmp_func; /* UDP kernel tunneling icmp callback */
u_int u_flags; /* Generic UDP flags. */
uint16_t u_rxcslen; /* Coverage for incoming datagrams. */
uint16_t u_txcslen; /* Coverage for outgoing datagrams. */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 11, 3:20 PM (13 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29542666
Default Alt Text
D36724.diff (1 KB)
Attached To
Mode
D36724: udp: typedef udp tunneling functions to functions, not pointers
Attached
Detach File
Event Timeline
Log In to Comment