Home
last modified time | relevance | path

Searched refs:bpfInsn (Results 1 – 1 of 1) sorted by relevance

/external/ppp/pppd/plugins/rp-pppoe/
Dif.c241 struct bpf_insn bpfInsn[sizeof(bpfRun) / sizeof(bpfRun[0])]; in initFilter() local
243 memcpy(bpfInsn, bpfRun, sizeof(bpfRun)); in initFilter()
244 bpfInsn[PPPOE_BCAST_CMPW].k = ((0xff << 24) | (0xff << 16) | in initFilter()
246 bpfInsn[PPPOE_BCAST_CMPH].k = ((0xff << 8) | 0xff); in initFilter()
247 bpfInsn[PPPOE_FILTER_CMPW].k = ((hwaddr[0] << 24) | (hwaddr[1] << 16) | in initFilter()
249 bpfInsn[PPPOE_FILTER_CMPH].k = ((hwaddr[4] << 8) | hwaddr[5]); in initFilter()
250 bpfProgram.bf_len = (sizeof(bpfInsn) / sizeof(bpfInsn[0])); in initFilter()
251 bpfProgram.bf_insns = &bpfInsn[0]; in initFilter()