Home
last modified time | relevance | path

Searched refs:mbuf (Results 1 – 25 of 1046) sorted by relevance

12345678910>>...42

/NextBSD/sys/sys/
HDmbuf.h67 struct mbuf;
68 #define MHSIZE offsetof(struct mbuf, m_dat)
69 #define MPKTHSIZE offsetof(struct mbuf, m_pktdat)
169 (struct mbuf *, void *, void *);
178 struct mbuf { struct
187 struct mbuf *m_next; argument
188 SLIST_ENTRY(mbuf) m_slist;
189 STAILQ_ENTRY(mbuf) m_stailq;
192 struct mbuf *m_nextpkt; argument
193 SLIST_ENTRY(mbuf) m_slistpkt;
[all …]
HDsockbuf.h61 struct mbuf;
87 struct mbuf *sb_mb; /* (c/d) the mbuf chain */
88 struct mbuf *sb_mbtail; /* (c/d) the last mbuf in the chain */
89 struct mbuf *sb_lastrecord; /* (c/d) first mbuf of last
91 struct mbuf *sb_sndptr; /* (c/d) pointer into mbuf chain */
92 struct mbuf *sb_fnrdy; /* (c/d) pointer to first not ready buffer */
132 void sbappend(struct sockbuf *sb, struct mbuf *m, int flags);
133 void sbappend_locked(struct sockbuf *sb, struct mbuf *m, int flags);
134 void sbappendstream(struct sockbuf *sb, struct mbuf *m, int flags);
135 void sbappendstream_locked(struct sockbuf *sb, struct mbuf *m, int flags);
[all …]
HDprotosw.h37 struct mbuf;
67 typedef int pr_input_t (struct mbuf **, int*, int);
68 typedef int pr_output_t (struct mbuf *, struct socket *, ...);
204 int (*pru_rcvoob)(struct socket *so, struct mbuf *m, int flags);
205 int (*pru_send)(struct socket *so, int flags, struct mbuf *m,
206 struct sockaddr *addr, struct mbuf *control,
212 int (*pru_ready)(struct socket *so, struct mbuf *m, int count);
218 struct uio *uio, struct mbuf *top, struct mbuf *control,
221 struct uio *uio, struct mbuf **mp0, struct mbuf **controlp,
253 int pru_rcvoob_notsupp(struct socket *so, struct mbuf *m, int flags);
[all …]
/NextBSD/usr.sbin/ppp/
HDmbuf.h31 struct mbuf { struct
36 struct mbuf *m_next; /* link to next mbuf */ argument
37 struct mbuf *m_nextpkt; /* link to next packet */ argument
43 struct mbuf *top; argument
44 struct mbuf *last;
99 #define M_MAXLEN (4352 - sizeof(struct mbuf)) /* > HDLCSIZE */
103 extern size_t m_length(struct mbuf *);
104 extern struct mbuf *m_get(size_t, int);
105 extern struct mbuf *m_free(struct mbuf *);
106 extern void m_freem(struct mbuf *);
[all …]
HDmbuf.c60 struct mbuf m;
63 } *bucket[(M_MAXLEN + sizeof(struct mbuf)) / BUCKET_HASH];
65 #define M_BINDEX(sz) (((sz) + sizeof(struct mbuf) - 1) / BUCKET_HASH)
70 struct mbuf *queue;
78 m_length(struct mbuf *bp) in m_length()
103 struct mbuf *
107 struct mbuf *bp; in m_get()
153 memset(bp, '\0', sizeof(struct mbuf)); in m_get()
164 struct mbuf *
165 m_free(struct mbuf *bp) in m_free()
[all …]
/NextBSD/sbin/dhclient/
HDerrwarn.c52 static char mbuf[1024]; variable
68 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in error()
72 syslog(log_priority | LOG_ERR, "%s", mbuf); in error()
77 write(2, mbuf, strlen(mbuf)); in error()
102 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in warning()
106 syslog(log_priority | LOG_ERR, "%s", mbuf); in warning()
110 write(2, mbuf, strlen(mbuf)); in warning()
128 vsnprintf(mbuf, sizeof(mbuf), fbuf, list); in note()
132 syslog(log_priority | LOG_INFO, "%s", mbuf); in note()
136 write(2, mbuf, strlen(mbuf)); in note()
[all …]
/NextBSD/sys/nfsserver/
HDnfs.h166 struct nfssvc_sock *slp, struct mbuf **mreqp);
182 struct mbuf *nd_mrep; /* Request mbuf list */
183 struct mbuf *nd_md; /* Current dissect mbuf */
184 struct mbuf *nd_mreq; /* Reply mbuf list */
248 struct mbuf *nfs_rephead(int, struct nfsrv_descript *, int, struct mbuf **,
253 struct vattr *, struct mbuf **, char **);
255 struct mbuf **, char **);
257 int, struct nfssvc_sock *, struct sockaddr *, struct mbuf **,
259 void nfsm_adj(struct mbuf *, int, int);
260 int nfsm_mbuftouio(struct mbuf **, struct uio *, int, caddr_t *);
[all …]
/NextBSD/sys/dev/sfxge/
HDsfxge_tx.c130 static int sfxge_tx_queue_tso(struct sfxge_txq *txq, struct mbuf *mbuf,
135 sfxge_tx_maybe_insert_tag(struct sfxge_txq *txq, struct mbuf *mbuf) in sfxge_tx_maybe_insert_tag() argument
137 uint16_t this_tag = ((mbuf->m_flags & M_VLANTAG) ? in sfxge_tx_maybe_insert_tag()
138 mbuf->m_pkthdr.ether_vtag : in sfxge_tx_maybe_insert_tag()
182 struct mbuf *m = stmp->u.mbuf; in sfxge_tx_qcomplete()
206 sfxge_is_mbuf_non_tcp(struct mbuf *mbuf) in sfxge_is_mbuf_non_tcp() argument
211 return (!(mbuf->m_pkthdr.csum_flags & (CSUM_IP_TCP | CSUM_IP6_TCP))); in sfxge_is_mbuf_non_tcp()
221 struct mbuf *mbuf, *get_next, **get_tailp; in sfxge_tx_qdpl_swizzle() local
234 mbuf = (void *)put; in sfxge_tx_qdpl_swizzle()
236 if (mbuf == NULL) in sfxge_tx_qdpl_swizzle()
[all …]
/NextBSD/sys/netinet6/
HDip6_var.h92 struct mbuf *ip6af_m;
99 #define IP6_REASS_MBUF(ip6af) (*(struct mbuf **)&((ip6af)->ip6af_m))
145 struct mbuf *ip6po_m; /* Pointer to mbuf storing the data */
363 void ip6_input(struct mbuf *);
364 void ip6_direct_input(struct mbuf *);
367 int ip6_unknown_opt(u_int8_t *, struct mbuf *, int);
368 char * ip6_get_prevhdr(const struct mbuf *, int);
369 int ip6_nexthdr(const struct mbuf *, int, int, int *);
370 int ip6_lasthdr(const struct mbuf *, int, int, int *);
373 struct mbuf *);
[all …]
/NextBSD/sys/netinet/
HDsctp_output.h44 struct mbuf *
48 struct mbuf *m_at,
83 sctp_send_initiate_ack(struct sctp_inpcb *, struct sctp_tcb *, struct mbuf *,
90 struct mbuf *
91 sctp_arethere_unrecognized_parameters(struct mbuf *, int, int *,
93 void sctp_queue_op_err(struct sctp_tcb *, struct mbuf *);
96 sctp_send_cookie_echo(struct mbuf *, int, struct sctp_tcb *,
102 sctp_send_heartbeat_ack(struct sctp_tcb *, struct mbuf *, int, int,
138 sctp_output(struct sctp_inpcb *, struct mbuf *, struct sockaddr *,
139 struct mbuf *, struct thread *, int);
[all …]
HDip_var.h61 struct mbuf *ipq_frags; /* to ip headers of fragments */
208 int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu,
210 void ip_forward(struct mbuf *m, int srcrt);
216 (*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *,
218 int ip_output(struct mbuf *,
219 struct mbuf *, struct route *, int, struct ip_moptions *,
223 struct mbuf *
224 ip_reass(struct mbuf *);
225 void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
226 struct mbuf *);
[all …]
HDip_options.h53 int ip_checkrouteralert(struct mbuf *);
54 int ip_dooptions(struct mbuf *, int);
55 struct mbuf *ip_insertoptions(struct mbuf *, struct mbuf *, int *);
57 int ip_pcbopts(struct inpcb *, int, struct mbuf *);
58 void ip_stripoptions(struct mbuf *);
59 struct mbuf *ip_srcroute(struct mbuf *);
HDsctputil.h50 struct mbuf *sctp_m_free(struct mbuf *m);
51 void sctp_m_freem(struct mbuf *m);
127 struct mbuf *m,
145 uint32_t sctp_calculate_len(struct mbuf *);
147 caddr_t sctp_m_getptr(struct mbuf *, int, int, uint8_t *);
150 sctp_get_next_param(struct mbuf *, int,
153 struct mbuf *
154 sctp_add_pad_tombuf(struct mbuf *, int);
156 struct mbuf *
157 sctp_pad_lastmbuf(struct mbuf *, int, struct mbuf *);
[all …]
/NextBSD/sys/netgraph/bluetooth/hci/
HDng_hci_cmds.c60 static int complete_command (ng_hci_unit_p, int, struct mbuf **);
63 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *);
65 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *);
67 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *);
69 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *);
71 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *);
73 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *);
75 (ng_hci_unit_p, u_int16_t, struct mbuf *, struct mbuf *);
78 (ng_hci_unit_p, ng_hci_command_status_ep *, struct mbuf *);
80 (ng_hci_unit_p, ng_hci_command_status_ep *, struct mbuf *);
[all …]
/NextBSD/sys/net/altq/
HDaltq_classq.h61 struct mbuf *tail_; /* Tail of packet queue */
85 extern void _addq(class_queue_t *, struct mbuf *);
86 extern struct mbuf *_getq(class_queue_t *);
87 extern struct mbuf *_getq_tail(class_queue_t *);
88 extern struct mbuf *_getq_random(class_queue_t *);
89 extern void _removeq(class_queue_t *, struct mbuf *);
97 _addq(class_queue_t *q, struct mbuf *m) in _addq()
99 struct mbuf *m0; in _addq()
111 static __inline struct mbuf *
114 struct mbuf *m, *m0; in _getq()
[all …]
HDif_altq.h43 struct mbuf *ifq_head;
44 struct mbuf *ifq_tail;
50 struct mbuf *ifq_drv_head;
51 struct mbuf *ifq_drv_tail;
61 int (*altq_enqueue)(struct ifaltq *, struct mbuf *,
63 struct mbuf *(*altq_dequeue)(struct ifaltq *, int);
68 void *(*altq_classify)(void *, struct mbuf *, int);
166 int (*)(struct ifaltq *, struct mbuf *,
168 struct mbuf *(*)(struct ifaltq *, int),
171 void *(*)(void *, struct mbuf *, int));
[all …]
/NextBSD/sys/net80211/
HDieee80211_proto.h67 int ieee80211_input_all(struct ieee80211com *, struct mbuf *, int, int);
69 int ieee80211_input_mimo(struct ieee80211_node *, struct mbuf *,
71 int ieee80211_input_mimo_all(struct ieee80211com *, struct mbuf *,
75 int ieee80211_mgmt_output(struct ieee80211_node *, struct mbuf *, int,
77 int ieee80211_raw_xmit(struct ieee80211_node *, struct mbuf *,
79 int ieee80211_output(struct ifnet *, struct mbuf *,
81 int ieee80211_vap_pkt_send_dest(struct ieee80211vap *, struct mbuf *,
84 struct mbuf *, const struct ieee80211_bpf_params *);
85 void ieee80211_send_setup(struct ieee80211_node *, struct mbuf *, int, int,
88 int ieee80211_vap_transmit(struct ifnet *ifp, struct mbuf *m);
[all …]
/NextBSD/sys/xdr/
HDxdr_mbuf.c65 xdrmbuf_create(XDR *xdrs, struct mbuf *m, enum xdr_op op) in xdrmbuf_create()
83 xdrmbuf_append(XDR *xdrs, struct mbuf *madd) in xdrmbuf_append()
85 struct mbuf *m; in xdrmbuf_append()
95 m = (struct mbuf *) xdrs->x_private; in xdrmbuf_append()
103 struct mbuf *
106 struct mbuf *m0, *m; in xdrmbuf_getall()
111 m0 = (struct mbuf *) xdrs->x_base; in xdrmbuf_getall()
112 m = (struct mbuf *) xdrs->x_private; in xdrmbuf_getall()
135 m_freem((struct mbuf *) xdrs->x_base); in xdrmbuf_destroy()
178 struct mbuf *m = (struct mbuf *) xdrs->x_private; in xdrmbuf_getbytes()
[all …]
/NextBSD/sys/kern/
HDuipc_mbuf.c91 CTASSERT(MSIZE - offsetof(struct mbuf, m_dat) == MLEN);
92 CTASSERT(MSIZE - offsetof(struct mbuf, m_pktdat) == MHLEN);
98 CTASSERT(offsetof(struct mbuf, m_dat) % 8 == 0);
99 CTASSERT(offsetof(struct mbuf, m_pktdat) % 8 == 0);
113 CTASSERT(offsetof(struct mbuf, m_dat) == 32);
117 CTASSERT(offsetof(struct mbuf, m_dat) == 24);
127 static struct mbuf m_assertbuf;
137 struct mbuf *
141 struct mbuf *m, *n; in m_get2()
171 struct mbuf *
[all …]
HDuipc_sockbuf.c68 static struct mbuf *sbcut_internal(struct sockbuf *sb, int len);
75 sbm_clrprotoflags(struct mbuf *m, int flags) in sbm_clrprotoflags()
92 sbready(struct sockbuf *sb, struct mbuf *m, int count) in sbready()
129 sballoc(struct sockbuf *sb, struct mbuf *m) in sballoc()
160 sbfree(struct sockbuf *sb, struct mbuf *m) in sbfree()
173 struct mbuf *n; in sbfree()
528 struct mbuf *m = sb->sb_mb; in sblastrecordchk()
548 struct mbuf *m = sb->sb_mb; in sblastmbufchk()
549 struct mbuf *n; in sblastmbufchk()
589 sbappend_locked(struct sockbuf *sb, struct mbuf *m, int flags) in sbappend_locked()
[all …]
/NextBSD/sys/netipsec/
HDipsec.h314 extern struct secpolicy *ipsec4_checkpolicy(struct mbuf *, u_int,
316 extern struct secpolicy * ipsec_getpolicybyaddr(struct mbuf *, u_int, int *);
326 size_t len, struct mbuf **mp);
328 extern int ipsec4_in_reject(struct mbuf *, struct inpcb *);
335 extern size_t ipsec_hdrsiz(struct mbuf *, u_int, struct inpcb *);
342 extern void ipsec_dumpmbuf(struct mbuf *);
345 extern int ah4_input(struct mbuf **mp, int *offp, int proto);
347 extern int esp4_input(struct mbuf **mp, int *offp, int proto);
349 extern int ipcomp4_input(struct mbuf **mp, int *offp, int proto);
350 extern int ipsec_common_input(struct mbuf *m, int, int, int, int);
[all …]
/NextBSD/sys/dev/mlx5/mlx5_en/
HDmlx5_en_tx.c43 sq->mbuf[pi].mbuf = NULL; in mlx5e_send_nop()
44 sq->mbuf[pi].num_bytes = 0; in mlx5e_send_nop()
45 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_send_nop()
46 sq->pc += sq->mbuf[pi].num_wqebbs; in mlx5e_send_nop()
65 mlx5e_select_queue(struct ifnet *ifp, struct mbuf *mb) in mlx5e_select_queue()
118 mlx5e_get_inline_hdr_size(struct mlx5e_sq *sq, struct mbuf *mb) in mlx5e_get_inline_hdr_size()
124 mlx5e_get_header_size(struct mbuf *mb) in mlx5e_get_header_size()
182 mlx5e_sq_xmit(struct mlx5e_sq *sq, struct mbuf **mbp) in mlx5e_sq_xmit()
191 struct mbuf *mb = *mbp; in mlx5e_sq_xmit()
250 sq->mbuf[pi].num_bytes = payload_len + (num_pkts * ihs); in mlx5e_sq_xmit()
[all …]
/NextBSD/sys/dev/vnic/
HDnicvf_queues.c88 static int nicvf_tx_mbuf_locked(struct snd_queue *, struct mbuf *);
89 static struct mbuf * nicvf_get_rcv_mbuf(struct nicvf *, struct cqe_rx_t *);
103 struct mbuf * mbuf; member
247 struct mbuf *mbuf; in nicvf_alloc_rcv_buffer() local
253 mbuf = m_getjcl(mflags, MT_DATA, M_PKTHDR, MCLBYTES); in nicvf_alloc_rcv_buffer()
254 if (mbuf == NULL) in nicvf_alloc_rcv_buffer()
261 mbuf->m_len = mbuf->m_pkthdr.len = buf_len; in nicvf_alloc_rcv_buffer()
263 err = bus_dmamap_load_mbuf_sg(rbdr->rbdr_buff_dmat, dmap, mbuf, segs, in nicvf_alloc_rcv_buffer()
269 m_freem(mbuf); in nicvf_alloc_rcv_buffer()
279 rinfo = (struct rbuf_info *)mbuf->m_data; in nicvf_alloc_rcv_buffer()
[all …]
/NextBSD/sys/dev/xen/netback/
HDnetback_unit_tests.c175 static void xnb_fill_eh_and_ip(struct mbuf *m, uint16_t ip_len,
178 static void xnb_fill_tcp(struct mbuf *m);
193 static inline void safe_m_freem(struct mbuf **ppMbuf) { in safe_m_freem()
993 struct mbuf *pMbuf; in xnb_pkt2mbufc_empty()
1012 struct mbuf *pMbuf; in xnb_pkt2mbufc_short()
1029 struct mbuf *pMbuf; in xnb_pkt2mbufc_csum()
1050 struct mbuf *pMbuf; in xnb_pkt2mbufc_1cluster()
1067 struct mbuf *pMbuf; in xnb_pkt2mbufc_largecluster()
1085 struct mbuf *pMbuf; in xnb_pkt2mbufc_2cluster()
1086 struct mbuf *m; in xnb_pkt2mbufc_2cluster()
[all …]
/NextBSD/sys/security/mac/
HDmac_inet.c191 mac_ipq_reassemble(struct ipq *q, struct mbuf *m) in mac_ipq_reassemble()
205 mac_netinet_fragment(struct mbuf *m, struct mbuf *frag) in mac_netinet_fragment()
220 mac_ipq_create(struct mbuf *m, struct ipq *q) in mac_ipq_create()
233 mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m) in mac_inpcb_create_mbuf()
249 mac_ipq_match(struct mbuf *m, struct ipq *q) in mac_ipq_match()
266 mac_netinet_arp_send(struct ifnet *ifp, struct mbuf *m) in mac_netinet_arp_send()
282 mac_netinet_icmp_reply(struct mbuf *mrecv, struct mbuf *msend) in mac_netinet_icmp_reply()
297 mac_netinet_icmp_replyinplace(struct mbuf *m) in mac_netinet_icmp_replyinplace()
310 mac_netinet_igmp_send(struct ifnet *ifp, struct mbuf *m) in mac_netinet_igmp_send()
326 mac_netinet_tcp_reply(struct mbuf *m) in mac_netinet_tcp_reply()
[all …]

12345678910>>...42