15 lines
365 B
C
15 lines
365 B
C
#include "rawsock.h"
|
|
#include "rawsock-adapter.h"
|
|
|
|
/***************************************************************************
|
|
***************************************************************************/
|
|
int
|
|
stack_if_datalink(struct Adapter *adapter)
|
|
{
|
|
if (adapter->ring)
|
|
return 1; /* ethernet */
|
|
else {
|
|
return adapter->link_type;
|
|
}
|
|
}
|