| /xnu-11215/bsd/net/ |
| H A D | if_gif.c | 182 GIF_LOCK(sc); in gif_demux() 200 GIF_LOCK(sc); in gif_add_proto() 325 snprintf(sc->gif_ifname, sizeof(sc->gif_ifname), "%s%d", in gif_clone_create() 357 sc->encap_cookie4 = sc->encap_cookie6 = NULL; in gif_clone_create() 509 if (!sc->gif_psrc || !sc->gif_pdst) { in gif_encapcheck() 863 kfree_data(sc->gif_psrc, sc->gif_psrc->sa_len); in gif_ioctl() 874 kfree_data(sc->gif_pdst, sc->gif_pdst->sa_len); in gif_ioctl() 895 kfree_data(sc->gif_psrc, sc->gif_psrc->sa_len); in gif_ioctl() 899 kfree_data(sc->gif_pdst, sc->gif_pdst->sa_len); in gif_ioctl() 998 kfree_data(sc->gif_psrc, sc->gif_psrc->sa_len); in gif_delete_tunnel() [all …]
|
| H A D | if_bridge.c | 1216 sc->lock_lr[sc->next_lock_lr] = lr_saved; in bridge_lock() 1263 sc->lock_lr[sc->next_lock_lr] = lr_saved; in bridge_unref() 1292 sc->lock_lr[sc->next_lock_lr] = lr_saved; in bridge_xlock() 7020 if (sc->sc_brtcnt >= sc->sc_brtmax) { 7062 sc->sc_ifp->if_xname, sc->sc_brtcnt, 7120 if (sc->sc_brtcnt <= sc->sc_brtmax) { 7126 if (sc->sc_brtcnt <= sc->sc_brtmax) { 7133 if (sc->sc_brtcnt <= sc->sc_brtmax) { 7153 sc->sc_aging_timer.bdc_sc = sc; 7386 sc->sc_resize_call.bdc_sc = sc; [all …]
|
| H A D | if_stf.c | 294 sc->tap_mode = mode; in stf_set_bpf_tap() 318 &in_stf_protosw, sc); in stfattach() 323 sc->encap_cookie = p; in stfattach() 337 stf_init.softc = sc; in stfattach() 384 if (sc == NULL) { in stf_encapcheck() 525 sc = ifnet_softc(ifp); in stf_pre_output() 641 struct stf_softc *sc, in stf_checkaddr4() argument 683 if (sc && (ifnet_flags(sc->sc_if) & IFF_LINK2) == 0 && inifp) { in stf_checkaddr4() 716 struct stf_softc *sc, in stf_checkaddr6() argument 765 if (sc == NULL || (ifnet_flags(sc->sc_if) & IFF_UP) == 0) { in in_stf_input() [all …]
|
| /xnu-11215/bsd/netinet6/ |
| H A D | in6_gif.c | 111 GIF_LOCK_ASSERT(sc); in in6_gif_output() 195 (sc->gif_ro6.ro_rt != NULL && sc->gif_ro6.ro_rt->rt_ifp == ifp)) { in in6_gif_output() 201 ROUTE_RELEASE(&sc->gif_ro6); in in6_gif_output() 203 sc->gif_if.if_mtu = GIF_MTU; in in6_gif_output() 213 RT_LOCK(sc->gif_ro6.ro_rt); in in6_gif_output() 224 RT_UNLOCK(sc->gif_ro6.ro_rt); in in6_gif_output() 337 struct gif_softc *sc, in gif_validate6() argument 342 src = SIN6(sc->gif_psrc); in gif_validate6() 343 dst = SIN6(sc->gif_pdst); in gif_validate6() 407 sc = (struct gif_softc *)arg; in gif_encapcheck6() [all …]
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_gif.c | 118 GIF_LOCK_ASSERT(sc); in in_gif_output() 201 (sc->gif_ro.ro_rt != NULL && sc->gif_ro.ro_rt->rt_ifp == ifp)) { in in_gif_output() 206 ROUTE_RELEASE(&sc->gif_ro); in in_gif_output() 208 sc->gif_if.if_mtu = GIF_MTU; in in_gif_output() 213 rtalloc(&sc->gif_ro); in in_gif_output() 220 RT_LOCK(sc->gif_ro.ro_rt); in in_gif_output() 230 RT_UNLOCK(sc->gif_ro.ro_rt); in in_gif_output() 354 sc = (struct gif_softc *)arg; in gif_encapcheck4() 355 src = SIN(sc->gif_psrc); in gif_encapcheck4() 356 dst = SIN(sc->gif_pdst); in gif_encapcheck4() [all …]
|
| /xnu-11215/tests/ |
| H A D | flow_div_doubleconnect_55917185.c | 18 struct sockaddr_ctl sc = { in connect_race() local 24 connect(*ps, (const struct sockaddr *)&sc, sizeof(sc)); in connect_race() 34 struct sockaddr_ctl sc = { variable 51 bind(tmp_s, (const struct sockaddr *)&sc, sizeof(sc)); 55 connect(s, (const struct sockaddr *)&sc, sizeof(sc));
|
| H A D | netagent_kctl_header_infodisc_56190773.c | 29 struct sockaddr_ctl sc; variable 41 bzero(&sc, sizeof(sc)); 42 sc.sc_id = ci.ctl_id; 43 T_ASSERT_POSIX_SUCCESS(connect(s, (const struct sockaddr *)&sc, sizeof(sc)), NULL);
|
| H A D | netagent_race_infodisc_56244905.c | 119 struct sockaddr_ctl sc; variable 141 bzero(&sc, sizeof(sc)); 142 sc.sc_id = ci.ctl_id; 144 T_ASSERT_POSIX_SUCCESS(connect(s, (const struct sockaddr *)&sc, sizeof(sc)), NULL);
|
| H A D | net_tuntests.c | 921 uint32_t i, sc = os_channel_available_slot_count(rxring); in drain_ring() local 923 for (i = 0; i < sc; i++) { in drain_ring() 936 if (sc) { in drain_ring() 1008 uint32_t sc = os_channel_available_slot_count(rxrings[ri]); in xfer_1_packet_singly() local 1013 T_QUIET; T_EXPECT_EQ_UINT(ri == expected_ring, sc, NULL); in xfer_1_packet_singly() 1015 if ((ri == expected_ring) == sc) { in xfer_1_packet_singly() 1124 uint32_t sc = os_channel_available_slot_count(rxrings[ri]); in xfer_1_packet_together() local 1126 if (sc == SO_TC_MAX) { in xfer_1_packet_together() 1127 T_PASS("ring %d got %"PRIu32" slots expecting %"PRIu32"", ri, sc, SO_TC_MAX); in xfer_1_packet_together() 1129 T_FAIL("ring %d got %"PRIu32" slots expecting %"PRIu32"", ri, sc, SO_TC_MAX); in xfer_1_packet_together() [all …]
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_filter_compat.c | 87 if (sc == MBUF_SC_UNSPEC) { in nx_netif_filter_tx_processed_mbuf_dequeue() 98 if (!MBUF_VALID_SC(sc)) { in nx_netif_filter_tx_processed_mbuf_dequeue() 99 sc = MBUF_SC_BE; in nx_netif_filter_tx_processed_mbuf_dequeue() 101 curr = MBUF_SC2TC(sc); in nx_netif_filter_tx_processed_mbuf_dequeue() 133 if (!MBUF_VALID_SC(sc)) { in nx_netif_filter_tx_processed_mbuf_enqueue() 134 sc = MBUF_SC_BE; in nx_netif_filter_tx_processed_mbuf_enqueue() 136 tc = MBUF_SC2TC(sc); in nx_netif_filter_tx_processed_mbuf_enqueue() 170 if (sc == MBUF_SC_UNSPEC) { in nx_netif_tx_processed_mbuf_get_len() 179 if (!MBUF_VALID_SC(sc)) { in nx_netif_tx_processed_mbuf_get_len() 180 sc = MBUF_SC_BE; in nx_netif_tx_processed_mbuf_get_len() [all …]
|
| H A D | nx_netif_filter_native.c | 86 if (sc == KPKT_SC_UNSPEC) { in nx_netif_filter_tx_processed_pkt_dequeue() 97 if (!KPKT_VALID_SVC(sc)) { in nx_netif_filter_tx_processed_pkt_dequeue() 98 sc = KPKT_SC_BE; in nx_netif_filter_tx_processed_pkt_dequeue() 100 curr = PKT_SC2TC(sc); in nx_netif_filter_tx_processed_pkt_dequeue() 133 if (!KPKT_VALID_SVC(sc)) { in nx_netif_filter_tx_processed_pkt_enqueue() 134 sc = KPKT_SC_BE; in nx_netif_filter_tx_processed_pkt_enqueue() 136 tc = PKT_SC2TC(sc); in nx_netif_filter_tx_processed_pkt_enqueue() 172 if (sc == KPKT_SC_UNSPEC) { in nx_netif_tx_processed_pkt_get_len() 181 if (!KPKT_VALID_SVC(sc)) { in nx_netif_tx_processed_pkt_get_len() 182 sc = KPKT_SC_BE; in nx_netif_tx_processed_pkt_get_len() [all …]
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_netagent.c | 44 uint32_t sc; in fsw_netagent_tc2sc() local 52 sc = PKT_SC_BK; in fsw_netagent_tc2sc() 55 sc = PKT_SC_BE; in fsw_netagent_tc2sc() 58 sc = PKT_SC_RD; in fsw_netagent_tc2sc() 61 sc = PKT_SC_OAM; in fsw_netagent_tc2sc() 64 sc = PKT_SC_AV; in fsw_netagent_tc2sc() 67 sc = PKT_SC_RV; in fsw_netagent_tc2sc() 70 sc = PKT_SC_VI; in fsw_netagent_tc2sc() 76 sc = PKT_SC_VO; in fsw_netagent_tc2sc() 82 sc = PKT_SC_BE; in fsw_netagent_tc2sc() [all …]
|
| /xnu-11215/bsd/sys/ |
| H A D | kern_debug.h | 59 #define SYSCALL_REJECTION_ALLOW(sc) ((sc) | SYSCALL_REJECTION_IS_ALLOW_MASK) argument 60 #define SYSCALL_REJECTION_DENY(sc) (sc) argument
|
| /xnu-11215/bsd/net/classq/ |
| H A D | classq_subr.c | 279 cqrq_stat_sc_t req = { sc, grp_idx, 0, 0 }; in ifclassq_get_len() 281 VERIFY(MBUF_VALID_SC(sc) || sc == MBUF_SC_UNSPEC); in ifclassq_get_len() 301 err = ifp->if_na_ops->ni_get_len(ifp->if_na, sc, packets, in ifclassq_get_len() 378 VERIFY(!drvmgt || MBUF_VALID_SC(sc)); in ifclassq_dequeue_common_default() 392 err = fq_if_dequeue_sc_classq_multi(ifq, sc, pkt_limit, in ifclassq_dequeue_common_default() 420 IFCQ_TBR_DEQUEUE_SC(ifq, sc, head, grp_idx); in ifclassq_dequeue_common_default() 498 errno_t err = ifclassq_dequeue_common_default(ifq, sc, in ifclassq_dequeue_common() 505 return ifclassq_dequeue_common_default(ifq, sc, in ifclassq_dequeue_common() 634 ifclassq_tbr_dequeue_common(ifq, sc, TRUE, pkt, grp_idx); in ifclassq_tbr_dequeue_sc() 647 VERIFY(!drvmgt || MBUF_VALID_SC(sc)); in ifclassq_tbr_dequeue_common() [all …]
|
| H A D | if_classq.h | 52 mbuf_svc_class_t sc; /* (in) service class */ member 66 mbuf_svc_class_t sc; /* (in) service class */ member
|
| /xnu-11215/libsyscall/wrappers/string/ |
| H A D | strsep.c | 49 int c, sc; in strsep() local 59 if ((sc = *spanp++) == c) { in strsep() 68 } while (sc != 0); in strsep()
|
| /xnu-11215/bsd/libkern/ |
| H A D | strsep.c | 83 int c, sc; in strsep() local 93 if ((sc = *spanp++) == c) { in strsep() 102 } while (sc != 0); in strsep()
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_core.c | 575 struct segment_command *sc; in coredump() local 690 sc = (struct segment_command *) (header + hoffset); in coredump() 691 sc->cmd = LC_SEGMENT; in coredump() 692 sc->cmdsize = sizeof(struct segment_command); in coredump() 694 sc->segname[0] = 0; in coredump() 695 sc->vmaddr = CAST_DOWN_EXPLICIT(uint32_t, vmoffset); in coredump() 696 sc->vmsize = CAST_DOWN_EXPLICIT(uint32_t, vmsize); in coredump() 699 sc->maxprot = maxprot; in coredump() 700 sc->initprot = prot; in coredump() 701 sc->nsects = 0; in coredump() [all …]
|
| H A D | uipc_mbuf2.c | 1048 m_set_service_class(struct mbuf *m, mbuf_svc_class_t sc) in m_set_service_class() argument 1054 if (MBUF_VALID_SC(sc)) { in m_set_service_class() 1055 m->m_pkthdr.pkt_svc = sc; in m_set_service_class() 1066 mbuf_svc_class_t sc; in m_get_service_class() local 1071 sc = m->m_pkthdr.pkt_svc; in m_get_service_class() 1073 sc = MBUF_SC_BE; in m_get_service_class() 1076 return sc; in m_get_service_class() 1082 mbuf_svc_class_t sc = MBUF_SC_BE; in m_service_class_from_idx() local 1121 return sc; in m_service_class_from_idx() 1127 mbuf_svc_class_t sc = MBUF_SC_BE; in m_service_class_from_val() local [all …]
|
| H A D | kern_control.c | 716 struct sockaddr_ctl sc; in ctl_peeraddr() local 726 bzero(&sc, sizeof(struct sockaddr_ctl)); in ctl_peeraddr() 727 sc.sc_len = sizeof(struct sockaddr_ctl); in ctl_peeraddr() 728 sc.sc_family = AF_SYSTEM; in ctl_peeraddr() 729 sc.ss_sysaddr = AF_SYS_CONTROL; in ctl_peeraddr() 730 sc.sc_id = kctl->id; in ctl_peeraddr() 731 sc.sc_unit = kcb->sac.sc_unit; in ctl_peeraddr() 733 *nam = dup_sockaddr((struct sockaddr *)&sc, 1); in ctl_peeraddr()
|
| /xnu-11215/libkern/ |
| H A D | kernel_mach_header.c | 191 const kernel_segment_command_t *sc; in getsegdatafromheader() local 194 sc = getsegbynamefromheader(mhp, segname); in getsegdatafromheader() 195 if (sc == (kernel_segment_command_t *)0) { in getsegdatafromheader() 199 *size = sc->vmsize; in getsegdatafromheader() 200 result = (void *)sc->vmaddr; in getsegdatafromheader()
|
| /xnu-11215/bsd/skywalk/packet/ |
| H A D | packet_common.h | 778 switch (sc) { in __packet_set_service_class() 805 uint32_t sc; in __packet_get_service_class() local 825 sc = PKT_SC_BE; in __packet_get_service_class() 829 return sc; in __packet_get_service_class() 868 uint32_t sc; in __packet_set_traffic_class() local 875 sc = PKT_SC_BK; in __packet_set_traffic_class() 878 sc = PKT_SC_BE; in __packet_set_traffic_class() 881 sc = PKT_SC_RD; in __packet_set_traffic_class() 887 sc = PKT_SC_AV; in __packet_set_traffic_class() 890 sc = PKT_SC_RV; in __packet_set_traffic_class() [all …]
|
| H A D | packet_kern.c | 196 const kern_packet_svc_class_t sc) in kern_packet_set_service_class() argument 198 return __packet_set_service_class(ph, sc); in kern_packet_set_service_class() 235 uint32_t sc; in kern_packet_is_high_priority() local 238 sc = __packet_get_service_class(ph); in kern_packet_is_high_priority() 240 switch (sc) { in kern_packet_is_high_priority()
|
| /xnu-11215/osfmk/device/ |
| H A D | subrs.c | 814 char c, sc; in strnstr_impl() local 821 if ((sc = *s++) == '\0' || slen-- < 1) { in strnstr_impl() 824 } while (sc != c); in strnstr_impl()
|
| /xnu-11215/libsyscall/wrappers/skywalk/ |
| H A D | os_packet.c | 166 os_packet_set_service_class(const packet_t ph, const packet_svc_class_t sc) in os_packet_set_service_class() argument 168 return __packet_set_service_class(ph, sc); in os_packet_set_service_class()
|