/net/sctp/ |
D | bind_addr.c | 131 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument 133 bp->malloced = 0; in sctp_bind_addr_init() 135 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init() 136 bp->port = port; in sctp_bind_addr_init() 140 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument 146 list_for_each_safe(pos, temp, &bp->address_list) { in sctp_bind_addr_clean() 155 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument 158 sctp_bind_addr_clean(bp); in sctp_bind_addr_free() 160 if (bp->malloced) { in sctp_bind_addr_free() 161 kfree(bp); in sctp_bind_addr_free() [all …]
|
D | socket.c | 336 struct sctp_bind_addr *bp = &ep->base.bind_addr; in sctp_do_bind() local 355 bp->port, snum, in sctp_do_bind() 366 if (bp->port) { in sctp_do_bind() 368 snum = bp->port; in sctp_do_bind() 369 else if (snum != bp->port) { in sctp_do_bind() 372 "%d.\n", snum, bp->port); in sctp_do_bind() 383 if (sctp_bind_addr_match(bp, addr, sp)) in sctp_do_bind() 396 if (!bp->port) in sctp_do_bind() 397 bp->port = inet_sk(sk)->num; in sctp_do_bind() 402 ret = sctp_add_bind_addr(bp, addr, SCTP_ADDR_SRC, GFP_ATOMIC); in sctp_do_bind() [all …]
|
D | endpointola.c | 381 struct sctp_bind_addr *bp; in sctp_endpoint_is_peeled_off() local 383 bp = &ep->base.bind_addr; in sctp_endpoint_is_peeled_off() 387 list_for_each_entry(addr, &bp->address_list, list) { in sctp_endpoint_is_peeled_off()
|
D | protocol.c | 242 int sctp_copy_local_addr_list(struct sctp_bind_addr *bp, sctp_scope_t scope, in sctp_copy_local_addr_list() argument 262 error = sctp_add_bind_addr(bp, &addr->a, in sctp_copy_local_addr_list() 475 struct sctp_bind_addr *bp; in sctp_v4_get_dst() local 503 bp = &asoc->base.bind_addr; in sctp_v4_get_dst() 509 sctp_v4_dst_saddr(&dst_saddr, dst, htons(bp->port)); in sctp_v4_get_dst() 511 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst() 530 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst()
|
D | ipv6.c | 305 struct sctp_bind_addr *bp; in sctp_v6_get_saddr() local 328 bp = &asoc->base.bind_addr; in sctp_v6_get_saddr() 334 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_saddr()
|
D | sm_make_chunk.c | 172 const struct sctp_bind_addr *bp, in sctp_make_init() argument 198 addrs = sctp_bind_addrs_to_raw(bp, &addrs_len, gfp); in sctp_make_init() 3103 struct sctp_bind_addr *bp = &asoc->base.bind_addr; in sctp_asconf_param_success() local 3114 af->from_addr_param(&addr, addr_param, htons(bp->port), 0); in sctp_asconf_param_success() 3122 list_for_each_entry(saddr, &bp->address_list, list) { in sctp_asconf_param_success() 3130 retval = sctp_del_bind_addr(bp, &addr); in sctp_asconf_param_success()
|
D | sm_statefuns.c | 2239 struct sctp_bind_addr *bp; in sctp_sf_do_5_2_6_stale() local 2274 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_do_5_2_6_stale() 2275 reply = sctp_make_init(asoc, bp, GFP_ATOMIC, sizeof(bht)); in sctp_sf_do_5_2_6_stale() 5290 struct sctp_bind_addr *bp; in sctp_sf_t1_init_timer_expire() local 5297 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_t1_init_timer_expire() 5298 repl = sctp_make_init(asoc, bp, GFP_ATOMIC, 0); in sctp_sf_t1_init_timer_expire()
|
/net/ax25/ |
D | ax25_ip.c | 106 unsigned char *bp = skb->data; in ax25_rebuild_header() local 115 dst = (ax25_address *)(bp + 1); in ax25_rebuild_header() 116 src = (ax25_address *)(bp + 8); in ax25_rebuild_header() 118 if (arp_find(bp + 1, skb)) in ax25_rebuild_header() 135 if (bp[16] == AX25_P_IP) { in ax25_rebuild_header() 171 bp = ourskb->data; in ax25_rebuild_header() 172 dst_c = *(ax25_address *)(bp + 1); in ax25_rebuild_header() 173 src_c = *(ax25_address *)(bp + 8); in ax25_rebuild_header() 190 bp[7] &= ~AX25_CBIT; in ax25_rebuild_header() 191 bp[7] &= ~AX25_EBIT; in ax25_rebuild_header() [all …]
|
D | ax25_route.c | 462 unsigned char *bp; in ax25_rt_build_path() local 481 bp = skb_push(skb, len); in ax25_rt_build_path() 483 ax25_addr_build(bp, src, dest, digi, AX25_COMMAND, AX25_MODULUS); in ax25_rt_build_path()
|
/net/sunrpc/ |
D | cache.c | 959 char *bp = *bpp; in qword_add() local 972 *bp++ = '\\'; in qword_add() 973 *bp++ = '0' + ((c & 0300)>>6); in qword_add() 974 *bp++ = '0' + ((c & 0070)>>3); in qword_add() 975 *bp++ = '0' + ((c & 0007)>>0); in qword_add() 980 *bp++ = c; in qword_add() 985 *bp++ = ' '; in qword_add() 988 *bpp = bp; in qword_add() 995 char *bp = *bpp; in qword_addhex() local 1001 *bp++ = '\\'; in qword_addhex() [all …]
|
/net/netrom/ |
D | nr_dev.c | 72 unsigned char *bp = skb->data; in nr_rebuild_header() local 74 if (arp_find(bp + 7, skb)) in nr_rebuild_header() 77 bp[6] &= ~AX25_CBIT; in nr_rebuild_header() 78 bp[6] &= ~AX25_EBIT; in nr_rebuild_header() 79 bp[6] |= AX25_SSSID_SPARE; in nr_rebuild_header() 80 bp += AX25_ADDR_LEN; in nr_rebuild_header() 82 bp[6] &= ~AX25_CBIT; in nr_rebuild_header() 83 bp[6] |= AX25_EBIT; in nr_rebuild_header() 84 bp[6] |= AX25_SSSID_SPARE; in nr_rebuild_header()
|
/net/bridge/netfilter/ |
D | ebt_among.c | 82 const __be32 *bp; in get_ip_dst() local 90 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_dst() 93 if (bp == NULL) in get_ip_dst() 95 *addr = *bp; in get_ip_dst() 113 const __be32 *bp; in get_ip_src() local 121 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_src() 123 if (bp == NULL) in get_ip_src() 125 *addr = *bp; in get_ip_src()
|
/net/rose/ |
D | rose_dev.c | 61 unsigned char *bp = (unsigned char *)skb->data; in rose_rebuild_header() local 65 if (arp_find(bp + 7, skb)) { in rose_rebuild_header()
|
/net/ipv4/ |
D | tcp_ipv4.c | 992 struct tcp4_pseudohdr *bp; in tcp_v4_md5_hash_pseudoheader() local 995 bp = &hp->md5_blk.ip4; in tcp_v4_md5_hash_pseudoheader() 1002 bp->saddr = saddr; in tcp_v4_md5_hash_pseudoheader() 1003 bp->daddr = daddr; in tcp_v4_md5_hash_pseudoheader() 1004 bp->pad = 0; in tcp_v4_md5_hash_pseudoheader() 1005 bp->protocol = IPPROTO_TCP; in tcp_v4_md5_hash_pseudoheader() 1006 bp->len = cpu_to_be16(nbytes); in tcp_v4_md5_hash_pseudoheader() 1008 sg_init_one(&sg, bp, sizeof(*bp)); in tcp_v4_md5_hash_pseudoheader() 1009 return crypto_hash_update(&hp->md5_desc, &sg, sizeof(*bp)); in tcp_v4_md5_hash_pseudoheader()
|
/net/ipv6/ |
D | tcp_ipv6.c | 747 struct tcp6_pseudohdr *bp; in tcp_v6_md5_hash_pseudoheader() local 750 bp = &hp->md5_blk.ip6; in tcp_v6_md5_hash_pseudoheader() 752 ipv6_addr_copy(&bp->saddr, saddr); in tcp_v6_md5_hash_pseudoheader() 753 ipv6_addr_copy(&bp->daddr, daddr); in tcp_v6_md5_hash_pseudoheader() 754 bp->protocol = cpu_to_be32(IPPROTO_TCP); in tcp_v6_md5_hash_pseudoheader() 755 bp->len = cpu_to_be32(nbytes); in tcp_v6_md5_hash_pseudoheader() 757 sg_init_one(&sg, bp, sizeof(*bp)); in tcp_v6_md5_hash_pseudoheader() 758 return crypto_hash_update(&hp->md5_desc, &sg, sizeof(*bp)); in tcp_v6_md5_hash_pseudoheader()
|