| /freebsd-9-stable/sys/sys/ |
| D | mbuf.h | 90 struct mbuf *mh_next; /* next buffer in chain */ 91 struct mbuf *mh_nextpkt; /* next chain in queue/record */ 152 struct mbuf { struct 184 #define MHSIZE offsetof(struct mbuf, m_dat) 185 #define MPKTHSIZE offsetof(struct mbuf, m_pktdat) 417 static __inline struct mbuf *m_getcl(int how, short type, int flags); 418 static __inline struct mbuf *m_get(int how, short type); 419 static __inline struct mbuf *m_gethdr(int how, short type); 420 static __inline struct mbuf *m_getjcl(int how, short type, int flags, 422 static __inline struct mbuf *m_getclr(int how, short type); /* XXX */ [all …]
|
| D | sockbuf.h | 60 struct mbuf; 86 struct mbuf *sb_mb; /* (c/d) the mbuf chain */ 87 struct mbuf *sb_mbtail; /* (c/d) the last mbuf in the chain */ 88 struct mbuf *sb_lastrecord; /* (c/d) first mbuf of last 90 struct mbuf *sb_sndptr; /* (c/d) pointer into mbuf chain */ 122 void sbappend(struct sockbuf *sb, struct mbuf *m); 123 void sbappend_locked(struct sockbuf *sb, struct mbuf *m); 124 void sbappendstream(struct sockbuf *sb, struct mbuf *m); 125 void sbappendstream_locked(struct sockbuf *sb, struct mbuf *m); 127 struct mbuf *m0, struct mbuf *control); [all …]
|
| D | protosw.h | 37 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, 244 int pru_rcvoob_notsupp(struct socket *so, struct mbuf *m, int flags); [all …]
|
| /freebsd-9-stable/usr.sbin/ppp/ |
| D | mbuf.h | 31 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 …]
|
| D | mbuf.c | 60 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-9-stable/sbin/dhclient/ |
| D | errwarn.c | 52 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-9-stable/sys/nfsserver/ |
| D | nfs.h | 166 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-9-stable/sys/netinet6/ |
| D | ip6_var.h | 92 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 char * 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-9-stable/sys/dev/sfxge/ |
| D | sfxge_tx.c | 69 static int sfxge_tx_queue_tso(struct sfxge_txq *txq, struct mbuf *mbuf, 95 struct mbuf *m = stmp->u.mbuf; in sfxge_tx_qcomplete() 127 struct mbuf *mbuf, *get_next, **get_tailp; in sfxge_tx_qdpl_swizzle() local 139 mbuf = (void *)put; in sfxge_tx_qdpl_swizzle() 141 if (mbuf == NULL) in sfxge_tx_qdpl_swizzle() 145 get_tailp = &mbuf->m_nextpkt; in sfxge_tx_qdpl_swizzle() 150 struct mbuf *put_next; in sfxge_tx_qdpl_swizzle() 152 put_next = mbuf->m_nextpkt; in sfxge_tx_qdpl_swizzle() 153 mbuf->m_nextpkt = get_next; in sfxge_tx_qdpl_swizzle() 154 get_next = mbuf; in sfxge_tx_qdpl_swizzle() [all …]
|
| D | sfxge_rx.c | 171 static inline struct mbuf *sfxge_rx_alloc_mbuf(struct sfxge_softc *sc) in sfxge_rx_alloc_mbuf() 174 struct mbuf *m; in sfxge_rx_alloc_mbuf() 179 m = (struct mbuf *)uma_zalloc_arg(zone_mbuf, &args, M_DONTWAIT); in sfxge_rx_alloc_mbuf() 232 struct mbuf *m; in sfxge_rx_qfill() 236 KASSERT(rx_desc->mbuf == NULL, ("rx_desc->mbuf != NULL")); in sfxge_rx_qfill() 239 m = rx_desc->mbuf = sfxge_rx_alloc_mbuf(sc); in sfxge_rx_qfill() 280 static void __sfxge_rx_deliver(struct sfxge_softc *sc, struct mbuf *m) in __sfxge_rx_deliver() 293 struct mbuf *m = rx_desc->mbuf; in sfxge_rx_deliver() 314 __sfxge_rx_deliver(sc, rx_desc->mbuf); in sfxge_rx_deliver() 317 rx_desc->mbuf = NULL; in sfxge_rx_deliver() [all …]
|
| /freebsd-9-stable/sys/netinet/ |
| D | sctp_output.h | 44 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 …]
|
| D | ip_options.h | 52 int ip_checkrouteralert(struct mbuf *); 53 int ip_dooptions(struct mbuf *, int); 54 struct mbuf *ip_insertoptions(struct mbuf *, struct mbuf *, int *); 56 int ip_pcbopts(struct inpcb *, int, struct mbuf *); 57 void ip_stripoptions(struct mbuf *, struct mbuf *); 58 struct mbuf *ip_srcroute(struct mbuf *);
|
| D | ip_var.h | 61 struct mbuf *ipq_frags; /* to ip headers of fragments */ 212 int ip_fragment(struct ip *ip, struct mbuf **m_frag, int mtu, 214 void ip_forward(struct mbuf *m, int srcrt); 220 (*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *, 222 int ip_output(struct mbuf *, 223 struct mbuf *, struct route *, int, struct ip_moptions *, 227 struct mbuf * 228 ip_reass(struct mbuf *); 231 void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *, 232 struct mbuf *); [all …]
|
| D | sctputil.h | 50 struct mbuf *sctp_m_free(struct mbuf *m); 51 void sctp_m_freem(struct mbuf *m); 124 struct mbuf *m, 142 uint32_t sctp_calculate_len(struct mbuf *); 144 caddr_t sctp_m_getptr(struct mbuf *, int, int, uint8_t *); 147 sctp_get_next_param(struct mbuf *, int, 150 int sctp_add_pad_tombuf(struct mbuf *, int); 152 int sctp_pad_lastmbuf(struct mbuf *, int, struct mbuf *); 188 sctp_abort_association(struct sctp_inpcb *, struct sctp_tcb *, struct mbuf *, 190 struct sctphdr *, struct mbuf *, [all …]
|
| /freebsd-9-stable/sbin/pfctl/missing/altq/ |
| D | altq_classq.h | 56 struct mbuf *tail_; /* Tail of packet queue */ 77 extern void _addq(class_queue_t *, struct mbuf *); 78 extern struct mbuf *_getq(class_queue_t *); 79 extern struct mbuf *_getq_tail(class_queue_t *); 80 extern struct mbuf *_getq_random(class_queue_t *); 81 extern void _removeq(class_queue_t *, struct mbuf *); 89 _addq(class_queue_t *q, struct mbuf *m) in _addq() 91 struct mbuf *m0; in _addq() 102 static __inline struct mbuf * 105 struct mbuf *m, *m0; in _getq() [all …]
|
| /freebsd-9-stable/sys/contrib/altq/altq/ |
| D | altq_classq.h | 59 struct mbuf *tail_; /* Tail of packet queue */ 80 extern void _addq(class_queue_t *, struct mbuf *); 81 extern struct mbuf *_getq(class_queue_t *); 82 extern struct mbuf *_getq_tail(class_queue_t *); 83 extern struct mbuf *_getq_random(class_queue_t *); 84 extern void _removeq(class_queue_t *, struct mbuf *); 92 _addq(class_queue_t *q, struct mbuf *m) in _addq() 94 struct mbuf *m0; in _addq() 105 static __inline struct mbuf * 108 struct mbuf *m, *m0; in _getq() [all …]
|
| D | if_altq.h | 49 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-9-stable/sys/netgraph/bluetooth/hci/ |
| D | ng_hci_cmds.c | 60 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-9-stable/sys/xdr/ |
| D | xdr_mbuf.c | 65 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-9-stable/sys/netipsec/ |
| D | ipsec.h | 329 struct mbuf *m; 385 extern struct secpolicy *ipsec4_checkpolicy __P((struct mbuf *, u_int, u_int, 387 extern struct secpolicy * ipsec_getpolicybyaddr(struct mbuf *, u_int, 395 extern int ipsec_in_reject __P((struct secpolicy *, struct mbuf *)); 400 size_t len, struct mbuf **mp)); 402 extern int ipsec4_in_reject __P((struct mbuf *, struct inpcb *)); 409 extern size_t ipsec_hdrsiz __P((struct mbuf *, u_int, struct inpcb *)); 416 extern void ipsec_dumpmbuf __P((struct mbuf *)); 419 extern void ah4_input(struct mbuf *m, int off); 421 extern void esp4_input(struct mbuf *m, int off); [all …]
|
| /freebsd-9-stable/contrib/ipfilter/FreeBSD-2.2/ |
| D | ip_output.c.diffs | 10 + extern int (*fr_checkp) __P((struct ip *, int, struct ifnet *, int, struct mbuf **)); 18 __P((struct ifnet *, struct mbuf *, struct sockaddr_in *)); 20 __P((int, struct ip_moptions *, struct mbuf **)); 22 static int ip_pcbopts __P((struct mbuf **, struct mbuf *)); 24 __P((int, struct ip_moptions **, struct mbuf *)); 26 __P((struct ifnet *, struct mbuf *, struct sockaddr_in *)); 28 __P((int, struct ip_moptions *, struct mbuf **)); 30 static int ip_pcbopts __P((struct mbuf **, struct mbuf *)); 32 __P((int, struct ip_moptions **, struct mbuf *)); 41 + struct mbuf *m1 = m;
|
| /freebsd-9-stable/sys/kern/ |
| D | uipc_sockbuf.c | 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() 543 sbappendstream(struct sockbuf *sb, struct mbuf *m) in sbappendstream() 555 struct mbuf *m; in sbcheck() 556 struct mbuf *n = 0; in sbcheck() [all …]
|
| D | uipc_mbuf.c | 94 struct mbuf * 95 m_getm2(struct mbuf *m, int len, int how, short type, int flags) in m_getm2() 97 struct mbuf *mb, *nm = NULL, *mtail = NULL; in m_getm2() 157 m_freem(struct mbuf *mb) in m_freem() 186 m_extadd(struct mbuf *mb, caddr_t buf, u_int size, in m_extadd() 211 mb_free_ext(struct mbuf *m) in mb_free_ext() 287 mb_dupcl(struct mbuf *n, struct mbuf *m) in mb_dupcl() 314 m_demote(struct mbuf *m0, int all) in m_demote() 316 struct mbuf *m; in m_demote() 342 m_sanity(struct mbuf *m0, int sanitize) in m_sanity() [all …]
|
| /freebsd-9-stable/sys/dev/xen/netback/ |
| D | netback_unit_tests.c | 175 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 …]
|
| /freebsd-9-stable/sys/security/mac/ |
| D | mac_framework.h | 72 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 …]
|