Home
last modified time | relevance | path

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

/external/bcc/examples/networking/dns_matching/
Ddns_matching.c61 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in dns_matching()
65 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in dns_matching()
70 struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); in dns_matching()
73 struct dns_hdr_t *dns_hdr = cursor_advance(cursor, sizeof(*dns_hdr)); in dns_matching()
85 c = cursor_advance(cursor, 1); in dns_matching()
/external/bcc/tests/python/
Dtest_xlate1.c24 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in on_packet()
34 struct dot1q_t *dot1q = cursor_advance(cursor, sizeof(*dot1q)); in on_packet()
43 struct arp_t *arp = cursor_advance(cursor, sizeof(*arp)); in on_packet()
58 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in on_packet()
79 struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); in on_packet()
88 struct tcp_t *tcp = cursor_advance(cursor, sizeof(*tcp)); in on_packet()
Dtest_clang_complex.c74 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in handle_packet()
83 struct dot1q_t *dot1q = cursor_advance(cursor, sizeof(*dot1q)); in handle_packet()
92 struct arp_t *arp = cursor_advance(cursor, sizeof(*arp)); in handle_packet()
105 ip = cursor_advance(cursor, sizeof(*ip)); in handle_packet()
113 struct tcp_t *tcp = cursor_advance(cursor, sizeof(*tcp)); in handle_packet()
117 struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); in handle_packet()
Dtest_stat1.c20 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in on_packet()
29 struct dot1q_t *dot1q = cursor_advance(cursor, sizeof(*dot1q)); in on_packet()
37 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in on_packet()
Dtest_brb.c120 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in br_common()
161 struct dot1q_t *dot1q = cursor_advance(cursor, sizeof(*dot1q)); in br_common()
170 struct arp_t *arp = cursor_advance(cursor, sizeof(*arp)); in br_common()
194 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in br_common()
Dtest_brb2.c14 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in pem()
/external/bcc/examples/networking/tunnel_monitor/
Dmonitor.c64 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in handle_outer()
76 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in handle_outer()
86 struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); in handle_outer()
93 struct vxlan_t *vxlan = cursor_advance(cursor, sizeof(*vxlan)); in handle_outer()
113 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in handle_inner()
119 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in handle_inner()
/external/bcc/examples/networking/neighbor_sharing/
Dtc_neighbor_sharing.c24 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in classify_wan()
31 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in classify_wan()
49 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in classify_neighbor()
56 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in classify_neighbor()
/external/bcc/examples/networking/http_filter/
Dhttp-parse-simple.c20 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in http_filter()
26 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in http_filter()
48 void *_ = cursor_advance(cursor, (ip_header_length-sizeof(*ip))); in http_filter()
50 struct tcp_t *tcp = cursor_advance(cursor, sizeof(*tcp)); in http_filter()
Dhttp-parse-complete.c40 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in http_filter()
46 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); in http_filter()
70 void *_ = cursor_advance(cursor, (ip_header_length-sizeof(*ip))); in http_filter()
72 struct tcp_t *tcp = cursor_advance(cursor, sizeof(*tcp)); in http_filter()
/external/bcc/examples/networking/vlan_filter/
Ddata-plane-tracing.c24 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in vlan_filter()
34 struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); // IP header (datagram) in vlan_filter()
41 struct udp_t *udp = cursor_advance(cursor, sizeof(*udp)); in vlan_filter()
/external/bcc/examples/networking/vlan_learning/
Dvlan_learning.c26 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in handle_phys2virt()
51 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in handle_virt2phys()
/external/bcc/examples/networking/distributed_bridge/
Dtunnel.c29 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in handle_ingress()
58 struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); in handle_egress()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_lwt_seg6local.c17 #define cursor_advance(_cursor, _len) \ macro
81 ip = cursor_advance(cursor, sizeof(*ip)); in get_srh()
88 srh = cursor_advance(cursor, sizeof(*srh)); in get_srh()