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

1234

/darwin-on-arm/xnu/libsyscall/wrappers/unix03/
H A Dmmap.c32 void *__mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off);
41 mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off) argument
46 * o off is not a multiple of the page size
51 if ((off & PAGE_MASK) ||
59 return(__mmap(addr, len, prot, flags, fildes, off));
/darwin-on-arm/xnu/bsd/netinet6/
H A Ddest6.c61 int off = *offp, dstoptlen, optlen; local
67 IP6_EXTHDR_CHECK(m, off, sizeof(*dstopts), return IPPROTO_DONE);
68 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off);
70 IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, sizeof(*dstopts));
77 IP6_EXTHDR_CHECK(m, off, dstoptlen, return IPPROTO_DONE);
78 dstopts = (struct ip6_dest *)(mtod(m, caddr_t) + off);
80 IP6_EXTHDR_GET(dstopts, struct ip6_dest *, m, off, dstoptlen);
84 off += dstoptlen;
114 *offp = off;
H A Desp_input.c160 esp4_input(m, off)
162 int off;
183 if (off % 4 != 0 || m->m_pkthdr.len % 4 != 0) {
185 "(off=%d, pktlen=%d)\n", off, m->m_pkthdr.len));
190 if (m->m_len < off + ESPMAXLEN) {
191 m = m_pullup(m, off + ESPMAXLEN);
206 !(ip->ip_p == IPPROTO_UDP && off >= sizeof(struct udphdr))) {
212 esp = (struct esp *)(void *)(((u_int8_t *)ip) + off);
292 if (m->m_pkthdr.len < off
726 int off = *offp; local
1198 int off; local
[all...]
H A Dipcomp_input.c87 ipcomp4_input(struct mbuf *m, int off) argument
100 if (m->m_pkthdr.len < off + sizeof(struct ipcomp)) {
107 md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
160 newlen = m->m_pkthdr.len - off;
178 m->m_pkthdr.len = off + newlen;
227 ip_proto_dispatch_in(m, off, nxt, 0);
250 int off; local
262 off = *offp;
264 md = m_pulldown(m, off, sizeof(*ipcomp), NULL);
306 newlen = m->m_pkthdr.len - off;
[all...]
H A Dah_input.c130 ah4_input(struct mbuf *m, int off) argument
146 if (m->m_len < off + sizeof(struct newah)) {
147 m = m_pullup(m, off + sizeof(struct newah));
160 ah = (struct ah *)(void *)(((caddr_t)ip) + off);
166 IP6_EXTHDR_GET(ah, struct ah *, m, off, sizeof(struct newah));
263 if (m->m_len < off + sizeof(struct ah) + sizoff + siz1) {
264 m = m_pullup(m, off + sizeof(struct ah) + sizoff + siz1);
274 ah = (struct ah *)(void *)(((caddr_t)ip) + off);
277 IP6_EXTHDR_GET(ah, struct ah *, m, off,
369 if (m->m_len < off
625 int off = *offp; local
1036 int off; local
[all...]
H A Droute6.c91 int off = *offp, rhlen; local
105 IP6_EXTHDR_CHECK(m, off, sizeof(*rh), return IPPROTO_DONE);
111 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off);
117 IP6_EXTHDR_GET(rh, struct ip6_rthdr *, m, off, sizeof(*rh));
134 IP6_EXTHDR_CHECK(m, off, rhlen, return IPPROTO_DONE);
144 IP6_EXTHDR_GET(rh, struct ip6_rthdr *, m, off, rhlen);
H A Din6_cksum.c147 * off is a offset where TCP/UDP/ICMP6 header starts.
153 inet6_cksum(struct mbuf *m, unsigned int nxt, unsigned int off, argument
179 if ((m->m_flags & M_PKTHDR) && m->m_pkthdr.len < off + len) {
180 panic("inet6_cksum: mbuf len (%d) < off+len (%d+%d)\n",
181 m->m_pkthdr.len, off, len);
215 while (m != NULL && off > 0) {
216 if (m->m_len <= off)
217 off -= m->m_len;
222 w = (u_int16_t *)(void *)(mtod(m, u_char *) + off);
223 mlen = m->m_len - off;
[all...]
H A Dip6_input.c475 int off = sizeof(struct ip6_hdr), nest; local
947 if (ip6_hopopts_input(&plen, &rtalert, &m, &off)) {
1131 if (m->m_pkthdr.len < off) {
1168 (mbuf_t *)&m, off, nxt);
1192 nxt = pr_input(&m, &off, nxt);
1195 nxt = pr_input(&m, &off, nxt);
1251 int off = *offp, hbhlen; local
1257 IP6_EXTHDR_CHECK(m, off, sizeof(*hbh), return -1);
1258 hbh = (struct ip6_hbh *)(mtod(m, caddr_t) + off);
1261 IP6_EXTHDR_CHECK(m, off, hbhle
1440 ip6_unknown_opt(uint8_t *optp, struct mbuf *m, int off) argument
1650 int nxt = ip6->ip6_nxt, off = sizeof(struct ip6_hdr); local
[all...]
H A Dip6_fw.c188 int *off, int *nxt, u_short *offset));
194 struct ifnet *rif, struct ifnet *oif, int off, int nxt));
276 is_icmp6_query(struct ip6_hdr *ip6, int off) argument
281 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
296 int *off, int *nxt, u_short *offset)
307 *off = sizeof(struct ip6_hdr);
309 while (*off < len) {
310 ip6e = (struct ip6_ext *)((caddr_t) ip6 + *off);
311 if ((*m)->m_len < *off + sizeof(*ip6e))
316 if ((*m)->m_len >= *off
295 ip6opts_match(struct ip6_hdr **pip6, struct ip6_fw *f, struct mbuf **m, int *off, int *nxt, u_short *offset) argument
417 ip6fw_report(struct ip6_fw *f, struct ip6_hdr *ip6, struct ifnet *rif, struct ifnet *oif, int off, int nxt) argument
566 int off = sizeof(struct ip6_hdr), nxt = ip6->ip6_nxt; local
[all...]
H A Dah_core.c1199 ah_update_mbuf(m, off, len, algo, algos)
1201 int off;
1210 if (off + len <= m->m_len) {
1211 (algo->update)(algos, mtod(m, caddr_t) + off, len);
1216 if (off < n->m_len)
1219 off -= n->m_len;
1228 if (n->m_len - off < len)
1229 tlen = n->m_len - off;
1233 (algo->update)(algos, mtod(n, caddr_t) + off, tlen);
1236 off
1256 int off; local
1500 int newoff, off; local
[all...]
H A Desp_core.c280 __unused size_t off, /* offset to ESP header */
292 __unused size_t off, /* offset to ESP header */
533 esp_cbc_decrypt(m, off, sav, algo, ivlen)
535 size_t off;
575 ivoff = off + sizeof(struct esp);
576 bodyoff = off + sizeof(struct esp) + ivlen;
585 ivoff = off + sizeof(struct esp);
586 bodyoff = off + sizeof(struct esp) + sizeof(u_int32_t);
590 ivoff = off + sizeof(struct newesp);
591 bodyoff = off
278 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
290 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
759 esp_cbc_encrypt( struct mbuf *m, size_t off, __unused size_t plen, struct secasvar *sav, const struct esp_algorithm *algo, int ivlen) argument
1001 size_t off; local
[all...]
H A Desp.h127 extern void esp4_input(struct mbuf *, int off);
H A Desp_rijndael.c124 * off = offset to ESP header
142 esp_cbc_decrypt_aes(m, off, sav, algo, ivlen)
144 size_t off;
170 ivoff = off + sizeof(struct esp);
171 bodyoff = off + sizeof(struct esp) + ivlen;
173 ivoff = off + sizeof(struct newesp);
174 bodyoff = off + sizeof(struct newesp) + ivlen;
323 size_t off,
350 ivoff = off + sizeof(struct esp);
351 bodyoff = off
321 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.c281 int off; local
338 off = ip6_lasthdr(m, 0, IPPROTO_IPV6, &nxt);
339 if (off >= 0 && nxt == IPPROTO_ICMPV6) {
343 IP6_EXTHDR_CHECK(m, 0, off + sizeof(struct icmp6_hdr), return);
344 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
346 IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off,
437 int off = *offp; local
444 IP6_EXTHDR_CHECK(m, off, sizeof(struct icmp6_hdr), return IPPROTO_DONE);
492 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
494 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)
186 m_adj(n, off);
212 int off = *offp; local
218 IP6_EXTHDR_CHECK(m, off, sizeof(struct udphdr), return IPPROTO_DONE);
228 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6);
229 uh = (struct udphdr *)(void *)((caddr_t)ip6 + off);
259 if (in6_cksum(m, IPPROTO_UDP, off, ulen) != 0) {
412 off + sizeof (struct udphdr));
438 uh = (struct udphdr *)(void *)((caddr_t)ip6 + off);
546 m_adj(m, off
165 udp6_append(struct inpcb *last, __unused struct ip6_hdr *ip6, struct sockaddr_in6 *udp_in6, struct mbuf *n, int off) argument
581 int off = 0; local
[all...]
/darwin-on-arm/xnu/pexpert/arm/
H A Dpe_apq8060.h41 #define GPT_REG(off) (MSM_GPT_BASE + (off))
42 #define DGT_REG(off) (MSM_DGT_BASE + (off))
58 #define GIC_CPU_REG(off) ((off))
59 #define GIC_DIST_REG(off) ((off))
/darwin-on-arm/xnu/bsd/kern/
H A Duipc_mbuf2.c120 * ensure that [off, off + len) is contiguous on the mbuf chain "m".
121 * packet chain before "off" is kept untouched.
130 m_pulldown(struct mbuf *m, int off, int len, int *offp) argument
155 if (off + len > MHLEN)
163 if (dlen >= off + len)
169 if (mlen >= off + len)
177 prevlen = off + len;
183 if (off + len > MCLBYTES)
190 prevlen = off
[all...]
H A Dkpi_mbuf.c390 errno_t mbuf_copydata(const mbuf_t m0, size_t off, size_t len, void* out_data) argument
396 while (off > 0) {
399 if (off < (size_t)m->m_len)
401 off -= m->m_len;
407 count = m->m_len - off > len ? len : m->m_len - off;
408 bcopy(mtod(m, caddr_t) + off, out_data, count);
411 off = 0;
789 __unused unsigned int off, __unused unsigned int len)
1026 size_t off,
788 inet6_cksum(__unused struct mbuf *m, __unused unsigned int nxt, __unused unsigned int off, __unused unsigned int len) argument
1024 mbuf_copyback( mbuf_t m, size_t off, size_t len, const void *data, mbuf_how_t how) argument
[all...]
/darwin-on-arm/xnu/iokit/Kernel/
H A DIOKitDebug.cpp152 OSNumber * off; local
154 off = OSNumber::withNumber( value, 32 );
155 if( !off)
158 dict->setObject( name, off );
159 off->release();
/darwin-on-arm/xnu/bsd/net/
H A Dpf_norm.c509 u_int16_t off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3; local
511 u_int16_t fr_max = ip_len + off;
515 /* Strip off ip header */
549 * - off contains the real shifted offset.
552 if (FR_IP_OFF(frea) > off)
561 4 > off) {
565 frep->fr_ip->ip_hl * 4 - off;
572 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
577 for (; frea != NULL && ip_len + off > FR_IP_OFF(frea);
581 aftercut = ip_len + off
703 u_int16_t off = ntohs(h->ip_off) << 3; local
1006 int plen, off, fr_max; local
1206 u_int16_t plen, off, fr_max; local
1797 int off; local
2085 pf_normalize_tcp(int dir, struct pfi_kif *kif, struct mbuf *m, int ipoff, int off, void *h, struct pf_pdesc *pd) argument
2233 pf_normalize_tcp_init(struct mbuf *m, int off, struct pf_pdesc *pd, struct tcphdr *th, struct pf_state_peer *src, struct pf_state_peer *dst) argument
2328 pf_normalize_tcp_stateful(struct mbuf *m, int off, struct pf_pdesc *pd, u_short *reason, struct tcphdr *th, struct pf_state *state, struct pf_state_peer *src, struct pf_state_peer *dst, int *writeback) argument
2728 pf_normalize_tcpopt(struct pf_rule *r, int dir, struct pfi_kif *kif, struct pf_pdesc *pd, struct mbuf *m, struct tcphdr *th, int off, int *rewrptr) argument
[all...]
H A Dif_utun_crypto_ipsec.h98 utun_pkt_is_ipsec_keepalive(struct utun_pcb *pcb, mbuf_t *pkt, u_int16_t nxt, u_int32_t flags, size_t off);
/darwin-on-arm/xnu/bsd/netinet/
H A Dip6.h304 #define IP6_EXTHDR_CHECK(m, off, hlen, action) \
308 ((m)->m_len < (off) + (hlen)) && \
309 (((m) = m_pullup((m), (off) + (hlen))) == NULL)) { \
313 if ((m)->m_len < (off) + (hlen)) { \
319 if ((m)->m_len < (off) + (hlen)) { \
326 if ((m)->m_len < (off) + (hlen)) { \
336 * IP6_EXTHDR_GET ensures that intermediate protocol header (from "off" to
343 #define IP6_EXTHDR_GET(val, typ, m, off, len) \
344 M_STRUCT_GET(val, typ, m, off, len)
346 #define IP6_EXTHDR_GET0(val, typ, m, off, le
[all...]
H A Dcpu_in_cksum.c94 cpu_in_cksum(struct mbuf *m, int len, int off, uint32_t initial_sum) argument
103 VERIFY(off >= 0);
115 if (mlen > off) {
116 mlen -= off;
117 data = mtod(m, uint8_t *) + off;
120 off -= mlen;
240 cpu_in_cksum(struct mbuf *m, int len, int off, uint32_t initial_sum) argument
249 VERIFY(off >= 0);
261 if (mlen > off) {
262 mlen -= off;
[all...]
H A Dtcp_timer.h95 * are more ACKs expected). Whenever the retransmit timer goes off,
269 #define OFFSET_FROM_START(tp, off) ((tcp_now + (off)) - (tp)->tentry.timer_start)
/darwin-on-arm/xnu/osfmk/kdp/
H A Dkdp_udp.c106 unsigned int off, len; member in struct:__anon1072
484 pkt.off -= (unsigned int)sizeof (struct udpiphdr);
487 bcopy((char *)&pkt.data[pkt.off], (char *)ui, sizeof(*ui));
489 ui = (struct udpiphdr *)&pkt.data[pkt.off];
503 bcopy((char *)ui, (char *)&pkt.data[pkt.off], sizeof(*ui));
504 bcopy((char *)&pkt.data[pkt.off], (char *)ip, sizeof(*ip));
506 ip = (struct ip *)&pkt.data[pkt.off];
516 bcopy((char *)ip, (char *)&pkt.data[pkt.off], sizeof(*ip));
521 pkt.off -= (unsigned int)sizeof (struct ether_header);
523 eh = (struct ether_header *)&pkt.data[pkt.off];
1517 uint32_t off = (uint32_t) seek_off; local
[all...]

Completed in 138 milliseconds

1234