Home
last modified time | relevance | path

Searched refs:dptr (Results 1 – 14 of 14) sorted by relevance

/net/netrom/
Dnr_subr.c126 unsigned char *dptr; in nr_write_internal() local
155 dptr = skb_put(skb, skb_tailroom(skb)); in nr_write_internal()
160 *dptr++ = nr->my_index; in nr_write_internal()
161 *dptr++ = nr->my_id; in nr_write_internal()
162 *dptr++ = 0; in nr_write_internal()
163 *dptr++ = 0; in nr_write_internal()
164 *dptr++ = frametype; in nr_write_internal()
165 *dptr++ = nr->window; in nr_write_internal()
166 memcpy(dptr, &nr->user_addr, AX25_ADDR_LEN); in nr_write_internal()
167 dptr[6] &= ~AX25_CBIT; in nr_write_internal()
[all …]
Dnr_out.c191 unsigned char *dptr; in nr_transmit_buffer() local
196 dptr = skb_push(skb, NR_NETWORK_LEN); in nr_transmit_buffer()
198 memcpy(dptr, &nr->source_addr, AX25_ADDR_LEN); in nr_transmit_buffer()
199 dptr[6] &= ~AX25_CBIT; in nr_transmit_buffer()
200 dptr[6] &= ~AX25_EBIT; in nr_transmit_buffer()
201 dptr[6] |= AX25_SSSID_SPARE; in nr_transmit_buffer()
202 dptr += AX25_ADDR_LEN; in nr_transmit_buffer()
204 memcpy(dptr, &nr->dest_addr, AX25_ADDR_LEN); in nr_transmit_buffer()
205 dptr[6] &= ~AX25_CBIT; in nr_transmit_buffer()
206 dptr[6] |= AX25_EBIT; in nr_transmit_buffer()
[all …]
Dnr_route.c773 unsigned char *dptr; in nr_route_frame() local
839 dptr = skb_push(skb, 1); in nr_route_frame()
840 *dptr = AX25_P_NETROM; in nr_route_frame()
/net/netfilter/
Dnf_conntrack_sip.c54 const char **dptr,
59 const char **dptr,
67 const char **dptr,
77 const char **dptr,
85 const char **dptr,
93 const char **dptr,
103 static int string_len(const struct nf_conn *ct, const char *dptr, in string_len() argument
108 while (dptr < limit && isalpha(*dptr)) { in string_len()
109 dptr++; in string_len()
115 static int digits_len(const struct nf_conn *ct, const char *dptr, in digits_len() argument
[all …]
/net/x25/
Dx25_subr.c115 unsigned char *dptr; in x25_write_internal() local
167 dptr = skb_put(skb, 2); in x25_write_internal()
173 *dptr++ = lci1 | X25_GFI_EXTSEQ; in x25_write_internal()
174 *dptr++ = lci2; in x25_write_internal()
176 *dptr++ = lci1 | X25_GFI_STDSEQ; in x25_write_internal()
177 *dptr++ = lci2; in x25_write_internal()
186 dptr = skb_put(skb, 1); in x25_write_internal()
187 *dptr++ = X25_CALL_REQUEST; in x25_write_internal()
190 dptr = skb_put(skb, len); in x25_write_internal()
191 memcpy(dptr, addresses, len); in x25_write_internal()
[all …]
Dx25_link.c114 unsigned char *dptr; in x25_transmit_restart_request() local
123 dptr = skb_put(skb, X25_STD_MIN_LEN + 2); in x25_transmit_restart_request()
125 *dptr++ = nb->extended ? X25_GFI_EXTSEQ : X25_GFI_STDSEQ; in x25_transmit_restart_request()
126 *dptr++ = 0x00; in x25_transmit_restart_request()
127 *dptr++ = X25_RESTART_REQUEST; in x25_transmit_restart_request()
128 *dptr++ = 0x00; in x25_transmit_restart_request()
129 *dptr++ = 0; in x25_transmit_restart_request()
141 unsigned char *dptr; in x25_transmit_restart_confirmation() local
150 dptr = skb_put(skb, X25_STD_MIN_LEN); in x25_transmit_restart_confirmation()
152 *dptr++ = nb->extended ? X25_GFI_EXTSEQ : X25_GFI_STDSEQ; in x25_transmit_restart_confirmation()
[all …]
Dx25_dev.c195 unsigned char *dptr; in x25_send_frame() local
201 dptr = skb_push(skb, 1); in x25_send_frame()
202 *dptr = 0x00; in x25_send_frame()
/net/rose/
Drose_link.c176 unsigned char *dptr; in rose_transmit_restart_request() local
186 dptr = skb_put(skb, ROSE_MIN_LEN + 3); in rose_transmit_restart_request()
188 *dptr++ = AX25_P_ROSE; in rose_transmit_restart_request()
189 *dptr++ = ROSE_GFI; in rose_transmit_restart_request()
190 *dptr++ = 0x00; in rose_transmit_restart_request()
191 *dptr++ = ROSE_RESTART_REQUEST; in rose_transmit_restart_request()
192 *dptr++ = ROSE_DTE_ORIGINATED; in rose_transmit_restart_request()
193 *dptr++ = 0; in rose_transmit_restart_request()
205 unsigned char *dptr; in rose_transmit_restart_confirmation() local
215 dptr = skb_put(skb, ROSE_MIN_LEN + 1); in rose_transmit_restart_confirmation()
[all …]
Drose_subr.c106 unsigned char *dptr; in rose_write_internal() local
134 dptr = skb_put(skb, skb_tailroom(skb)); in rose_write_internal()
141 *dptr++ = ROSE_GFI | lci1; in rose_write_internal()
142 *dptr++ = lci2; in rose_write_internal()
143 *dptr++ = frametype; in rose_write_internal()
144 *dptr++ = 0xAA; in rose_write_internal()
145 memcpy(dptr, &rose->dest_addr, ROSE_ADDR_LEN); in rose_write_internal()
146 dptr += ROSE_ADDR_LEN; in rose_write_internal()
147 memcpy(dptr, &rose->source_addr, ROSE_ADDR_LEN); in rose_write_internal()
148 dptr += ROSE_ADDR_LEN; in rose_write_internal()
[all …]
/net/lapb/
Dlapb_subr.c232 unsigned char *dptr; in lapb_send_control() local
241 dptr = skb_put(skb, 1); in lapb_send_control()
242 *dptr = frametype; in lapb_send_control()
243 *dptr |= poll_bit ? LAPB_SPF : 0; in lapb_send_control()
245 dptr = skb_put(skb, 2); in lapb_send_control()
246 dptr[0] = frametype; in lapb_send_control()
247 dptr[1] = (lapb->vr << 1); in lapb_send_control()
248 dptr[1] |= poll_bit ? LAPB_EPF : 0; in lapb_send_control()
251 dptr = skb_put(skb, 1); in lapb_send_control()
252 *dptr = frametype; in lapb_send_control()
[all …]
/net/ipv4/netfilter/
Dnf_nat_sip.c33 const char **dptr, unsigned int *datalen, in mangle_packet() argument
45 *dptr = skb->data + ip_hdrlen(skb) + sizeof(struct udphdr); in mangle_packet()
51 const char **dptr, unsigned int *datalen, in map_addr() argument
79 return mangle_packet(skb, dptr, datalen, matchoff, matchlen, in map_addr()
84 const char **dptr, unsigned int *datalen, in map_sip_addr() argument
93 if (ct_sip_parse_header_uri(ct, *dptr, NULL, *datalen, type, NULL, in map_sip_addr()
96 return map_addr(skb, dptr, datalen, matchoff, matchlen, &addr, port); in map_sip_addr()
100 const char **dptr, unsigned int *datalen) in ip_nat_sip() argument
111 if (strnicmp(*dptr, "SIP/2.0", strlen("SIP/2.0")) != 0) { in ip_nat_sip()
112 if (ct_sip_parse_request(ct, *dptr, *datalen, in ip_nat_sip()
[all …]
/net/ax25/
Dax25_subr.c153 unsigned char *dptr; in ax25_send_control() local
164 dptr = skb_put(skb, 1); in ax25_send_control()
165 *dptr = frametype; in ax25_send_control()
166 *dptr |= (poll_bit) ? AX25_PF : 0; in ax25_send_control()
168 *dptr |= (ax25->vr << 5); in ax25_send_control()
171 dptr = skb_put(skb, 1); in ax25_send_control()
172 *dptr = frametype; in ax25_send_control()
173 *dptr |= (poll_bit) ? AX25_PF : 0; in ax25_send_control()
175 dptr = skb_put(skb, 2); in ax25_send_control()
176 dptr[0] = frametype; in ax25_send_control()
[all …]
/net/ipv4/
Dip_options.c88 unsigned char *sptr, *dptr; in ip_options_echo() local
103 dptr = dopt->__data; in ip_options_echo()
111 memcpy(dptr, sptr+sopt->rr, optlen); in ip_options_echo()
115 dptr[2] = soffset + 4; in ip_options_echo()
118 dptr += optlen; in ip_options_echo()
125 memcpy(dptr, sptr+sopt->ts, optlen); in ip_options_echo()
136 if ((dptr[3]&0xF) != IPOPT_TS_PRESPEC) { in ip_options_echo()
153 dptr[2] = soffset; in ip_options_echo()
155 dptr += optlen; in ip_options_echo()
171 memcpy(&dptr[doffset-1], &start[soffset-1], 4); in ip_options_echo()
[all …]
Dip_output.c1333 static int ip_reply_glue_bits(void *dptr, char *to, int offset, in ip_reply_glue_bits() argument
1338 csum = csum_partial_copy_nocheck(dptr+offset, to, len, 0); in ip_reply_glue_bits()