Hi Vadim On 2016-02-02 at 20:26:34 +0100, Vadim Kochan <[email protected]> wrote: > I am thinking if it is OK to add automatic padding for Ethernet frames > by filling 0s if packet len is less than 64 bytes ?
I don't think this is needed. Users might want to send explicitly send less than 64 bytes on purpose (i.e. to test whether padding works correct in their newly developed network driver). IMO they shouldn't be required to disable padding in that case. > If yes, then also there should be function 'nopad()' which will disable > padding. > > Of course there is still possibility to use 'fill()' function for this, > but may be it would be better to do it automatically to be sure that > packet will be sent successfully. Yes, I'd say having a fill() function around is enough in that case. > But if Linux guarantee such padding then it is not needed at all. Yes, the Linux network stack will pad the frames to the length required by the underlying medium. Tobias -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
