Home
last modified time | relevance | path

Searched refs:fr (Results 1 – 11 of 11) sorted by relevance

/xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_route.c197 struct flow_route *fr; in flow_route_find_by_addr() local
221 fr = RB_FIND(flow_route_tree, &frb->frb_head, &find); in flow_route_find_by_addr()
222 if (fr != NULL) { in flow_route_find_by_addr()
223 flow_route_retain(fr); /* for the caller */ in flow_route_find_by_addr()
225 return fr; in flow_route_find_by_addr()
293 struct flow_route *fr; in flow_route_find_by_uuid() local
299 fr = RB_FIND(flow_route_id_tree, &frib->frib_head, &find); in flow_route_find_by_uuid()
300 if (fr != NULL) { in flow_route_find_by_uuid()
301 flow_route_retain(fr); /* for the caller */ in flow_route_find_by_uuid()
303 return fr; in flow_route_find_by_uuid()
[all …]
H A Dflow_manager.c802 struct flow_route *__single fr = NULL; in flow_req_prepare() local
804 fr_resolve, fr_arg, &fr); in flow_req_prepare()
807 ASSERT(fr == NULL); in flow_req_prepare()
810 ASSERT(fr != NULL); in flow_req_prepare()
813 *saddr = fr->fr_laddr; in flow_req_prepare()
816 req->nfr_route = fr; in flow_req_prepare()
817 fr = NULL; in flow_req_prepare()
/xnu-11215.1.10/bsd/skywalk/nexus/flowswitch/
H A Dfsw_ethernet.c76 fsw_ethernet_ctor(struct nx_flowswitch *fsw, struct flow_route *fr) in fsw_ethernet_ctor() argument
78 ASSERT(fr->fr_af == AF_INET || fr->fr_af == AF_INET6); in fsw_ethernet_ctor()
80 fr->fr_llhdr.flh_gencnt = fsw->fsw_src_lla_gencnt; in fsw_ethernet_ctor()
81 bcopy(fsw->fsw_ether_shost, fr->fr_eth.ether_shost, ETHER_ADDR_LEN); in fsw_ethernet_ctor()
82 fr->fr_eth.ether_type = ((fr->fr_af == AF_INET) ? in fsw_ethernet_ctor()
86 _CASSERT(sizeof(fr->fr_llhdr.flh_off) == sizeof(uint8_t)); in fsw_ethernet_ctor()
87 _CASSERT(sizeof(fr->fr_llhdr.flh_len) == sizeof(uint8_t)); in fsw_ethernet_ctor()
88 *(uint8_t *)(uintptr_t)&fr->fr_llhdr.flh_off = 2; in fsw_ethernet_ctor()
89 *(uint8_t *)(uintptr_t)&fr->fr_llhdr.flh_len = ETHER_HDR_LEN; in fsw_ethernet_ctor()
93 SK_KVA(fr), ntohs(fr->fr_eth.ether_type), in fsw_ethernet_ctor()
[all …]
H A Dfsw.c1939 fsw_fr2sfr(struct nx_flowswitch *fsw, struct flow_route *fr, in fsw_fr2sfr() argument
1943 uuid_copy(sfr->sfr_uuid, fr->fr_uuid); in fsw_fr2sfr()
1946 sfr->sfr_bucket_idx = fr->fr_frb->frb_idx; in fsw_fr2sfr()
1947 sfr->sfr_id_bucket_idx = fr->fr_frib->frib_idx; in fsw_fr2sfr()
1949 if (fr->fr_flags & FLOWRTF_ATTACHED) { in fsw_fr2sfr()
1952 if (fr->fr_flags & FLOWRTF_ONLINK) { in fsw_fr2sfr()
1955 if (fr->fr_flags & FLOWRTF_GATEWAY) { in fsw_fr2sfr()
1958 if (fr->fr_flags & FLOWRTF_RESOLVED) { in fsw_fr2sfr()
1961 if (fr->fr_flags & FLOWRTF_HAS_LLINFO) { in fsw_fr2sfr()
1964 if (fr->fr_flags & FLOWRTF_DELETED) { in fsw_fr2sfr()
[all …]
H A Dfsw_flow.c497 fsw_flow_route_ctor(void *arg, struct flow_route *fr) in fsw_flow_route_ctor() argument
501 fsw->fsw_ctor(fsw, fr); in fsw_flow_route_ctor()
506 fsw_flow_route_resolve(void *arg, struct flow_route *fr, in fsw_flow_route_resolve() argument
510 return (fsw->fsw_resolve != NULL) ? fsw->fsw_resolve(fsw, fr, pkt) : 0; in fsw_flow_route_resolve()
H A Dfsw_dp.c431 _fsw_error35_handler(int step, struct flow_route *fr, struct __kern_packet *pkt, in _fsw_error35_handler() argument
438 if ((fr->fr_flags & (FLOWRTF_RESOLVED | FLOWRTF_HAS_LLINFO)) == in _fsw_error35_handler()
440 fr->fr_flags &= ~FLOWRTF_RESOLVED; in _fsw_error35_handler()
455 fr->fr_flags |= FLOWRTF_RESOLVED; in _fsw_error35_handler()
466 _fsw_error36_handler(int step, struct flow_route *fr, int *ret) in _fsw_error36_handler() argument
472 if ((fr->fr_flags & (FLOWRTF_RESOLVED | FLOWRTF_HAS_LLINFO)) == in _fsw_error36_handler()
474 fr->fr_flags &= ~FLOWRTF_RESOLVED; in _fsw_error36_handler()
484 fr->fr_flags |= FLOWRTF_RESOLVED; in _fsw_error36_handler()
1724 struct flow_route *fr = fe->fe_route; in dp_flow_route_process() local
1756 if (fr != NULL) { in dp_flow_route_process()
[all …]
H A Dfsw_var.h139 extern int fsw_generic_resolve(struct nx_flowswitch *fsw, struct flow_route *fr,
/xnu-11215.1.10/bsd/net/
H A Dpf_norm.c113 #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-11215.1.10/bsd/skywalk/namespace/
H A Dnetns.c1838 struct flow_route *fr = fe->fe_route; in netns_local_port_scan_flow_entry() local
1840 if (fr == NULL || fr->fr_rt_dst == NULL || in netns_local_port_scan_flow_entry()
1841 (fr->fr_rt_dst->rt_flags & (RTF_UP | RTF_CONDEMNED)) != RTF_UP) { in netns_local_port_scan_flow_entry()
/xnu-11215.1.10/bsd/netinet6/
H A Dipsec.c2828 size_t fr; in ipsec_chkreplay() local
2876 fr = frlast - diff / 8; in ipsec_chkreplay()
2879 if ((replay->bitmap)[fr] & (1 << (diff % 8))) { in ipsec_chkreplay()
2900 size_t fr; in ipsec_updatereplay() local
2961 fr = frlast - diff / 8; in ipsec_updatereplay()
2964 if ((replay->bitmap)[fr] & (1 << (diff % 8))) { in ipsec_updatereplay()
2970 (replay->bitmap)[fr] |= (1 << (diff % 8)); in ipsec_updatereplay()
/xnu-11215.1.10/makedefs/
H A DMakeInc.top733 rm -fr $${cdir} 2> /dev/null || true ; \