Home
last modified time | relevance | path

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

12345678910>>...43

/freebsd-10-stable/usr.sbin/ppp/
Dmbuf.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 …]
Dmbuf.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 …]
/freebsd-10-stable/sys/sys/
Dmbuf.h95 struct mbuf *mh_next; /* next buffer in chain */
96 struct mbuf *mh_nextpkt; /* next chain in queue/record */
176 (struct mbuf *, void *, void *);
185 struct mbuf { struct
216 #define MHSIZE offsetof(struct mbuf, m_dat)
217 #define MPKTHSIZE offsetof(struct mbuf, m_pktdat)
533 void mb_free_ext(struct mbuf *);
534 int m_pkthdr_init(struct mbuf *, int);
570 m_extaddref(struct mbuf *m, caddr_t buf, u_int size, u_int *ref_cnt, in m_extaddref()
571 int (*freef)(struct mbuf *, void *, void *), void *arg1, void *arg2) in m_extaddref() argument
[all …]
Dsockbuf.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 */
123 void sbappend(struct sockbuf *sb, struct mbuf *m);
124 void sbappend_locked(struct sockbuf *sb, struct mbuf *m);
125 void sbappendstream(struct sockbuf *sb, struct mbuf *m);
126 void sbappendstream_locked(struct sockbuf *sb, struct mbuf *m);
128 struct mbuf *m0, struct mbuf *control);
[all …]
Dprotosw.h37 struct mbuf;
67 typedef void pr_input_t (struct mbuf *, int);
68 typedef int pr_input6_t (struct mbuf **, int*, int); /* XXX FIX THIS */
69 typedef int pr_output_t (struct mbuf *, struct socket *);
205 int (*pru_rcvoob)(struct socket *so, struct mbuf *m, int flags);
206 int (*pru_send)(struct socket *so, int flags, struct mbuf *m,
207 struct sockaddr *addr, struct mbuf *control,
217 struct uio *uio, struct mbuf *top, struct mbuf *control,
220 struct uio *uio, struct mbuf **mp0, struct mbuf **controlp,
252 int pru_rcvoob_notsupp(struct socket *so, struct mbuf *m, int flags);
[all …]
Dmchain.h42 struct mbuf;
49 struct mbuf * mb_top; /* head of mbufs chain */
50 struct mbuf * mb_cur; /* current mbuf */
58 struct mbuf * md_top; /* head of mbufs chain */
59 struct mbuf * md_cur; /* current mbuf */
64 void mb_initm(struct mbchain *mbp, struct mbuf *m);
66 struct mbuf *mb_detach(struct mbchain *mbp);
79 int mb_put_mbuf(struct mbchain *mbp, struct mbuf *m);
83 void md_initm(struct mdchain *mbp, struct mbuf *m);
85 void md_append_record(struct mdchain *mdp, struct mbuf *top);
[all …]
/freebsd-10-stable/sbin/dhclient/
Derrwarn.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 …]
/freebsd-10-stable/sys/nfsserver/
Dnfs.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 …]
/freebsd-10-stable/sys/dev/sfxge/
Dsfxge_tx.c142 static int sfxge_tx_queue_tso(struct sfxge_txq *txq, struct mbuf *mbuf,
158 sfxge_tx_maybe_toggle_cksum_offload(struct sfxge_txq *txq, struct mbuf *mbuf, in sfxge_tx_maybe_toggle_cksum_offload() argument
164 if (mbuf->m_pkthdr.csum_flags & in sfxge_tx_maybe_toggle_cksum_offload()
172 } else if (mbuf->m_pkthdr.csum_flags & CSUM_DELAY_IP) { in sfxge_tx_maybe_toggle_cksum_offload()
192 sfxge_tx_maybe_insert_tag(struct sfxge_txq *txq, struct mbuf *mbuf, in sfxge_tx_maybe_insert_tag() argument
195 uint16_t this_tag = ((mbuf->m_flags & M_VLANTAG) ? in sfxge_tx_maybe_insert_tag()
196 mbuf->m_pkthdr.ether_vtag : in sfxge_tx_maybe_insert_tag()
231 struct mbuf *m = stmp->u.mbuf; in sfxge_tx_qcomplete()
255 sfxge_is_mbuf_non_tcp(struct mbuf *mbuf) in sfxge_is_mbuf_non_tcp() argument
260 return (!(mbuf->m_pkthdr.csum_flags & (CSUM_IP_TCP | CSUM_IP6_TCP))); in sfxge_is_mbuf_non_tcp()
[all …]
/freebsd-10-stable/sys/netinet6/
Dip6_var.h92 struct mbuf *ip6af_m;
99 #define IP6_REASS_MBUF(ip6af) (*(struct mbuf **)&((ip6af)->ip6af_m))
137 struct mbuf *ip6po_m; /* Pointer to mbuf storing the data */
388 void ip6_input(struct mbuf *);
389 struct in6_ifaddr *ip6_getdstifaddr(struct mbuf *);
392 int ip6_unknown_opt(u_int8_t *, struct mbuf *, int);
393 int ip6_get_prevhdr(struct mbuf *, int);
394 int ip6_nexthdr(struct mbuf *, int, int, int *);
395 int ip6_lasthdr(struct mbuf *, int, int, int *);
398 struct ip6aux *ip6_findaux(struct mbuf *);
[all …]
/freebsd-10-stable/sys/netinet/
Dsctp_output.h44 struct mbuf *
48 struct mbuf *m_at,
84 struct sctp_nets *, struct mbuf *,
91 struct mbuf *
92 sctp_arethere_unrecognized_parameters(struct mbuf *, int, int *,
94 void sctp_queue_op_err(struct sctp_tcb *, struct mbuf *);
97 sctp_send_cookie_echo(struct mbuf *, int, struct sctp_tcb *,
103 sctp_send_heartbeat_ack(struct sctp_tcb *, struct mbuf *, int, int,
139 sctp_output(struct sctp_inpcb *, struct mbuf *, struct sockaddr *,
140 struct mbuf *, struct thread *, int);
[all …]
Dip_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 *);
227 void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
228 struct mbuf *);
[all …]
Dip_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 *);
Dsctputil.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 …]
/freebsd-10-stable/sys/contrib/altq/altq/
Daltq_classq.h60 struct mbuf *tail_; /* Tail of packet queue */
84 extern void _addq(class_queue_t *, struct mbuf *);
85 extern struct mbuf *_getq(class_queue_t *);
86 extern struct mbuf *_getq_tail(class_queue_t *);
87 extern struct mbuf *_getq_random(class_queue_t *);
88 extern void _removeq(class_queue_t *, struct mbuf *);
96 _addq(class_queue_t *q, struct mbuf *m) in _addq()
98 struct mbuf *m0; in _addq()
110 static __inline struct mbuf *
113 struct mbuf *m, *m0; in _getq()
[all …]
Dif_altq.h49 struct mbuf *ifq_head;
50 struct mbuf *ifq_tail;
59 struct mbuf *ifq_drv_head;
60 struct mbuf *ifq_drv_tail;
70 int (*altq_enqueue)(struct ifaltq *, struct mbuf *,
72 struct mbuf *(*altq_dequeue)(struct ifaltq *, int);
77 void *(*altq_classify)(void *, struct mbuf *, int);
175 int (*)(struct ifaltq *, struct mbuf *,
177 struct mbuf *(*)(struct ifaltq *, int),
180 void *(*)(void *, struct mbuf *, int));
[all …]
/freebsd-10-stable/sys/netgraph/bluetooth/hci/
Dng_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 *);
76 (ng_hci_unit_p, ng_hci_command_status_ep *, struct mbuf *);
78 (ng_hci_unit_p, ng_hci_command_status_ep *, struct mbuf *);
87 struct mbuf *m0 = NULL, *m = NULL; in ng_hci_send_command()
[all …]
/freebsd-10-stable/sys/netipsec/
Dipsec.h275 struct mbuf *m;
331 extern struct secpolicy *ipsec4_checkpolicy(struct mbuf *, u_int, u_int,
333 extern struct secpolicy * ipsec_getpolicybyaddr(struct mbuf *, u_int,
340 extern int ipsec_in_reject(struct secpolicy *, struct mbuf *);
345 size_t len, struct mbuf **mp);
347 extern int ipsec4_in_reject(struct mbuf *, struct inpcb *);
354 extern size_t ipsec_hdrsiz(struct mbuf *, u_int, struct inpcb *);
361 extern void ipsec_dumpmbuf(struct mbuf *);
364 extern void ah4_input(struct mbuf *m, int off);
366 extern void esp4_input(struct mbuf *m, int off);
[all …]
/freebsd-10-stable/sys/net80211/
Dieee80211_proto.h87 int ieee80211_input_all(struct ieee80211com *, struct mbuf *, int, int);
89 int ieee80211_input_mimo(struct ieee80211_node *, struct mbuf *,
91 int ieee80211_input_mimo_all(struct ieee80211com *, struct mbuf *,
95 int ieee80211_mgmt_output(struct ieee80211_node *, struct mbuf *, int,
97 int ieee80211_raw_xmit(struct ieee80211_node *, struct mbuf *,
100 int ieee80211_output(struct ifnet *, struct mbuf *,
103 int ieee80211_output(struct ifnet *, struct mbuf *,
106 int ieee80211_vap_pkt_send_dest(struct ieee80211vap *, struct mbuf *,
109 struct mbuf *, const struct ieee80211_bpf_params *);
110 void ieee80211_send_setup(struct ieee80211_node *, struct mbuf *, int, int,
[all …]
/freebsd-10-stable/sys/xdr/
Dxdr_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 …]
/freebsd-10-stable/sys/kern/
Duipc_sockbuf.c68 static struct mbuf *sbcut_internal(struct sockbuf *sb, int len);
396 struct mbuf *m = sb->sb_mb; in sblastrecordchk()
416 struct mbuf *m = sb->sb_mb; in sblastmbufchk()
417 struct mbuf *n; in sblastmbufchk()
457 sbappend_locked(struct sockbuf *sb, struct mbuf *m) in sbappend_locked()
459 struct mbuf *n; in sbappend_locked()
508 sbappend(struct sockbuf *sb, struct mbuf *m) in sbappend()
522 sbappendstream_locked(struct sockbuf *sb, struct mbuf *m) in sbappendstream_locked()
546 sbappendstream(struct sockbuf *sb, struct mbuf *m) in sbappendstream()
558 struct mbuf *m; in sbcheck()
[all …]
Duipc_mbuf.c91 CTASSERT(sizeof(struct mbuf) == MSIZE);
92 CTASSERT(MSIZE - offsetof(struct mbuf, m_dat) == MLEN);
93 CTASSERT(MSIZE - offsetof(struct mbuf, m_pktdat) == MHLEN);
98 struct mbuf *
102 struct mbuf *m, *n; in m_get2()
132 struct mbuf *
136 struct mbuf *m, *n; in m_getjcl()
165 struct mbuf *
166 m_getm2(struct mbuf *m, int len, int how, short type, int flags) in m_getm2()
168 struct mbuf *mb, *nm = NULL, *mtail = NULL; in m_getm2()
[all …]
/freebsd-10-stable/sys/dev/mlx5/mlx5_en/
Dmlx5_en_tx.c61 sq->mbuf[pi].mbuf = NULL; in mlx5e_send_nop()
62 sq->mbuf[pi].num_bytes = 0; in mlx5e_send_nop()
63 sq->mbuf[pi].num_wqebbs = DIV_ROUND_UP(ds_cnt, MLX5_SEND_WQEBB_NUM_DS); in mlx5e_send_nop()
64 sq->pc += sq->mbuf[pi].num_wqebbs; in mlx5e_send_nop()
81 mlx5e_select_queue(struct ifnet *ifp, struct mbuf *mb) in mlx5e_select_queue()
138 mlx5e_get_inline_hdr_size(struct mlx5e_sq *sq, struct mbuf *mb) in mlx5e_get_inline_hdr_size()
188 mlx5e_get_header_size(const struct mbuf *mb) in mlx5e_get_header_size()
232 const struct mbuf *m_th = mb->m_next; in mlx5e_get_header_size()
257 mlx5e_sq_xmit(struct mlx5e_sq *sq, struct mbuf **mbp) in mlx5e_sq_xmit()
266 struct mbuf *mb = *mbp; in mlx5e_sq_xmit()
[all …]
/freebsd-10-stable/sys/security/mac/
Dmac_framework.h72 struct mbuf;
105 void mac_bpfdesc_create_mbuf(struct bpf_d *d, struct mbuf *m);
146 int mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *m);
148 void mac_ifnet_create_mbuf(struct ifnet *ifp, struct mbuf *m);
156 int mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m);
159 void mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m);
164 void mac_ip6q_create(struct mbuf *m, struct ip6q *q6);
167 int mac_ip6q_match(struct mbuf *m, struct ip6q *q6);
168 void mac_ip6q_reassemble(struct ip6q *q6, struct mbuf *m);
169 void mac_ip6q_update(struct mbuf *m, struct ip6q *q6);
[all …]
/freebsd-10-stable/sys/dev/xen/netback/
Dnetback_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 …]

12345678910>>...43