Home
last modified time | relevance | path

Searched refs:mtag (Results 1 – 25 of 31) sorted by relevance

12

/f-stack/freebsd/net80211/
H A Dieee80211_freebsd.c554 struct m_tag *mtag; in ieee80211_add_callback() local
559 if (mtag == NULL) in ieee80211_add_callback()
574 struct m_tag *mtag; in ieee80211_add_xmit_params() local
579 if (mtag == NULL) in ieee80211_add_xmit_params()
592 struct m_tag *mtag; in ieee80211_get_xmit_params() local
597 if (mtag == NULL) in ieee80211_get_xmit_params()
630 if (mtag == NULL) in ieee80211_add_rx_params()
647 if (mtag == NULL) in ieee80211_get_rx_params()
662 if (mtag == NULL) in ieee80211_get_rx_params_ptr()
679 if (mtag == NULL) in ieee80211_add_toa_params()
[all …]
/f-stack/freebsd/netpfil/ipfw/
H A Ddn_aqm_codel.c194 struct m_tag *mtag; in codel_extract_head() local
208 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL); in codel_extract_head()
209 if (mtag == NULL) { in codel_extract_head()
213 *pkt_ts = *(aqm_time_t *)(mtag + 1); in codel_extract_head()
214 m_tag_delete(m,mtag); in codel_extract_head()
229 struct m_tag *mtag; in aqm_codel_enqueue() local
256 if (mtag == NULL) in aqm_codel_enqueue()
257 mtag = m_tag_alloc(MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, in aqm_codel_enqueue()
259 if (mtag == NULL) { in aqm_codel_enqueue()
264 *(aqm_time_t *)(mtag + 1) = AQM_UNOW; in aqm_codel_enqueue()
[all …]
H A Ddn_sched_fq_codel.h153 struct m_tag *mtag; in fq_codel_extract_head() local
154 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL); in fq_codel_extract_head()
155 if (mtag == NULL){ in fq_codel_extract_head()
159 *pkt_ts = *(aqm_time_t *)(mtag + 1); in fq_codel_extract_head()
160 m_tag_delete(m,mtag); in fq_codel_extract_head()
H A Ddn_aqm_pie.c330 struct m_tag *mtag; in pie_extract_head() local
345 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL); in pie_extract_head()
346 if (mtag == NULL) { in pie_extract_head()
350 *pkt_ts = *(aqm_time_t *)(mtag + 1); in pie_extract_head()
351 m_tag_delete(m,mtag); in pie_extract_head()
539 struct m_tag *mtag; in aqm_pie_enqueue() local
541 if (mtag == NULL) in aqm_pie_enqueue()
542 mtag = m_tag_alloc(MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, in aqm_pie_enqueue()
544 if (mtag == NULL) { in aqm_pie_enqueue()
548 *(aqm_time_t *)(mtag + 1) = AQM_UNOW; in aqm_pie_enqueue()
[all …]
H A Dip_dn_io.c253 struct m_tag *mtag = m_tag_first(m); in dn_tag_get() local
256 if (mtag != NULL && mtag->m_tag_id == DN_AQM_MTAG_TS) { in dn_tag_get()
257 m_tag_delete(m,mtag); in dn_tag_get()
258 mtag = m_tag_first(m); in dn_tag_get()
262 KASSERT(mtag != NULL && in dn_tag_get()
264 mtag->m_tag_id == PACKET_TAG_DUMMYNET, in dn_tag_get()
266 return (struct dn_pkt_tag *)(mtag+1); in dn_tag_get()
840 struct m_tag *mtag; in tag_mbuf() local
842 mtag = m_tag_get(PACKET_TAG_DUMMYNET, in tag_mbuf()
844 if (mtag == NULL) in tag_mbuf()
[all …]
H A Dip_fw2.c2442 struct m_tag *mtag; in ipfw_chk() local
2457 if (mtag == NULL) { in ipfw_chk()
2587 struct m_tag *mtag; in ipfw_chk() local
2601 if (mtag != NULL) in ipfw_chk()
2608 if (mtag != NULL) in ipfw_chk()
2670 struct m_tag *mtag; in ipfw_chk() local
2682 mtag = m_tag_next(m, mtag)) { in ipfw_chk()
2895 mtag = m_tag_next(m, mtag); in ipfw_chk()
2901 if (mtag != NULL) in ipfw_chk()
2935 mtag->m_tag_id++; in ipfw_chk()
[all …]
H A Ddn_sched_fq_codel.c187 struct m_tag *mtag; in codel_enqueue() local
188 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL); in codel_enqueue()
189 if (mtag == NULL) in codel_enqueue()
190 mtag = m_tag_alloc(MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, sizeof(aqm_time_t), in codel_enqueue()
192 if (mtag == NULL) { in codel_enqueue()
196 *(aqm_time_t *)(mtag + 1) = AQM_UNOW; in codel_enqueue()
197 m_tag_prepend(m, mtag); in codel_enqueue()
H A Ddn_sched_fq_pie.c354 struct m_tag *mtag; in fq_pie_extract_head() local
355 mtag = m_tag_locate(m, MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, NULL); in fq_pie_extract_head()
356 if (mtag == NULL){ in fq_pie_extract_head()
360 *pkt_ts = *(aqm_time_t *)(mtag + 1); in fq_pie_extract_head()
361 m_tag_delete(m,mtag); in fq_pie_extract_head()
731 struct m_tag *mtag; in pie_enqueue() local
733 if (mtag == NULL) in pie_enqueue()
734 mtag = m_tag_alloc(MTAG_ABI_COMPAT, DN_AQM_MTAG_TS, in pie_enqueue()
736 if (mtag == NULL) { in pie_enqueue()
740 *(aqm_time_t *)(mtag + 1) = AQM_UNOW; in pie_enqueue()
[all …]
H A Dip_fw_pfil.c360 struct m_tag *mtag; in ipfw_check_frame() local
362 mtag = m_tag_locate(*p.m, MTAG_IPFW_RULE, 0, NULL); in ipfw_check_frame()
363 if (mtag != NULL) { in ipfw_check_frame()
364 args.rule = *((struct ipfw_rule_ref *)(mtag+1)); in ipfw_check_frame()
365 m_tag_delete(*p.m, mtag); in ipfw_check_frame()
/f-stack/freebsd/netpfil/pf/
H A Dpf_mtag.h58 struct m_tag *mtag; in pf_find_mtag() local
60 if ((mtag = m_tag_find(m, PACKET_TAG_PF, NULL)) == NULL) in pf_find_mtag()
63 return ((struct pf_mtag *)(mtag + 1)); in pf_find_mtag()
H A Dpf_norm.c822 struct m_tag *mtag; in pf_reassemble6() local
899 if ((mtag = m_tag_get(PF_REASSEMBLED, sizeof(struct pf_fragment_tag), in pf_reassemble6()
902 ftag = (struct pf_fragment_tag *)(mtag + 1); in pf_reassemble6()
907 m_tag_prepend(m, mtag); in pf_reassemble6()
941 pf_refragment6(struct ifnet *ifp, struct mbuf **m0, struct m_tag *mtag) in pf_refragment6() argument
944 struct pf_fragment_tag *ftag = (struct pf_fragment_tag *)(mtag + 1); in pf_refragment6()
955 m_tag_delete(m, mtag); in pf_refragment6()
956 mtag = NULL; in pf_refragment6()
H A Dpf.c982 struct m_tag *mtag; in pf_get_mtag() local
988 if (mtag == NULL) in pf_get_mtag()
991 m_tag_prepend(m, mtag); in pf_get_mtag()
2679 struct m_tag *mtag; in pf_ieee8021q_setpcp() local
2685 if (mtag == NULL) { in pf_ieee8021q_setpcp()
2688 if (mtag == NULL) in pf_ieee8021q_setpcp()
2690 m_tag_prepend(m, mtag); in pf_ieee8021q_setpcp()
2700 struct m_tag *mtag; in pf_match_ieee8021q_pcp() local
2704 if (mtag == NULL) in pf_match_ieee8021q_pcp()
2908 *tag = mtag; in pf_match_tag()
[all …]
/f-stack/freebsd/net/altq/
H A Daltq_codel.c286 struct m_tag *mtag; in codel_addq() local
290 mtag = m_tag_locate(m, MTAG_CODEL, 0, NULL); in codel_addq()
291 if (mtag == NULL) in codel_addq()
292 mtag = m_tag_alloc(MTAG_CODEL, 0, sizeof(uint64_t), in codel_addq()
294 if (mtag == NULL) { in codel_addq()
298 enqueue_time = (uint64_t *)(mtag + 1); in codel_addq()
300 m_tag_prepend(m, mtag); in codel_addq()
314 struct m_tag *mtag; in codel_should_drop() local
322 mtag = m_tag_locate(m, MTAG_CODEL, 0, NULL); in codel_should_drop()
323 if (mtag == NULL) { in codel_should_drop()
[all …]
/f-stack/freebsd/netinet/
H A Dip_divert.c198 struct m_tag *mtag; in divert_packet() local
202 mtag = m_tag_locate(m, MTAG_IPFW_RULE, 0, NULL); in divert_packet()
203 if (mtag == NULL) { in divert_packet()
228 divsrc.sin_port = ((struct ipfw_rule_ref *)(mtag+1))->rulenum; in divert_packet()
316 struct m_tag *mtag; in div_output() local
331 mtag = m_tag_locate(m, MTAG_IPFW_RULE, 0, NULL); in div_output()
332 if (mtag == NULL) { in div_output()
334 mtag = m_tag_alloc(MTAG_IPFW_RULE, 0, in div_output()
336 if (mtag == NULL) { in div_output()
340 m_tag_prepend(m, mtag); in div_output()
[all …]
H A Dip_carp.c783 struct m_tag *mtag; in carp_prepare_ad() local
805 bcopy(&sc, mtag + 1, sizeof(sc)); in carp_prepare_ad()
806 m_tag_prepend(m, mtag); in carp_prepare_ad()
1215 struct m_tag *mtag; in carp_macmatch6() local
1217 mtag = m_tag_get(PACKET_TAG_CARP, in carp_macmatch6()
1219 if (mtag == NULL) in carp_macmatch6()
1223 bcopy(&sc, mtag + 1, sizeof(sc)); in carp_macmatch6()
1224 m_tag_prepend(m, mtag); in carp_macmatch6()
1520 struct m_tag *mtag; in carp_output() local
1540 if (mtag == NULL) in carp_output()
[all …]
/f-stack/freebsd/netipsec/
H A Dipsec_input.c284 struct m_tag *mtag; in ipsec4_common_input_cb() local
372 mtag = m_tag_get(PACKET_TAG_IPSEC_IN_DONE, in ipsec4_common_input_cb()
374 if (mtag == NULL) { in ipsec4_common_input_cb()
381 xh = (struct xform_history *)(mtag + 1); in ipsec4_common_input_cb()
386 m_tag_prepend(m, mtag); in ipsec4_common_input_cb()
499 struct m_tag *mtag; in ipsec6_common_input_cb() local
573 mtag = m_tag_get(PACKET_TAG_IPSEC_IN_DONE, in ipsec6_common_input_cb()
575 if (mtag == NULL) { in ipsec6_common_input_cb()
582 xh = (struct xform_history *)(mtag + 1); in ipsec6_common_input_cb()
587 m_tag_prepend(m, mtag); in ipsec6_common_input_cb()
H A Dipsec_output.c719 struct m_tag *mtag; in ipsec_process_done() local
756 mtag = m_tag_get(PACKET_TAG_IPSEC_OUT_DONE, sizeof(*xh), M_NOWAIT); in ipsec_process_done()
757 if (mtag == NULL) { in ipsec_process_done()
763 xh = (struct xform_history *)(mtag + 1); in ipsec_process_done()
768 m_tag_prepend(m, mtag); in ipsec_process_done()
H A Dipsec.c978 struct m_tag *mtag; in ipsec_check_history() local
980 mtag = NULL; in ipsec_check_history()
981 while ((mtag = m_tag_find(__DECONST(struct mbuf *, m), in ipsec_check_history()
982 PACKET_TAG_IPSEC_IN_DONE, mtag)) != NULL) { in ipsec_check_history()
983 xh = (struct xform_history *)(mtag + 1); in ipsec_check_history()
/f-stack/freebsd/net/
H A Dif_fwsubr.c86 struct m_tag *mtag; in firewire_output() local
125 mtag = m_tag_locate(m, MTAG_FIREWIRE, MTAG_FIREWIRE_HWADDR, NULL); in firewire_output()
126 if (!mtag) { in firewire_output()
127 mtag = m_tag_alloc(MTAG_FIREWIRE, MTAG_FIREWIRE_HWADDR, in firewire_output()
129 if (!mtag) { in firewire_output()
133 m_tag_prepend(m, mtag); in firewire_output()
135 destfw = (struct fw_hwaddr *)(mtag + 1); in firewire_output()
572 struct m_tag *mtag; in firewire_input() local
574 mtag = m_tag_locate(m, MTAG_FIREWIRE, MTAG_FIREWIRE_SENDER_EUID, 0); in firewire_input()
575 if (mtag) in firewire_input()
[all …]
H A Dif_vlan.c1275 struct m_tag *mtag; in vlan_input() local
1348 mtag = m_tag_locate(m, MTAG_8021Q, MTAG_8021Q_PCP_IN, NULL); in vlan_input()
1349 if (mtag == NULL) { in vlan_input()
1350 mtag = m_tag_alloc(MTAG_8021Q, MTAG_8021Q_PCP_IN, in vlan_input()
1352 if (mtag == NULL) { in vlan_input()
1357 m_tag_prepend(m, mtag); in vlan_input()
1359 *(uint8_t *)(mtag + 1) = EVL_PRIOFTAG(tag); in vlan_input()
/f-stack/freebsd/netgraph/netflow/
H A Dng_netflow.c596 struct m_tag *mtag; in ng_netflow_rcvdata() local
627 mtag = m_tag_locate(NGI_M(item), MTAG_NETFLOW, in ng_netflow_rcvdata()
629 while (mtag != NULL) { in ng_netflow_rcvdata()
631 ((ng_ID_t *)(mtag + 1))[0] == NG_NODE_ID(node)) { in ng_netflow_rcvdata()
635 mtag = m_tag_locate(NGI_M(item), MTAG_NETFLOW, in ng_netflow_rcvdata()
636 MTAG_NETFLOW_CALLED, mtag); in ng_netflow_rcvdata()
650 mtag = m_tag_alloc(MTAG_NETFLOW, MTAG_NETFLOW_CALLED, in ng_netflow_rcvdata()
652 if (mtag) { in ng_netflow_rcvdata()
653 ((ng_ID_t *)(mtag + 1))[0] = NG_NODE_ID(node); in ng_netflow_rcvdata()
654 m_tag_prepend(NGI_M(item), mtag); in ng_netflow_rcvdata()
/f-stack/freebsd/netinet6/
H A Dnd6_nbr.c408 struct m_tag *mtag; in nd6_ns_output_fib() local
575 mtag = m_tag_get(PACKET_TAG_ND_OUTGOING, in nd6_ns_output_fib()
577 if (mtag == NULL) in nd6_ns_output_fib()
579 *(unsigned short *)(mtag + 1) = nd_ns->nd_ns_type; in nd6_ns_output_fib()
580 m_tag_prepend(m, mtag); in nd6_ns_output_fib()
943 struct m_tag *mtag; in nd6_na_output_fib() local
1070 mtag = m_tag_get(PACKET_TAG_ND_OUTGOING, in nd6_na_output_fib()
1072 if (mtag == NULL) in nd6_na_output_fib()
1074 *(unsigned short *)(mtag + 1) = nd_na->nd_na_type; in nd6_na_output_fib()
1075 m_tag_prepend(m, mtag); in nd6_na_output_fib()
H A Dfrag6.c379 struct m_tag *mtag; in frag6_input() local
846 mtag = m_tag_alloc(MTAG_ABI_IPV6, IPV6_TAG_DIRECT, sizeof(*ip6dc), in frag6_input()
848 if (mtag == NULL) in frag6_input()
851 ip6dc = (struct ip6_direct_ctx *)(mtag + 1); in frag6_input()
855 m_tag_prepend(m, mtag); in frag6_input()
H A Draw_ip6.c396 struct m_tag *mtag; in rip6_output() local
545 mtag = m_tag_get(PACKET_TAG_ND_OUTGOING, in rip6_output()
547 if (mtag == NULL) in rip6_output()
549 m_tag_prepend(m, mtag); in rip6_output()
H A Dip6_input.c487 struct m_tag *mtag; in ip6_direct_input() local
490 mtag = m_tag_locate(m, MTAG_ABI_IPV6, IPV6_TAG_DIRECT, NULL); in ip6_direct_input()
491 KASSERT(mtag != NULL, ("Reinjected packet w/o direct ctx tag!")); in ip6_direct_input()
493 ip6dc = (struct ip6_direct_ctx *)(mtag + 1); in ip6_direct_input()
499 m_tag_delete(m, mtag); in ip6_direct_input()

12