Lines Matching refs:data
66 int opt, void *data, size_t *len);
68 int opt, void *data, size_t len);
71 static errno_t utun_output(ifnet_t interface, mbuf_t data);
72 static errno_t utun_demux(ifnet_t interface, mbuf_t data, char *frame_header,
86 static errno_t utun_ioctl(ifnet_t interface, u_long cmd, void *data);
466 void *data,
487 pcb->utun_flags = *(u_int32_t *)data;
491 result = utun_ctl_enable_crypto(kctlref, unit, unitinfo, opt, data, len);
495 result = utun_ctl_config_crypto_keys(kctlref, unit, unitinfo, opt, data, len);
499 result = utun_ctl_unconfig_crypto_keys(kctlref, unit, unitinfo, opt, data, len);
503 result = utun_ctl_disable_crypto(kctlref, unit, unitinfo, opt, data, len);
507 result = utun_ctl_stop_crypto_data_traffic(kctlref, unit, unitinfo, opt, data, len);
511 result = utun_ctl_start_crypto_data_traffic(kctlref, unit, unitinfo, opt, data, len);
519 pcb->utun_ext_ifdata_stats = (*(int *)data) ? 1 : 0;
524 struct utun_stats_param *utsp = (struct utun_stats_param *)data;
557 void *data,
568 *(u_int32_t *)data = pcb->utun_flags;
575 *(int *)data = (pcb->utun_ext_ifdata_stats) ? 1 : 0;
579 *len = snprintf(data, *len, "%s%d", ifnet_name(pcb->utun_ifp), ifnet_unit(pcb->utun_ifp)) + 1;
583 result = utun_ctl_generate_crypto_keys_idx(kctlref, unit, unitinfo, opt, data, len);
598 mbuf_t data)
603 bpf_tap_out(pcb->utun_ifp, DLT_NULL, data, 0, 0);
606 /* flush data */
607 mbuf_freem(data);
615 // only pass packets to utun-crypto if crypto is enabled and 'suspend data traffic' is not.
617 if (utun_pkt_crypto_output(pcb, &data) == 0) {
622 length = mbuf_pkthdr_len(data);
623 result = ctl_enqueuembuf(pcb->utun_ctlref, pcb->utun_unit, data, CTL_DATA_EOR);
625 mbuf_freem(data);
636 mbuf_freem(data);
645 mbuf_t data,
650 while (data != NULL && mbuf_len(data) < 1) {
651 data = mbuf_next(data);
654 if (data == NULL)
657 *protocol = ntohl(*(u_int32_t *)mbuf_data(data));
725 void *data)
731 ifnet_set_mtu(interface, ((struct ifreq*)data)->ifr_mtu);
822 /* flush data */