Searched refs:bpf_htonl (Results 1 – 7 of 7) sorted by relevance
32 if (ctx->msg_src_ip6[3] == bpf_htonl(1) || in sendmsg_v6_prog()33 ctx->msg_src_ip6[3] == bpf_htonl(0)) { in sendmsg_v6_prog()34 ctx->msg_src_ip6[0] = bpf_htonl(SRC_REWRITE_IP6_0); in sendmsg_v6_prog()35 ctx->msg_src_ip6[1] = bpf_htonl(SRC_REWRITE_IP6_1); in sendmsg_v6_prog()36 ctx->msg_src_ip6[2] = bpf_htonl(SRC_REWRITE_IP6_2); in sendmsg_v6_prog()37 ctx->msg_src_ip6[3] = bpf_htonl(SRC_REWRITE_IP6_3); in sendmsg_v6_prog()46 ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0); in sendmsg_v6_prog()47 ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1); in sendmsg_v6_prog()48 ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2); in sendmsg_v6_prog()49 ctx->user_ip6[3] = bpf_htonl(DST_REWRITE_IP6_3); in sendmsg_v6_prog()
35 ctx->user_ip6[0] = bpf_htonl(DST_REWRITE_IP6_0); in connect_v6_prog()36 ctx->user_ip6[1] = bpf_htonl(DST_REWRITE_IP6_1); in connect_v6_prog()37 ctx->user_ip6[2] = bpf_htonl(DST_REWRITE_IP6_2); in connect_v6_prog()38 ctx->user_ip6[3] = bpf_htonl(DST_REWRITE_IP6_3); in connect_v6_prog()49 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog()50 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog()51 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog()52 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
28 if (ctx->msg_src_ip4 == bpf_htonl(SRC1_IP4) || in sendmsg_v4_prog()29 ctx->msg_src_ip4 == bpf_htonl(SRC2_IP4)) { in sendmsg_v4_prog()30 ctx->msg_src_ip4 = bpf_htonl(SRC_REWRITE_IP4); in sendmsg_v4_prog()37 if ((ctx->user_ip4 >> 24) == (bpf_htonl(DST_IP4) >> 24) && in sendmsg_v4_prog()39 ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4); in sendmsg_v4_prog()
92 key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ in _ip6gretap_set_tunnel()152 md.u.index = bpf_htonl(123); in _erspan_set_tunnel()221 key.remote_ipv6[3] = bpf_htonl(0x11); in _ip4ip6erspan_set_tunnel()236 md.u.index = bpf_htonl(123); in _ip4ip6erspan_set_tunnel()362 key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ in _ip6vxlan_set_tunnel()417 *(int *) &gopt.opt_data = bpf_htonl(0xdeadbeef); in _geneve_set_tunnel()468 key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ in _ip6geneve_set_tunnel()487 *(int *) &gopt.opt_data = bpf_htonl(0xfeedbeef); in _ip6geneve_set_tunnel()599 key.remote_ipv6[3] = bpf_htonl(0x11); /* ::11 */ in _ipip6_set_tunnel()626 bpf_trace_printk(fmt, sizeof(fmt), bpf_htonl(key.remote_ipv6[0]), in _ipip6_get_tunnel()[all …]
27 ctx->user_ip4 = bpf_htonl(DST_REWRITE_IP4); in connect_v4_prog()36 sa.sin_addr.s_addr = bpf_htonl(SRC_REWRITE_IP4); in connect_v4_prog()
22 #define htonll(x) ((bpf_htonl(1)) == 1 ? (x) : ((uint64_t)bpf_htonl((x) & \23 0xFFFFFFFF) << 32) | bpf_htonl((x) >> 32))
50 #define bpf_htonl(x) \ macro