Searched refs:mbuf (Results 1 - 25 of 256) sorted by relevance

1234567891011

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Din_gif.h69 void in_gif_input(struct mbuf *, int);
70 int in_gif_output(struct ifnet *, int, struct mbuf *, struct rtentry *);
71 int gif_encapcheck4(const struct mbuf *, int, int, void *);
H A Dif_atm.h70 struct mbuf;
75 int atmresolve(struct rtentry *, struct mbuf *, struct sockaddr *,
H A Dip_encap.h73 int (*func)(const struct mbuf *, int, int, void *);
79 void encap4_input(struct mbuf *, int);
80 int encap6_input(struct mbuf **, int *);
85 int (*)(const struct mbuf *, int, int, void *),
88 void *encap_getarg(struct mbuf *);
H A Dip_var.h99 struct mbuf *ipq_frags; /* to ip headers of fragments */
117 * Structure stored in mbuf in inpcb.ip_options
145 /* mbuf tag for ip_forwarding info */
231 extern int (*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *,
233 extern int ip_output(struct mbuf *, struct mbuf *, struct route *, int,
235 extern int ip_output_list(struct mbuf *, int, struct mbuf *, struct route *,
239 void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
240 struct mbuf *);
[all...]
H A Dip_divert.h51 * Return the divert cookie associated with the mbuf; if any.
59 divert_find_cookie(struct mbuf *m)
67 * Return the divert info associated with the mbuf; if any.
75 divert_find_info(struct mbuf *m)
83 extern void div_input(struct mbuf *, int);
88 extern void divert_packet(struct mbuf *m, int incoming, int port, int rule);
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Desp6.h42 extern int esp6_output(struct mbuf *, u_char *, struct mbuf *,
44 extern int esp6_input(struct mbuf **, int *);
H A Din6_gif.h40 int in6_gif_input(struct mbuf **, int *);
41 int in6_gif_output(struct ifnet *, int, struct mbuf *, struct rtentry *);
42 int gif_encapcheck6(const struct mbuf *, int, int, void *);
H A Dipcomp6.h43 extern int ipcomp6_input(struct mbuf **, int *);
44 extern int ipcomp6_output(struct mbuf *, u_char *, struct mbuf *,
H A Dipcomp.h59 int (*compress)(struct mbuf *, struct mbuf *, size_t *);
60 int (*decompress)(struct mbuf *, struct mbuf *, size_t *);
66 extern void ipcomp4_input(struct mbuf *, int);
67 extern int ipcomp4_output(struct mbuf *, struct secasvar *);
H A Dah6.h44 extern int ah6_input(struct mbuf **, int *);
45 extern int ah6_output(struct mbuf *, u_char *, struct mbuf *,
47 extern int ah6_calccksum(struct mbuf *, caddr_t, size_t,
H A Dudp6_var.h75 int udp6_input(struct mbuf **, int *);
76 int udp6_output(struct inpcb *inp, struct mbuf *m,
77 struct sockaddr *addr, struct mbuf *control,
H A Desp_rijndael.h37 int esp_cbc_decrypt_aes(struct mbuf *, size_t, struct secasvar *,
40 esp_cbc_encrypt_aes(struct mbuf *, size_t, size_t, struct secasvar *,
H A Dip6_var.h105 struct mbuf *ip6af_m;
112 #define IP6_REASS_MBUF(ip6af) (*(struct mbuf **)&((ip6af)->ip6af_m))
134 struct mbuf *ip6po_m; /* Pointer to mbuf storing the data */
184 u_quad_t ip6s_m1; /* one mbuf */
185 u_quad_t ip6s_m2m[32]; /* two or more mbuf */
186 u_quad_t ip6s_mext1; /* one ext mbuf */
187 u_quad_t ip6s_mext2m; /* two or more ext mbuf */
306 int icmp6_dgram_send(struct socket *, int , struct mbuf *, struct sockaddr *, struct mbuf *, struc
[all...]
H A Dip6protosw.h83 struct mbuf;
112 struct mbuf *ip6c_m; /* start of mbuf chain */
129 int (*pr_input)(struct mbuf **, int *);
131 int (*pr_output)(struct mbuf *m, struct socket *so,
132 struct sockaddr_in6 *, struct mbuf *);
139 int (*pr_usrreq)(struct socket *, int, struct mbuf *,
140 struct mbuf *, struct mbuf *, struct proc *);
H A Dipsec6.h54 extern struct secpolicy *ipsec6_getpolicybysock(struct mbuf *, u_int,
56 extern struct secpolicy *ipsec6_getpolicybyaddr(struct mbuf *, u_int, int,
61 extern int ipsec6_in_reject_so(struct mbuf *, struct socket *);
66 struct mbuf **mp);
67 extern int ipsec6_in_reject(struct mbuf *, struct inpcb *);
71 extern size_t ipsec6_hdrsiz(struct mbuf *, u_int, struct inpcb *);
77 struct mbuf *, struct secpolicy *, int, int *);
80 extern int ipsec6_tunnel_validate(struct mbuf *, int, u_int,
H A Desp.h82 int (*decrypt)(struct mbuf *, size_t,
84 int (*encrypt)(struct mbuf *, size_t, size_t,
98 extern int esp4_output(struct mbuf *, struct secasvar *);
99 extern void esp4_input(struct mbuf *, int off);
103 extern int esp_auth(struct mbuf *, size_t, size_t,
H A Dah.h85 extern void ah4_input(struct mbuf *, int);
86 extern int ah4_output(struct mbuf *, struct secasvar *);
87 extern int ah4_calccksum(struct mbuf *, caddr_t, size_t,
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkpi_mbuf.c33 #include <sys/mbuf.h>
46 void* mbuf_data(mbuf_t mbuf) argument
48 return mbuf->m_data;
51 void* mbuf_datastart(mbuf_t mbuf) argument
53 if (mbuf->m_flags & M_EXT)
54 return mbuf->m_ext.ext_buf;
55 if (mbuf->m_flags & M_PKTHDR)
56 return mbuf->m_pktdat;
57 return mbuf->m_dat;
60 errno_t mbuf_setdata(mbuf_t mbuf, voi argument
73 mbuf_align_32(mbuf_t mbuf, size_t len) argument
88 mbuf_get(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument
96 mbuf_gethdr(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument
105 mbuf_attachcluster(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf, caddr_t extbuf, void (*extfree)(caddr_t , u_int, caddr_t), size_t extsize, caddr_t extarg) argument
166 mbuf_getcluster(mbuf_how_t how, mbuf_type_t type, size_t size, mbuf_t* mbuf) argument
210 mbuf_mclget(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument
239 mbuf_getpacket(mbuf_how_t how, mbuf_t *mbuf) argument
256 mbuf_free(mbuf_t mbuf) argument
261 mbuf_freem(mbuf_t mbuf) argument
266 mbuf_freem_list(mbuf_t mbuf) argument
271 mbuf_leadingspace(const mbuf_t mbuf) argument
276 mbuf_trailingspace(const mbuf_t mbuf) argument
316 mbuf_pullup(mbuf_t *mbuf, size_t len) argument
334 mbuf_adj(mbuf_t mbuf, int len) argument
385 mbuf_mclhasreference(mbuf_t mbuf) argument
395 mbuf_next(const mbuf_t mbuf) argument
400 mbuf_setnext(mbuf_t mbuf, mbuf_t next) argument
409 mbuf_nextpkt(const mbuf_t mbuf) argument
414 mbuf_setnextpkt(mbuf_t mbuf, mbuf_t nextpkt) argument
419 mbuf_len(const mbuf_t mbuf) argument
424 mbuf_setlen(mbuf_t mbuf, size_t len) argument
429 mbuf_maxlen(const mbuf_t mbuf) argument
436 mbuf_type(const mbuf_t mbuf) argument
441 mbuf_settype(mbuf_t mbuf, mbuf_type_t new_type) argument
450 mbuf_flags(const mbuf_t mbuf) argument
455 mbuf_setflags(mbuf_t mbuf, mbuf_flags_t flags) argument
464 mbuf_setflags_mask(mbuf_t mbuf, mbuf_flags_t flags, mbuf_flags_t mask) argument
483 mbuf_pkthdr_len(const mbuf_t mbuf) argument
488 mbuf_pkthdr_setlen(mbuf_t mbuf, size_t len) argument
493 mbuf_pkthdr_adjustlen(mbuf_t mbuf, int amount) argument
498 mbuf_pkthdr_rcvif(const mbuf_t mbuf) argument
504 mbuf_pkthdr_setrcvif(mbuf_t mbuf, ifnet_t ifnet) argument
511 mbuf_pkthdr_header(const mbuf_t mbuf) argument
516 mbuf_pkthdr_setheader(mbuf_t mbuf, void *header) argument
522 mbuf_inbound_modified(mbuf_t mbuf) argument
532 mbuf_outbound_finalize(mbuf_t mbuf, u_long protocol_family, size_t protocol_offset) argument
576 mbuf_set_vlan_tag( mbuf_t mbuf, u_int16_t vlan) argument
587 mbuf_get_vlan_tag( mbuf_t mbuf, u_int16_t *vlan) argument
600 mbuf_clear_vlan_tag( mbuf_t mbuf) argument
613 mbuf_set_csum_requested( mbuf_t mbuf, mbuf_csum_request_flags_t request, u_int32_t value) argument
626 mbuf_get_csum_requested( mbuf_t mbuf, mbuf_csum_request_flags_t *request, u_int32_t *value) argument
641 mbuf_clear_csum_requested( mbuf_t mbuf) argument
655 mbuf_set_csum_performed( mbuf_t mbuf, mbuf_csum_performed_flags_t performed, u_int32_t value) argument
668 mbuf_get_csum_performed( mbuf_t mbuf, mbuf_csum_performed_flags_t *performed, u_int32_t *value) argument
680 mbuf_clear_csum_performed( mbuf_t mbuf) argument
690 mbuf_inet_cksum(mbuf_t mbuf, int protocol, u_int32_t offset, u_int32_t length, u_int16_t *csum) argument
703 mbuf_inet6_cksum(mbuf_t mbuf, int protocol, u_int32_t offset, u_int32_t length, u_int16_t *csum) argument
715 mbuf_inet6_cksum(__unused mbuf_t mbuf, __unused int protocol, __unused u_int32_t offset, __unused u_int32_t length, __unused u_int16_t *csum) argument
865 mbuf_tag_allocate( mbuf_t mbuf, mbuf_tag_id_t id, mbuf_tag_type_t type, size_t length, mbuf_how_t how, void** data_p) argument
905 mbuf_tag_find( mbuf_t mbuf, mbuf_tag_id_t id, mbuf_tag_type_t type, size_t* length, void** data_p) argument
939 mbuf_tag_free( mbuf_t mbuf, mbuf_tag_id_t id, mbuf_tag_type_t type) argument
982 mbuf_allocpacket(mbuf_how_t how, size_t packetlen, unsigned int *maxchunks, mbuf_t *mbuf) argument
1010 mbuf_allocpacket_list(unsigned int numpkts, mbuf_how_t how, size_t packetlen, unsigned int *maxchunks, mbuf_t *mbuf) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dkpi_mbuf.h34 most common usage of an mbuf is to store a packet or data on a
35 socket waiting to be sent or received. The mbuf is a contiguous
37 than would fit in an mbuf, external data is used. Most mbufs with
53 @abstract Constants defining mbuf flags. Only the flags listed below
55 @constant MBUF_EXT Indicates this mbuf has external data.
56 @constant MBUF_PKTHDR Indicates this mbuf has a packet header.
57 @constant MBUF_EOR Indicates this mbuf is the end of a record.
90 structures. The mbuf type is used to store what sort of data the
91 mbuf contains.
92 @constant MBUF_MT_FREE Indicates the mbuf i
[all...]
H A Dmbuf.h70 * @(#)mbuf.h 8.3 (Berkeley) 1/21/94
97 * includes overhead. An mbuf may add a single "mbuf cluster" of size
109 #define NMBPCL (sizeof(union mcluster) / sizeof(struct mbuf))
113 * mtod(m,t) - convert mbuf pointer to data pointer of correct type
114 * dtom(x) - convert data pointer within mbuf to mbuf pointer (XXX)
119 /* header at beginning of each mbuf: */
121 struct mbuf *mh_next; /* next buffer in chain */
122 struct mbuf *mh_nextpk
178 struct mbuf { struct
[all...]
H A Dun.h94 struct mbuf;
98 int uipc_usrreq(struct socket *so, int req, struct mbuf *m,
99 struct mbuf *nam, struct mbuf *control);
102 void unp_dispose(struct mbuf *m);
103 int unp_externalize(struct mbuf *rights);
/macosx-10.5.8/xnu-1228.15.4/bsd/netkey/
H A Dkeysock.h80 extern int key_output(struct mbuf *, struct socket* so);
82 extern int key_output(struct mbuf *, ...);
85 int, struct mbuf *, struct mbuf *, struct mbuf *);
88 extern int key_sendup_mbuf(struct socket *, struct mbuf *, int);
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dbpf_compat.h69 * and free with mbuf clusters. We store a pointer to the mbuf in the first
70 * word of the mbuf and return 8 bytes passed the start of data (for double
72 * a fixed offset from the associated mbuf. Sorry for this kludge.
75 #define free(cp, type) m_free(*(struct mbuf **)(cp - 8))
H A Dif_pppvar.h103 struct mbuf *sc_npqueue; /* output packets not to be sent yet */
104 struct mbuf **sc_npqtail; /* ptr to last next ptr in npqueue */
124 struct mbuf *sc_outm; /* mbuf chain currently being output */
125 struct mbuf *sc_m; /* pointer to input mbuf chain */
126 struct mbuf *sc_mc; /* pointer to current input mbuf */
127 char *sc_mp; /* ptr to next char in input mbuf */
141 int pppoutput(struct ifnet *ifp, struct mbuf *m
[all...]
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_net.c70 #include <sys/mbuf.h>
81 mac_mbuf_to_label(struct mbuf *mbuf) argument
86 if (mbuf == NULL)
89 if ((mbuf->m_flags & M_PKTHDR) == 0) {
94 tag = m_tag_locate(mbuf, KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_MACLABEL,
98 __func__, mbuf->m_flags);
238 mac_mbuf_label_copy(struct mbuf *m_from, struct mbuf *m_to)
302 mac_mbuf_label_init(struct mbuf *
327 mac_mbuf_label_associate_bpfdesc(struct bpf_d *bpf_d, struct mbuf *mbuf) argument
341 mac_mbuf_label_associate_ifnet(struct ifnet *ifp, struct mbuf *mbuf) argument
354 mac_mbuf_label_associate_linklayer(struct ifnet *ifp, struct mbuf *mbuf) argument
394 mac_mbuf_label_associate_socket(struct socket *socket, struct mbuf *mbuf) argument
409 mac_ifnet_check_transmit(struct ifnet *ifp, struct mbuf *mbuf, int family, int type) argument
[all...]

Completed in 82 milliseconds

1234567891011