摘要 |
A method for dynamically determining a media type of a LAN to which a network device is connected, includes executing at least one network interface driver which supports a predefined network media type, and which has one or more configuration tables and one or more logical boards for processing communication packets having different frame types. Each configuration table is associated with one of the boards, which each includes a frame type identifying value that identifies a combination of frame type and media type for packets processed by the corresponding board. A multiplexer software module is executed, which interfaces between the network interface driver and one or more protocol stacks, and which routes packets from the network interface driver to respective protocol stacks. An executed protocol stack obtains an entry point of a network interface driver service routine via the multiplexer software module, obtains a location for one of the configuration tables via the service routine, reads the frame type identifying value in the one configuration table, and determines the network media type of the network interface driver by comparing the frame type identifying value read from the one configuration table to one or more values that correspond to a predetermined media type./!
|