static struct sock_filter isisfilter[] = {
/* NB: we're in SOCK_DGRAM, so src/dst mac + length are stripped off!
* (OTOH it's a bit more lower-layer agnostic and might work over GRE?) */
/* { 0x28, 0, 0, 0x0000000c - 14 }, */
/* { 0x25, 5, 0, 0x000005dc }, */
{
0x28
linux- socket编程-直接获取网卡-packet- sokcket和设置socket过滤函数
于 2022-11-24 14:05:01 首次发布