How to send a UDP packet from inside linux kernel -
i'm modifying udp protocol such when connect() called on udp socket, in addition finding route, "hello" packet sent destination. from udp proto structure, figured out function ip4_datagram_connect job of finding route destination. @ end of function, need send hello packet. i don't think can use udp_sendmsg() it's used copying , sending data userspace. i think udp_send_skb() should used sent hello. problem don't know how create appropriate skbuff store hello message (it should proper udp datagram) passed on udp_send_skb() . i've tried this int quic_connect(struct sock *sk, struct flowi4 *fl4, struct rtable *rt){ struct sk_buff *skb; char *hello; int err = 0, exthdrlen, hh_len, datalen, trailerlen; char *data; hh_len = ll_reserved_space(rt->dst.dev); exthdrlen = rt->dst.header_len; trailerlen = rt->dst.trailer_len; datalen = 200; //create buffer send without fragmentation skb = sock_alloc_send_skb(sk, exthdrlen + datalen + h...