Lines Matching full:ip
73 * Peer (inner) tunnel IP address.
78 * Local (inner) tunnel IP address. This will be set
378 NET_ERR("Cannot set IP address %s to tunnel interface", in net_capture_setup()
578 struct net_pkt *ip; in capture_send() local
596 /* Add IP and UDP header */ in capture_send()
597 ip = net_pkt_alloc_from_slab(ctx->context->tx_slab(), PKT_ALLOC_TIME); in capture_send()
598 if (!ip) { in capture_send()
602 net_pkt_set_context(ip, ctx->context); in capture_send()
603 net_pkt_set_family(ip, ctx->local.sa_family); in capture_send()
604 net_pkt_set_iface(ip, ctx->tunnel_iface); in capture_send()
606 ret = net_pkt_alloc_buffer(ip, len, IPPROTO_UDP, PKT_ALLOC_TIME); in capture_send()
608 net_pkt_unref(ip); in capture_send()
613 net_pkt_set_ipv4_ttl(ip, in capture_send()
616 ret = net_ipv4_create(ip, &net_sin(&ctx->local)->sin_addr, in capture_send()
619 ret = net_ipv6_create(ip, &net_sin6(&ctx->local)->sin6_addr, in capture_send()
624 net_pkt_unref(ip); in capture_send()
628 (void)net_udp_create(ip, net_sin(&ctx->local)->sin_port, in capture_send()
631 net_buf_frag_add(ip->buffer, pkt->buffer); in capture_send()
632 pkt->buffer = ip->buffer; in capture_send()
633 ip->buffer = NULL; in capture_send()
634 net_pkt_unref(ip); in capture_send()