Skip to contentSkip to conversation

Rough VJ Channel Implementation - vj_udp.patch

PATCH In review Kelly Daly 1 participant 1 message Apr 26, 2006

Subsystems (3)
lore
Share & tools
lore

Kelly Daly

author
#0 lore raw

PATCH 3/3 Rough VJ Channel Implementation - vj_udp.patch

Hacked udp.c to receive directly to VJ Channel socket. Breaks normal UDP - sockets don't speak non-VJ anymore!

----

include/linux/udp.h +2 -0
diff -r 47031a1f466c linux-2.6.16/include/linux/udp.h
@@ -51,6 +51,8 @@
 	 * when the socket is uncorked.
 	 */
 	__u16		 len;		/* total length of pending frames */
+	struct vj_channel *chan;        /* VJ net channel */
+	int		vj_reg_flag; 	/* is the vj channel registered */
 };
 
 static inline struct udp_sock *udp_sk(const struct sock *sk)
net/ipv4/udp.c +277 -55

448 lines not on this page · raw message