Home
last modified time | relevance | path

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

123

/titanic_51/usr/src/boot/include/netinet/
H A Dip_var.h61 struct mbuf *ipq_frags; /* to ip headers of fragments */
69 * Structure stored in mbuf in inpcb.ip_options
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 **, struc
[all...]
H A Dudp_var.h56 struct mbuf;
58 typedef void(*udp_tun_func_t)(struct mbuf *, int off, struct inpcb *,
176 int udp_input(struct mbuf **, int *, int);
177 void udplite_input(struct mbuf *, int);
H A Din_pcb.h220 struct mbuf *inp4_options; /* (i) IP options */
225 struct mbuf *inp6_options;
685 void in_pcbgroup_update_mbuf(struct inpcb *, struct mbuf *);
696 struct mbuf *);
716 struct in_addr, u_int, int, struct ifnet *, struct mbuf *);
721 void in_pcbrehash_mbuf(struct inpcb *, struct mbuf *);
/titanic_51/usr/src/cmd/audio/utilities/
H A Dzmalloc.c104 caddr_t mbuf; in zmalloc() local
115 mbuf = mmap(0, size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in zmalloc()
118 if (mbuf == (caddr_t)-1) { in zmalloc()
123 (void) insert_bm(mbuf, size); in zmalloc()
125 return ((void *) mbuf); in zmalloc()
129 zfree(void* mbuf) in zfree() argument
133 if (mbuf == bm_empty) in zfree()
136 if (mbuf != NULL) { in zfree()
137 if (size = delete_bm((caddr_t)mbuf)) { in zfree()
138 if (munmap((char *)mbuf, siz in zfree()
[all...]
/titanic_51/usr/src/uts/common/fs/smbsrv/
H A Dsmb2_signing.c27 * The routines calculate the signature of a SMB message in an mbuf chain.
164 struct mbuf *mbuf; in smb2_sign_calc() local
194 * Advance to the src mbuf where we start digesting. in smb2_sign_calc()
196 mbuf = mbc->chain; in smb2_sign_calc()
197 while (mbuf != NULL && (offset >= mbuf->m_len)) { in smb2_sign_calc()
198 offset -= mbuf->m_len; in smb2_sign_calc()
199 mbuf = mbuf in smb2_sign_calc()
[all...]
H A Dsmb_mbuf_util.c136 * A pointer to the head of the mbuf list is returned.
138 struct mbuf *
141 struct mbuf *mhead = 0; in smb_mbuf_get()
142 struct mbuf *m = 0; in smb_mbuf_get()
185 struct mbuf *
213 * Trim an mbuf chain to nbytes.
216 smb_mbuf_trim(struct mbuf *mhead, int nbytes) in smb_mbuf_trim()
218 struct mbuf *m = mhead; in smb_mbuf_trim()
237 struct mbuf *m = (MBC)->chain; in MBC_LENGTH()
263 struct mbuf * in MBC_INIT()
[all...]
H A Dsmb_signing.c27 * The routines calculate the signature of a SMB message in an mbuf chain.
233 struct mbuf *mbuf = mbc->chain; in smb_sign_calc() local
289 while (mbuf != NULL && (offset >= mbuf->m_len)) { in smb_sign_calc()
290 offset -= mbuf->m_len; in smb_sign_calc()
291 mbuf = mbuf->m_next; in smb_sign_calc()
293 if (mbuf != NULL && (size = (mbuf in smb_sign_calc()
[all...]
/titanic_51/usr/src/cmd/sendmail/src/
H A Dmacro.c567 static char mbuf[2]; local
584 mbuf[0] = n;
585 mbuf[1] = '\0';
586 return mbuf;
614 char mbuf[MAXMACNAMELEN + 1]; local
648 bp = mbuf;
649 while (*++p != '\0' && *p != '}' && bp < &mbuf[sizeof(mbuf) - 1])
660 syserr("Unbalanced { on %s", mbuf); /* missing } */
665 mbuf, (in
[all...]
/titanic_51/usr/src/lib/libsmbfs/smb/
H A Dmbuf.c32 * $Id: mbuf.c,v 1.3 2004/12/13 00:25:22 lindak Exp $
57 * mbuf header and the start of the data so we can
62 #define M_BASESIZE (sizeof (struct mbuf) + 8)
68 m_get(int len, struct mbuf **mpp) in m_get()
70 struct mbuf *m; in m_get()
88 m_free(struct mbuf *m) in m_free()
94 m_freem(struct mbuf *m0) in m_freem()
96 struct mbuf *m; in m_freem()
106 m_totlen(struct mbuf *m0) in m_totlen()
108 struct mbuf * in m_totlen()
[all...]
H A Dprivate.h120 int m_getm(struct mbuf *, int, struct mbuf **);
121 int m_lineup(struct mbuf *, struct mbuf **);
122 size_t m_totlen(struct mbuf *);
H A Dacl_api.c78 struct mbuf *m; in smbfs_acl_iocget()
112 struct mbuf *m; in smbfs_acl_iocset()
/titanic_51/usr/src/cmd/msgfmt/
H A Dcheck_header.c52 get_one_line(char **bufhead, char **mbuf, size_t *fsize) in get_one_line() argument
55 char *p = *mbuf; in get_one_line()
80 *mbuf = p; in get_one_line()
90 char *mbuf, *p, *buf; in check_gnu() local
100 mbuf = addr; in check_gnu()
103 ln_size = get_one_line(&linebuf, &mbuf, &size); in check_gnu()
111 ln_size = get_one_line(&linebuf, &mbuf, &size); in check_gnu()
152 ln_size = get_one_line(&linebuf, &mbuf, &size); in check_gnu()
295 ln_size = get_one_line(&linebuf, &mbuf, &size); in check_gnu()
H A Dmsgfmt.c206 char *mbuf, *addr; in read_psffm() local
266 mbuf = addr; in read_psffm()
272 ln_size = _mbsntowcs(&linebufhead, &mbuf, &fsize); in read_psffm()
1000 * read one line from *mbuf,
1010 * **mbuf - address of a variable that is the pointer
1019 * one line in wchar_t from *mbuf and sets the address
1021 * **mbuf - _mbsntowcs reads one line from *mbuf and sets *mbuf
1027 _mbsntowcs(wchar_t **bufhead, char **mbuf, size_ argument
[all...]
/titanic_51/usr/src/uts/common/smbsrv/
H A Dmbuf.h64 * This mbuf simulation should be replaced with (native) mblk_t support.
81 * includes overhead. An mbuf may add a single "mbuf cluster" of size
94 * mtod(m,t) - convert mbuf pointer to data pointer of correct type
99 /* header at beginning of each mbuf: */
101 struct mbuf *mh_next; /* next buffer in chain */
102 struct mbuf *mh_nextpkt; /* next chain in queue/record */
103 int mh_len; /* amount of data in this mbuf */
105 short mh_type; /* type of data in this mbuf */
109 /* record/packet header in first mbuf o
122 typedef struct mbuf { global() struct
134 __anonf4ed7886010ambuf global() argument
148 M_datmbuf global() argument
[all...]
/titanic_51/usr/src/boot/include/net/
H A Dethernet.h41 * Ethernet-specific mbuf flags.
368 * offload for VLAN tag processing. It will check the mbuf to see if it has
386 struct mbuf;
393 extern void ether_demux(struct ifnet *, struct mbuf *);
397 extern int ether_output(struct ifnet *, struct mbuf *,
399 extern int ether_output_frame(struct ifnet *, struct mbuf *);
401 void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
403 struct mbuf *ether_vlanencap(struct mbuf *, uint16_t);
/titanic_51/usr/src/cmd/vi/port/
H A Dex_vmain.c611 unsigned char mbuf[2049]; local
641 mbuf[tmp+0] = ' ';
650 mbuf[tmp] = 'r';
652 mbuf[tmp+1] = *ccursor++;
661 tmp1 = mbuf[tmp+1];
664 mbuf[tmp+1] = tolower((unsigned char)tmp1);
666 mbuf[tmp+1] = toupper((unsigned char)tmp1);
669 len = wctomb((char *)(mbuf + tmp + 1),
672 len = wctomb((char *)(mbuf + tmp + 1),
682 mbuf[tm
[all...]
/titanic_51/usr/src/cmd/strings/
H A Dstrings.c393 char mbuf[MB_LEN_MAX + 1]; local
432 mbuf[0] = c;
435 (mbuf[len] = getc(stdin)) == -1)
438 mbuf[len] = 0;
440 if ((len1 = mbtowc(&wc, mbuf, len)) <= 0) {
464 buf[cc] = mbuf[i];
470 (void) ungetc(mbuf[len], stdin);
/titanic_51/usr/src/cmd/sendmail/db/db/
H A Ddb.c112 char *real_name, mbuf[512]; local
330 if ((ret = __os_read(fd, mbuf, sizeof(mbuf), &nr)) != 0)
339 if (nr != sizeof(mbuf)) {
381 retry: switch (((BTMETA *)mbuf)->magic) {
387 btm = (BTMETA *)mbuf;
426 hashm = (HASHHDR *)mbuf;
456 M_32_SWAP(((BTMETA *)mbuf)->magic);
/titanic_51/usr/src/cmd/bc/
H A Dbc.y702 char mbuf[LINE_MAX]; in getch() local
724 (void) snprintf(mbuf, sizeof (mbuf), "can't open input file %s", in getch()
728 yyerror(mbuf); in getch()
847 char mbuf[LINE_MAX]; in yyinit() local
856 (void) snprintf(mbuf, sizeof (mbuf), "can't open input file %s", in yyinit()
860 yyerror(mbuf); in yyinit()
/titanic_51/usr/src/lib/libbc/inc/include/net/
H A Dif.h25 * Here m is the mbuf chain to be sent and dst is the destination address.
55 struct mbuf *ifq_head;
56 struct mbuf *ifq_tail;
135 struct mbuf *n; \
/titanic_51/usr/src/ucbcmd/shutdown/
H A Dshutdown.c91 char mbuf[BUFSIZ]; variable
582 (void) sprintf(mbuf, in rwarn()
586 bufp = mbuf + strlen(mbuf); in rwarn()
600 bufp = mbuf + strlen(mbuf); in rwarn()
605 rprintf(host, mbuf); in rwarn()
/titanic_51/usr/src/cmd/ipf/tools/
H A Dip_fil.c157 static int no_output __P((struct ifnet *, struct mbuf *,
159 static int write_output __P((struct ifnet *, struct mbuf *,
163 static int no_output __P((struct ifnet *, struct mbuf *,
165 static int write_output __P((struct ifnet *, struct mbuf *,
168 static int no_output __P((struct ifnet *, struct mbuf *,
170 static int write_output __P((struct ifnet *, struct mbuf *,
513 struct mbuf *m;
532 struct mbuf *m;
/titanic_51/usr/src/uts/common/netsmb/
H A Dmchain.h92 * <sys/mbuf.h> in the Darwin code. These are mostly just
99 * BSD-style mbuf "shim" for kernel code. Note, this
111 * One big difference: the mbuf payload is:
118 * struct mbuf struct mblk
150 * BSD-style mbuf work-alike, for user-level.
151 * See libsmbfs mbuf.c
153 typedef struct mbuf { struct
157 struct mbuf *m_next; argument
211 mbuf_t *mb_top; /* head of mbuf chain */
212 mbuf_t *mb_cur; /* current mbuf */
[all...]
/titanic_51/usr/src/uts/common/netinet/
H A Din_pcb.h41 struct mbuf *inp_options; /* IP options */
/titanic_51/usr/src/cmd/csh/
H A Dsh.dol.c632 tchar obuf[BUFSIZ], lbuf[BUFSIZ], mbuf[BUFSIZ]; in heredoc() local
702 Dcp = lbuf; Dvp = Dv + 1; mbp = mbuf; mcnt = BUFSIZ - 4; in heredoc()
729 mbp = mbuf; in heredoc()
737 vp = dobackp(mbuf, 1); in heredoc()

123