All of lore.kernel.org
 help / color / mirror / Atom feed
* MSG_PROBE is not set
@ 2009-06-14 10:36 David Shwatrz
  0 siblings, 0 replies; only message in thread
From: David Shwatrz @ 2009-06-14 10:36 UTC (permalink / raw)
  To: netdev

Hello,

There is something which I am confused about: when the MSG_PROBE is set, it
means that you cannot should not send the packet. For example, in
ip_append_data()
(ipv4/ip_output.c). This flag should be used for example for finding MTU, AFAIK.
I grepped under the net subtree and **there is no place** when the MSG_PROBE
is set. There are about 5-6 files where this value is checked under net.

When you send a packet from userspace using from sendmsg(), the third parameter
is flags.

You can pass flags like MSG_OOB, MSG_PEEK and other flags from bits/socket.h.
However, you **cannot** pass a flag as MSG_PROBE, AFAIK.
It does not appear at all in bits/socket.h. It **does** appear in
linux/socket.h, but this header is
part of the kernel-headers package, so you cannot include it in a user
space application even if you want (so it won't compile).

So, what do you have here: (and please correct me if I am wrong):
when sending a packet with sendmsg(), this should be from userspace.
the kernel checks a flag which cannot be set from user space.
for what is this flag at all ? is it justified to remove it ?


Regards,
Ds

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-14 10:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-14 10:36 MSG_PROBE is not set David Shwatrz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.