
Title: eth_checkopt()
eth_checkopt() verifies that an enable or disable flag for each set of flags (e.g., NWEO_ACC_MASK) is set. If this is the case, the EFF_OPTSET flag for the ethernet file descriptor is set and therefore the file descriptor can be used (e.g., written to/read from).
In addition to the verification of the flags, discard any packets in the read queue of the ethernet file descriptor. Since the options of the ethernet file descriptor are being changed, it is likely that the packets are no longer appropriate for this file descriptor.