patch for udp_sendmsg

2 messages, 2 authors, 2015-07-20 · open the first message on its own page

patch for udp_sendmsg

From: Zhenwei Pi <hidden>
Date: 2015-07-19 14:38:59

Dear Sirs,

Commit : the max length of udp msg is (0xFFFF - sizeof(struct udphdr) - sizeof(struct iphdr). return -EMSGSIZE in udp_sendmsg.
Patch : as the attached file

____________________________________________________________
| IP header |  UDP header | udp data ........                             |
|___________|______________|_________________________________|
|--> Total Length : 0xffff                                                       <--|


If length of "data" is between (0xFFFF - sizeof(struct udphdr) - sizeof(struct iphdr) and 0xFFFF, sendto will fail because of ip_make_skb.
Should kernel return -EMSGSIZE as soon as possible ?


-- 
Zhenwei Pi
Rather than love ,than money ,than faith,than fame,than fairness,give me truth.

Re: patch for udp_sendmsg

From: Li Wei <hidden>
Date: 2015-07-20 02:13:49

	Hello,

Read "Documentation/SubmittingPatches" before sending out the
first patch.

On 07/19/2015 10:38 PM, Zhenwei Pi wrote:
Dear Sirs,

Commit : the max length of udp msg is (0xFFFF - sizeof(struct udphdr) - sizeof(struct iphdr). return -EMSGSIZE in udp_sendmsg.
Patch : as the attached file

____________________________________________________________
| IP header |  UDP header | udp data ........                             |
|___________|______________|_________________________________|
|--> Total Length : 0xffff                                                       <--|


If length of "data" is between (0xFFFF - sizeof(struct udphdr) - sizeof(struct iphdr) and 0xFFFF, sendto will fail because of ip_make_skb.
Should kernel return -EMSGSIZE as soon as possible ?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help