Home
last modified time | relevance | path

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

/linux-tools/ebpf/kernel-samples-bpf/
H A Dipfirewall_kern.c28 unsigned int sip=0; in xdp_ipv4_firewalling() local
61 sip = iph->saddr; in xdp_ipv4_firewalling()
62 sip = (sip>>24) | (((sip>>16)&0xff)<<8) | (((sip>>8)&0xff)<<16) | ((sip&0xff)<<24); in xdp_ipv4_firewalling()
66 sip &= m; in xdp_ipv4_firewalling()
67 value=bpf_map_lookup_elem(&rules, &sip); in xdp_ipv4_firewalling()
H A Dtc_filter_kern.c22 __u32 sip = load_word(skb, IP_SRC_OFF); in bpf_prog() local
24 if (sip == (__u32)0xac120103 || dip == (__u32)0xac120103) { in bpf_prog()