解释"link-type linux_sll (linux cooked)"的含义: link-type linux_sll (linux cooked)提供了关于数据包链路层(也称为数据链路层)信息的细节。这里,linux_sll代表Linux SLL(Socket Layer Link)封装,它是Linux特有的,用于在本地回环接口(lo)上封装数据包。 (linux c
it'd be set in pcap_activate_linux(). You would then either 1) have the "cooked mode" read-a-packet code check handle->linktype for DLT_LINUX_SLL or DLT_LINUX_SLL2 and decide based on that whether to use the SLL or SLL2 header or 2) replace the "cooked" member of the private...