/net/netfilter/ |
D | nf_conntrack_sip.c | 66 static int string_len(const struct nf_conn *ct, const char *dptr, in string_len() argument 71 while (dptr < limit && isalpha(*dptr)) { in string_len() 72 dptr++; in string_len() 78 static int digits_len(const struct nf_conn *ct, const char *dptr, in digits_len() argument 82 while (dptr < limit && isdigit(*dptr)) { in digits_len() 83 dptr++; in digits_len() 100 static int word_len(const char *dptr, const char *limit) in word_len() argument 103 while (dptr < limit && iswordc(*dptr)) { in word_len() 104 dptr++; in word_len() 110 static int callid_len(const struct nf_conn *ct, const char *dptr, in callid_len() argument [all …]
|
D | nf_nat_sip.c | 36 const char **dptr, unsigned int *datalen, in mangle_packet() argument 65 *dptr = skb->data + dataoff; in mangle_packet() 94 const char **dptr, unsigned int *datalen, in map_addr() argument 123 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr() 129 const char **dptr, unsigned int *datalen, in map_sip_addr() argument 138 if (ct_sip_parse_header_uri(ct, *dptr, NULL, *datalen, type, NULL, in map_sip_addr() 141 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr() 147 const char **dptr, unsigned int *datalen) in nf_nat_sip() argument 160 if (strncasecmp(*dptr, "SIP/2.0", strlen("SIP/2.0")) != 0) { in nf_nat_sip() 161 if (ct_sip_parse_request(ct, *dptr, *datalen, in nf_nat_sip() [all …]
|
/net/netrom/ |
D | nr_subr.c | 123 unsigned char *dptr; in nr_write_internal() local 153 dptr = skb_put(skb, len); in nr_write_internal() 158 *dptr++ = nr->my_index; in nr_write_internal() 159 *dptr++ = nr->my_id; in nr_write_internal() 160 *dptr++ = 0; in nr_write_internal() 161 *dptr++ = 0; in nr_write_internal() 162 *dptr++ = frametype; in nr_write_internal() 163 *dptr++ = nr->window; in nr_write_internal() 164 memcpy(dptr, &nr->user_addr, AX25_ADDR_LEN); in nr_write_internal() 165 dptr[6] &= ~AX25_CBIT; in nr_write_internal() [all …]
|
D | nr_out.c | 188 unsigned char *dptr; in nr_transmit_buffer() local 193 dptr = skb_push(skb, NR_NETWORK_LEN); in nr_transmit_buffer() 195 memcpy(dptr, &nr->source_addr, AX25_ADDR_LEN); in nr_transmit_buffer() 196 dptr[6] &= ~AX25_CBIT; in nr_transmit_buffer() 197 dptr[6] &= ~AX25_EBIT; in nr_transmit_buffer() 198 dptr[6] |= AX25_SSSID_SPARE; in nr_transmit_buffer() 199 dptr += AX25_ADDR_LEN; in nr_transmit_buffer() 201 memcpy(dptr, &nr->dest_addr, AX25_ADDR_LEN); in nr_transmit_buffer() 202 dptr[6] &= ~AX25_CBIT; in nr_transmit_buffer() 203 dptr[6] |= AX25_EBIT; in nr_transmit_buffer() [all …]
|
D | nr_route.c | 754 unsigned char *dptr; in nr_route_frame() local 820 dptr = skb_push(skb, 1); in nr_route_frame() 821 *dptr = AX25_P_NETROM; in nr_route_frame()
|
/net/lapb/ |
D | lapb_subr.c | 225 unsigned char *dptr; in lapb_send_control() local 234 dptr = skb_put(skb, 1); in lapb_send_control() 235 *dptr = frametype; in lapb_send_control() 236 *dptr |= poll_bit ? LAPB_SPF : 0; in lapb_send_control() 238 dptr = skb_put(skb, 2); in lapb_send_control() 239 dptr[0] = frametype; in lapb_send_control() 240 dptr[1] = (lapb->vr << 1); in lapb_send_control() 241 dptr[1] |= poll_bit ? LAPB_EPF : 0; in lapb_send_control() 244 dptr = skb_put(skb, 1); in lapb_send_control() 245 *dptr = frametype; in lapb_send_control() [all …]
|
/net/rose/ |
D | rose_link.c | 179 unsigned char *dptr; in rose_transmit_restart_request() local 189 dptr = skb_put(skb, ROSE_MIN_LEN + 3); in rose_transmit_restart_request() 191 *dptr++ = AX25_P_ROSE; in rose_transmit_restart_request() 192 *dptr++ = ROSE_GFI; in rose_transmit_restart_request() 193 *dptr++ = 0x00; in rose_transmit_restart_request() 194 *dptr++ = ROSE_RESTART_REQUEST; in rose_transmit_restart_request() 195 *dptr++ = ROSE_DTE_ORIGINATED; in rose_transmit_restart_request() 196 *dptr++ = 0; in rose_transmit_restart_request() 208 unsigned char *dptr; in rose_transmit_restart_confirmation() local 218 dptr = skb_put(skb, ROSE_MIN_LEN + 1); in rose_transmit_restart_confirmation() [all …]
|
D | rose_subr.c | 103 unsigned char *dptr; in rose_write_internal() local 133 dptr = skb_put(skb, len); in rose_write_internal() 140 *dptr++ = ROSE_GFI | lci1; in rose_write_internal() 141 *dptr++ = lci2; in rose_write_internal() 142 *dptr++ = frametype; in rose_write_internal() 143 *dptr++ = ROSE_CALL_REQ_ADDR_LEN_VAL; in rose_write_internal() 144 memcpy(dptr, &rose->dest_addr, ROSE_ADDR_LEN); in rose_write_internal() 145 dptr += ROSE_ADDR_LEN; in rose_write_internal() 146 memcpy(dptr, &rose->source_addr, ROSE_ADDR_LEN); in rose_write_internal() 147 dptr += ROSE_ADDR_LEN; in rose_write_internal() [all …]
|
/net/x25/ |
D | x25_subr.c | 113 unsigned char *dptr; in x25_write_internal() local 163 dptr = skb_put(skb, 2); in x25_write_internal() 169 *dptr++ = lci1 | X25_GFI_EXTSEQ; in x25_write_internal() 170 *dptr++ = lci2; in x25_write_internal() 172 *dptr++ = lci1 | X25_GFI_STDSEQ; in x25_write_internal() 173 *dptr++ = lci2; in x25_write_internal() 182 dptr = skb_put(skb, 1); in x25_write_internal() 183 *dptr++ = X25_CALL_REQUEST; in x25_write_internal() 198 dptr = skb_put(skb, 2); in x25_write_internal() 199 *dptr++ = X25_CALL_ACCEPTED; in x25_write_internal() [all …]
|
D | x25_link.c | 114 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 …]
|
D | x25_dev.c | 205 unsigned char *dptr; in x25_send_frame() local 211 dptr = skb_push(skb, 1); in x25_send_frame() 212 *dptr = X25_IFACE_DATA; in x25_send_frame()
|
/net/ax25/ |
D | ax25_subr.c | 150 unsigned char *dptr; in ax25_send_control() local 161 dptr = skb_put(skb, 1); in ax25_send_control() 162 *dptr = frametype; in ax25_send_control() 163 *dptr |= (poll_bit) ? AX25_PF : 0; in ax25_send_control() 165 *dptr |= (ax25->vr << 5); in ax25_send_control() 168 dptr = skb_put(skb, 1); in ax25_send_control() 169 *dptr = frametype; in ax25_send_control() 170 *dptr |= (poll_bit) ? AX25_PF : 0; in ax25_send_control() 172 dptr = skb_put(skb, 2); in ax25_send_control() 173 dptr[0] = frametype; in ax25_send_control() [all …]
|
/net/netfilter/ipvs/ |
D | ip_vs_pe_sip.c | 30 static int get_callid(const char *dptr, unsigned int dataoff, in get_callid() argument 36 int ret = ct_sip_get_header(NULL, dptr, dataoff, datalen, in get_callid() 56 if (*(dptr + *matchoff + *matchlen) != '\r' && in get_callid() 57 *(dptr + *matchoff + *matchlen) != '\n') in get_callid() 61 IP_VS_DEBUG_CALLID(dptr + *matchoff, *matchlen), in get_callid() 71 const char *dptr; in ip_vs_sip_fill_param() local 89 dptr = skb->data + dataoff; in ip_vs_sip_fill_param() 92 if (get_callid(dptr, 0, datalen, &matchoff, &matchlen)) in ip_vs_sip_fill_param() 98 p->pe_data = kmemdup(dptr + matchoff, matchlen, GFP_ATOMIC); in ip_vs_sip_fill_param()
|
/net/ipv4/ |
D | ip_options.c | 93 unsigned char *sptr, *dptr; in __ip_options_echo() local 103 dptr = dopt->__data; in __ip_options_echo() 109 memcpy(dptr, sptr+sopt->rr, optlen); in __ip_options_echo() 113 dptr[2] = soffset + 4; in __ip_options_echo() 116 dptr += optlen; in __ip_options_echo() 123 memcpy(dptr, sptr+sopt->ts, optlen); in __ip_options_echo() 134 if ((dptr[3]&0xF) != IPOPT_TS_PRESPEC) { in __ip_options_echo() 143 memcpy(&addr, dptr+soffset-1, 4); in __ip_options_echo() 151 dptr[2] = soffset; in __ip_options_echo() 153 dptr += optlen; in __ip_options_echo() [all …]
|
D | ip_output.c | 1665 static int ip_reply_glue_bits(void *dptr, char *to, int offset, in ip_reply_glue_bits() argument 1670 csum = csum_partial_copy_nocheck(dptr+offset, to, len, 0); in ip_reply_glue_bits()
|
/net/ife/ |
D | ife.c | 163 char *dptr = (char *) tlv + NLA_HDRLEN; in ife_tlv_meta_encode() local 167 memset(dptr, 0, totlen - NLA_HDRLEN); in ife_tlv_meta_encode() 168 memcpy(dptr, dval, dlen); in ife_tlv_meta_encode()
|