jwbensley / Etherate

Linux CLI Ethernet and MPLS Testing Tool
MIT License
176 stars 19 forks source link

Warning is for 46 byte frames not 64 byte frames? #56

Open jwbensley opened 4 years ago

jwbensley commented 4 years ago
ISSUE TYPE
VERSION DETAILS

Latest

SUMMARY

Shouldn't this warn against <64 byte frames not 46 byte frames, is this a typo?

https://github.com/jwbensley/Etherate/blob/master/functions.c#L491

                    if (eth->params.f_size < 46) {
                        printf("WARNING: Minimum ethernet payload is 46 bytes, "
                               "Linux may pad the frame out to 46 bytes\n");