> [skip]
>>> Now, I'm sending a single packet and observe that I'm getting printk form
>>> inet_sendmsg() twice.This puzzles me -- is it normal (has something to do
>>> with interrupts etc. ?) or there's something broken in the kernel?
>>
>> Presumably, the phenomenon you observed is 'normal' and it is
>> certainly not related to 'interrupts'.
>
> Could you elaborate on why you believe this phenomenon is normal ?
Considering the following possible explanations:
- you found an unknown, major kernel error in the interface
parts of the networking stack which can be triggered in an
extremely simple way
- your code doesn't really do what you think it does
- this is either coincidence or part of the 'normal'
processing but the exact reason for it is unknown
the first seems the least likely to me. This doesn't mean that I'm
necessarily right but I'm not going to investigate this phenomenon in
the kernels I'm responsible for because I'm afraid that it could be
something serious which could affect other stuff I'm also responsible
for in some negative way.
BTW: You aren't per chance doing this on a system you're acessing over
the network?