Searched refs:off (Results 1 - 25 of 100) sorted by relevance

1234

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Ddest6.c62 int off = *offp, dstoptlen, optlen; local
71 IP6_EXTHDR_CHECK(m, off, sizeof(*dstopts), return IPPROTO_DONE);
72 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off);
74 IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, sizeof(*dstopts));
81 IP6_EXTHDR_CHECK(m, off, dstoptlen, return IPPROTO_DONE);
82 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off);
84 IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, dstoptlen);
88 off += dstoptlen;
118 *offp = off;
H A Dip6_input.c359 int off = sizeof(struct ip6_hdr), nest; local
782 if (ip6_hopopts_input(&plen, &rtalert, &m, &off)) {
924 if (m->m_pkthdr.len < off) {
973 filter->ipf_filter.cookie, (mbuf_t*)&m, off, nxt);
989 nxt = (*ip6_protox[nxt]->pr_input)(&m, &off);
993 nxt = (*ip6_protox[nxt]->pr_input)(&m, &off);
1043 int off = *offp, hbhlen; local
1049 IP6_EXTHDR_CHECK(m, off, sizeof(*hbh), return -1);
1050 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off);
1053 IP6_EXTHDR_CHECK(m, off, hbhle
1406 int proto, off, nxt; local
1438 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr); local
[all...]
H A Desp_input.c112 esp4_input(m, off)
114 int off;
132 if (off % 4 != 0 || m->m_pkthdr.len % 4 != 0) {
134 "(off=%d, pktlen=%d)\n", off, m->m_pkthdr.len));
139 if (m->m_len < off + ESPMAXLEN) {
140 m = m_pullup(m, off + ESPMAXLEN);
150 esp = (struct esp *)(((u_int8_t *)ip) + off);
229 if (m->m_pkthdr.len < off + ESPMAXLEN + siz) {
243 if (esp_auth(m, off,
563 int off = *offp; local
980 int off; local
[all...]
H A Dipcomp_input.c85 ipcomp4_input(struct mbuf *m, int off) argument
99 if (m->m_pkthdr.len < off + sizeof(struct ipcomp)) {
106 md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
155 newlen = m->m_pkthdr.len - off;
173 m->m_pkthdr.len = off + newlen;
217 ip_proto_dispatch_in(m, off, nxt, 0);
241 int off; local
253 off = *offp;
255 md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
293 newlen = m->m_pkthdr.len - off;
[all...]
H A Dah_input.c100 ah4_input(struct mbuf *m, int off) argument
116 if (m->m_len < off + sizeof(struct newah)) {
117 m = m_pullup(m, off + sizeof(struct newah));
127 ah = (struct ah *)(((caddr_t)ip) + off);
130 IP6_EXTHDR_GET(ah, struct ah *, m, off, sizeof(struct newah));
227 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1) {
228 m = m_pullup(m, off + sizeof(struct ah) + sizoff + siz1);
236 ah = (struct ah *)(((caddr_t)ip) + off);
239 IP6_EXTHDR_GET(ah, struct ah *, m, off,
331 if (m->m_len < off
563 int off = *offp; local
949 int off; local
[all...]
H A Droute6.c60 int off = *offp, rhlen; local
74 IP6_EXTHDR_CHECK(m, off, sizeof(*rh), return IPPROTO_DONE);
76 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off);
79 IP6_EXTHDR_GET(rh, struct ip6_rthdr *, m, off, sizeof(*rh));
96 IP6_EXTHDR_CHECK(m, off, rhlen, return IPPROTO_DONE);
106 IP6_EXTHDR_GET(rh, struct ip6_rthdr *, m, off, rhlen);
H A Din6_cksum.c89 * off is a offset where TCP/UDP/ICMP6 header starts.
95 inet6_cksum(struct mbuf *m, unsigned int nxt, unsigned int off, argument
121 if (m->m_pkthdr.len < off + len) {
122 panic("inet6_cksum: mbuf len (%d) < off+len (%d+%d)\n",
123 m->m_pkthdr.len, off, len);
157 while (m != NULL && off > 0) {
158 if (m->m_len <= off)
159 off -= m->m_len;
164 w = (u_int16_t *)(mtod(m, u_char *) + off);
165 mlen = m->m_len - off;
[all...]
H A Dip6_fw.c188 int *off, int *nxt, u_short *offset));
194 struct ifnet *rif, struct ifnet *oif, int off, int nxt));
273 is_icmp6_query(struct ip6_hdr *ip6, int off) argument
278 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
293 int *off, int *nxt, u_short *offset)
304 *off = sizeof(struct ip6_hdr);
306 while (*off < len) {
307 ip6e = (struct ip6_ext *)((caddr_t) ip6 + *off);
308 if ((*m)->m_len < *off + sizeof(*ip6e))
313 if ((*m)->m_len >= *off
292 ip6opts_match(struct ip6_hdr **pip6, struct ip6_fw *f, struct mbuf **m, int *off, int *nxt, u_short *offset) argument
410 ip6fw_report(struct ip6_fw *f, struct ip6_hdr *ip6, struct ifnet *rif, struct ifnet *oif, int off, int nxt) argument
559 int off = sizeof(struct ip6_hdr), nxt = ip6->ip6_nxt; local
[all...]
H A Dah_core.c1133 ah_update_mbuf(m, off, len, algo, algos)
1135 int off;
1144 if (off + len <= m->m_len) {
1145 (algo->update)(algos, mtod(m, caddr_t) + off, len);
1150 if (off < n->m_len)
1153 off -= n->m_len;
1162 if (n->m_len - off < len)
1163 tlen = n->m_len - off;
1167 (algo->update)(algos, mtod(n, caddr_t) + off, tlen);
1170 off
1190 int off; local
1433 int newoff, off; local
[all...]
H A Desp_core.c293 __unused size_t off, /* offset to ESP header */
305 __unused size_t off, /* offset to ESP header */
676 esp_cbc_decrypt(m, off, sav, algo, ivlen)
678 size_t off;
718 ivoff = off + sizeof(struct esp);
719 bodyoff = off + sizeof(struct esp) + ivlen;
728 ivoff = off + sizeof(struct esp);
729 bodyoff = off + sizeof(struct esp) + sizeof(u_int32_t);
733 ivoff = off + sizeof(struct newesp);
734 bodyoff = off
291 esp_null_decrypt( __unused struct mbuf *m, __unused size_t off, __unused struct secasvar *sav, __unused const struct esp_algorithm *algo, __unused int ivlen) argument
303 esp_null_encrypt( __unused struct mbuf *m, __unused size_t off, __unused size_t plen, __unused struct secasvar *sav, __unused const struct esp_algorithm *algo, __unused int ivlen) argument
875 esp_cbc_encrypt( struct mbuf *m, size_t off, __unused size_t plen, struct secasvar *sav, const struct esp_algorithm *algo, int ivlen) argument
1090 size_t off; local
[all...]
H A Desp.h99 extern void esp4_input(struct mbuf *, int off);
H A Desp_rijndael.c94 * off = offset to ESP header
112 esp_cbc_decrypt_aes(m, off, sav, algo, ivlen)
114 size_t off;
140 ivoff = off + sizeof(struct esp);
141 bodyoff = off + sizeof(struct esp) + ivlen;
143 ivoff = off + sizeof(struct newesp);
144 bodyoff = off + sizeof(struct newesp) + ivlen;
273 size_t off,
299 ivoff = off + sizeof(struct esp);
300 bodyoff = off
271 esp_cbc_encrypt_aes( struct mbuf *m, size_t off, __unused size_t plen, struct secasvar *sav, const struct esp_algorithm *algo, int ivlen) argument
[all...]
H A Dicmp6.c224 int off; local
273 off = ip6_lasthdr(m, 0, IPPROTO_IPV6, &nxt);
274 if (off >= 0 && nxt == IPPROTO_ICMPV6) {
278 IP6_EXTHDR_CHECK(m, 0, off + sizeof(struct icmp6_hdr), return);
279 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
281 IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off,
374 int off = *offp; local
379 IP6_EXTHDR_CHECK(m, off, sizeof(struct icmp6_hdr), return IPPROTO_DONE);
398 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
400 IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeo
[all...]
H A Dudp6_usrreq.c166 struct sockaddr_in6 *udp_in6, struct mbuf *n, int off)
180 m_adj(n, off);
198 int off = *offp; local
203 IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), return IPPROTO_DONE);
217 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6);
218 uh = (struct udphdr *)((caddr_t)ip6 + off);
233 else if (in6_cksum(m, IPPROTO_UDP, off, ulen) != 0) {
347 off + sizeof (struct udphdr));
445 m_adj(m, off + sizeof(struct udphdr));
475 int off local
165 udp6_append(struct inpcb *last, struct ip6_hdr *ip6, struct sockaddr_in6 *udp_in6, struct mbuf *n, int off) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Duipc_mbuf2.c119 * ensure that [off, off + len) is contiguous on the mbuf chain "m".
120 * packet chain before "off" is kept untouched.
129 m_pulldown(struct mbuf *m, int off, int len, int *offp) argument
154 if (off + len > MHLEN)
162 if (dlen >= off + len)
168 if (mlen >= off + len)
176 prevlen = off + len;
182 if (off + len > MCLBYTES)
189 prevlen = off
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip6.h256 #define IP6_EXTHDR_CHECK(m, off, hlen, action) \
260 ((m)->m_len < (off) + (hlen)) && \
261 (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
265 if ((m)->m_len < (off) + (hlen)) { \
271 if ((m)->m_len < (off) + (hlen)) { \
278 if ((m)->m_len < (off) + (hlen)) { \
288 * IP6_EXTHDR_GET ensures that intermediate protocol header (from "off" to
297 #define IP6_EXTHDR_GET(val, typ, m, off, len) \
301 if ((m)->m_len >= (off) + (len)) \
302 (val) = (typ)(mtod((m), caddr_t) + (off)); \
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/
H A Dkdp_udp.c86 unsigned int off, len; member in struct:__anon829
384 pkt.off -= sizeof (struct udpiphdr);
387 bcopy((char *)&pkt.data[pkt.off], (char *)ui, sizeof(*ui));
389 ui = (struct udpiphdr *)&pkt.data[pkt.off];
403 bcopy((char *)ui, (char *)&pkt.data[pkt.off], sizeof(*ui));
404 bcopy((char *)&pkt.data[pkt.off], (char *)ip, sizeof(*ip));
406 ip = (struct ip *)&pkt.data[pkt.off];
416 bcopy((char *)ip, (char *)&pkt.data[pkt.off], sizeof(*ip));
421 pkt.off -= sizeof (struct ether_header);
423 eh = (struct ether_header *)&pkt.data[pkt.off];
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dmcount.s53 rlwinm r9,r9,0,MSR_FP_BIT+1,MSR_FP_BIT-1 ; Force floating point off
54 rlwinm r9,r9,0,MSR_VEC_BIT+1,MSR_VEC_BIT-1 ; Force vectors off
55 rlwinm r8,r9,0,MSR_EE_BIT+1,MSR_EE_BIT-1 ; Turn off interruptions
62 cmplw r5,r6 ; is mount off
63 beq mcount_ret ; return if off
H A Ddb_asm.s51 /* Switch off data translations */
55 andc r6,r6,r7 ; Force FP and vec off
57 andc r7,r6,r7 ; Force DR off
59 isync /* Ensure data translations are off */
104 isync /* Ensure data translations are off */
H A DAltiAssist.s47 ; 1) All general context saved, interrupts off, translation off
84 vor v1,v1,v0 ; Turn off Java mode
86 mtvscr v1 ; Set Java mode off
/macosx-10.5.8/xnu-1228.15.4/iokit/Kernel/
H A DIOKitDebug.cpp197 OSNumber * off; local
199 off = OSNumber::withNumber( value, 32 );
200 if( !off)
203 dict->setObject( name, off );
204 off->release();
/macosx-10.5.8/xnu-1228.15.4/osfmk/ddb/
H A Ddb_aout.h60 db_addr_t off,
H A Ddb_coff.h81 db_addr_t off,
H A Ddb_sym.c817 db_addr_t off,
828 if (off >= db_maxval || off < db_minval) {
829 db_printf("%#lln", (unsigned long long)off);
832 cursym = db_search_task_symbol(off, strategy, &d, task);
836 db_printf("%#lln",(unsigned long long) off);
843 if (db_line_at_pc(cursym, &filename, &linenum, off)) {
862 db_get_sym(db_expr_t *off) argument
869 cursym = db_search_symbol(*off, DB_STGY_ANY, &d);
872 *off
816 db_task_printsym( db_addr_t off, db_strategy_t strategy, task_t task) argument
879 db_printsym( db_expr_t off, db_strategy_t strategy) argument
904 db_task_getlinenum( db_expr_t off, task_t task) argument
1403 no_search(__unused db_symtab_t *stab, db_addr_t off, __unused db_strategy_t strategy, __unused db_expr_t *diffp) argument
1427 no_search_by_addr(__unused db_symtab_t *stab, db_addr_t off, __unused char **file, __unused char **func, __unused int *line, __unused db_expr_t *diffp, __unused int *args) argument
[all...]
H A Ddb_sym.h146 db_expr_t * off);
201 db_expr_t off,
206 db_expr_t off,
296 db_addr_t off,
316 db_addr_t off,

Completed in 193 milliseconds

1234