| /xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 210 struct flow_route *fr; in flow_route_find_by_addr() local 234 fr = RB_FIND(flow_route_tree, &frb->frb_head, &find); in flow_route_find_by_addr() 235 if (fr != NULL) { in flow_route_find_by_addr() 236 flow_route_retain(fr); /* for the caller */ in flow_route_find_by_addr() 238 return fr; in flow_route_find_by_addr() 321 struct flow_route *fr; in flow_route_find_by_uuid() local 327 fr = RB_FIND(flow_route_id_tree, &frib->frib_head, &find); in flow_route_find_by_uuid() 328 if (fr != NULL) { in flow_route_find_by_uuid() 329 flow_route_retain(fr); /* for the caller */ in flow_route_find_by_uuid() 331 return fr; in flow_route_find_by_uuid() [all …]
|
| H A D | flow_manager.c | 797 struct flow_route *fr = NULL; in flow_req_prepare() local 799 fr_resolve, fr_arg, &fr); in flow_req_prepare() 802 ASSERT(fr == NULL); in flow_req_prepare() 805 ASSERT(fr != NULL); in flow_req_prepare() 808 *saddr = fr->fr_laddr; in flow_req_prepare() 811 req->nfr_route = fr; in flow_req_prepare() 812 fr = NULL; in flow_req_prepare()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ethernet.c | 75 fsw_ethernet_ctor(struct nx_flowswitch *fsw, struct flow_route *fr) in fsw_ethernet_ctor() argument 77 ASSERT(fr->fr_af == AF_INET || fr->fr_af == AF_INET6); in fsw_ethernet_ctor() 79 fr->fr_llhdr.flh_gencnt = fsw->fsw_src_lla_gencnt; in fsw_ethernet_ctor() 80 bcopy(fsw->fsw_ether_shost, fr->fr_eth.ether_shost, ETHER_ADDR_LEN); in fsw_ethernet_ctor() 81 fr->fr_eth.ether_type = ((fr->fr_af == AF_INET) ? in fsw_ethernet_ctor() 85 _CASSERT(sizeof(fr->fr_llhdr.flh_off) == sizeof(uint8_t)); in fsw_ethernet_ctor() 86 _CASSERT(sizeof(fr->fr_llhdr.flh_len) == sizeof(uint8_t)); in fsw_ethernet_ctor() 87 *(uint8_t *)(uintptr_t)&fr->fr_llhdr.flh_off = 2; in fsw_ethernet_ctor() 88 *(uint8_t *)(uintptr_t)&fr->fr_llhdr.flh_len = ETHER_HDR_LEN; in fsw_ethernet_ctor() 92 SK_KVA(fr), ntohs(fr->fr_eth.ether_type), in fsw_ethernet_ctor() [all …]
|
| H A D | fsw.c | 1820 fsw_fr2sfr(struct nx_flowswitch *fsw, struct flow_route *fr, in fsw_fr2sfr() argument 1824 uuid_copy(sfr->sfr_uuid, fr->fr_uuid); in fsw_fr2sfr() 1828 sfr->sfr_bucket_idx = fr->fr_frb->frb_idx; in fsw_fr2sfr() 1829 sfr->sfr_id_bucket_idx = fr->fr_frib->frib_idx; in fsw_fr2sfr() 1831 if (fr->fr_flags & FLOWRTF_ATTACHED) { in fsw_fr2sfr() 1834 if (fr->fr_flags & FLOWRTF_ONLINK) { in fsw_fr2sfr() 1837 if (fr->fr_flags & FLOWRTF_GATEWAY) { in fsw_fr2sfr() 1840 if (fr->fr_flags & FLOWRTF_RESOLVED) { in fsw_fr2sfr() 1843 if (fr->fr_flags & FLOWRTF_HAS_LLINFO) { in fsw_fr2sfr() 1846 if (fr->fr_flags & FLOWRTF_DELETED) { in fsw_fr2sfr() [all …]
|
| H A D | fsw_flow.c | 451 fsw_flow_route_ctor(void *arg, struct flow_route *fr) in fsw_flow_route_ctor() argument 455 fsw->fsw_ctor(fsw, fr); in fsw_flow_route_ctor() 460 fsw_flow_route_resolve(void *arg, struct flow_route *fr, in fsw_flow_route_resolve() argument 464 return (fsw->fsw_resolve != NULL) ? fsw->fsw_resolve(fsw, fr, pkt) : 0; in fsw_flow_route_resolve()
|
| H A D | fsw_dp.c | 361 _fsw_error35_handler(int step, struct flow_route *fr, struct __kern_packet *pkt, in _fsw_error35_handler() argument 368 if ((fr->fr_flags & (FLOWRTF_RESOLVED | FLOWRTF_HAS_LLINFO)) == in _fsw_error35_handler() 370 fr->fr_flags &= ~FLOWRTF_RESOLVED; in _fsw_error35_handler() 385 fr->fr_flags |= FLOWRTF_RESOLVED; in _fsw_error35_handler() 396 _fsw_error36_handler(int step, struct flow_route *fr, int *ret) in _fsw_error36_handler() argument 402 if ((fr->fr_flags & (FLOWRTF_RESOLVED | FLOWRTF_HAS_LLINFO)) == in _fsw_error36_handler() 404 fr->fr_flags &= ~FLOWRTF_RESOLVED; in _fsw_error36_handler() 414 fr->fr_flags |= FLOWRTF_RESOLVED; in _fsw_error36_handler() 1340 struct flow_route *fr = fe->fe_route; in dp_flow_route_process() local 1372 if (fr != NULL) { in dp_flow_route_process() [all …]
|
| H A D | fsw_var.h | 141 extern int fsw_generic_resolve(struct nx_flowswitch *fsw, struct flow_route *fr,
|
| /xnu-8792.41.9/bsd/net/ |
| H A D | pf_norm.c | 113 #define BUFFER_FRAGMENTS(fr) (!((fr)->fr_flags & PFFRAG_NOBUFFER)) argument 500 #define FR_IP_OFF(fr) ((ntohs((fr)->fr_ip->ip_off) & IP_OFFMASK) << 3) argument 1111 #define FR_IP6_OFF(fr) \ argument 1112 (ntohs((fr)->fr_ip6f_opt.ip6f_offlg & IP6F_OFF_MASK)) 1113 #define FR_IP6_PLEN(fr) (ntohs((fr)->fr_ip6->ip6_plen)) argument
|
| /xnu-8792.41.9/bsd/netinet6/ |
| H A D | ipsec.c | 2841 size_t fr; in ipsec_chkreplay() local 2889 fr = frlast - diff / 8; in ipsec_chkreplay() 2892 if ((replay->bitmap)[fr] & (1 << (diff % 8))) { in ipsec_chkreplay() 2913 size_t fr; in ipsec_updatereplay() local 2974 fr = frlast - diff / 8; in ipsec_updatereplay() 2977 if ((replay->bitmap)[fr] & (1 << (diff % 8))) { in ipsec_updatereplay() 2983 (replay->bitmap)[fr] |= (1 << (diff % 8)); in ipsec_updatereplay()
|
| /xnu-8792.41.9/makedefs/ |
| H A D | MakeInc.top | 711 rm -fr $${cdir} 2> /dev/null || true ; \
|