/net/sctp/ |
D | bind_addr.c | 125 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument 127 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init() 128 bp->port = port; in sctp_bind_addr_init() 132 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument 137 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean() 145 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument 148 sctp_bind_addr_clean(bp); in sctp_bind_addr_free() 152 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument 168 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr() 178 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr() [all …]
|
D | socket.c | 373 struct sctp_bind_addr *bp = &ep->base.bind_addr; in sctp_do_bind() local 389 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind() 399 if (bp->port) { in sctp_do_bind() 401 snum = bp->port; in sctp_do_bind() 402 else if (snum != bp->port) { in sctp_do_bind() 404 "%d\n", __func__, snum, bp->port); in sctp_do_bind() 416 if (sctp_bind_addr_match(bp, addr, sp)) in sctp_do_bind() 429 if (!bp->port) { in sctp_do_bind() 430 bp->port = inet_sk(sk)->inet_num; in sctp_do_bind() 437 ret = sctp_add_bind_addr(bp, addr, SCTP_ADDR_SRC, GFP_ATOMIC); in sctp_do_bind() [all …]
|
D | endpointola.c | 386 struct sctp_bind_addr *bp; in sctp_endpoint_is_peeled_off() local 389 bp = &ep->base.bind_addr; in sctp_endpoint_is_peeled_off() 393 list_for_each_entry(addr, &bp->address_list, list) { in sctp_endpoint_is_peeled_off()
|
D | protocol.c | 197 int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, in sctp_copy_local_addr_list() argument 218 error = sctp_add_bind_addr(bp, &addr->a, in sctp_copy_local_addr_list() 440 struct sctp_bind_addr *bp; in sctp_v4_get_dst() local 476 bp = &asoc->base.bind_addr; in sctp_v4_get_dst() 482 sctp_v4_dst_saddr(&dst_saddr, fl4, htons(bp->port)); in sctp_v4_get_dst() 484 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst() 505 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst()
|
D | ipv6.c | 239 struct sctp_bind_addr *bp; in sctp_v6_get_dst() local 278 bp = &asoc->base.bind_addr; in sctp_v6_get_dst() 287 sctp_v6_to_addr(&dst_saddr, &fl6->saddr, htons(bp->port)); in sctp_v6_get_dst() 289 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst() 316 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst()
|
D | sm_make_chunk.c | 218 const struct sctp_bind_addr *bp, in sctp_make_init() argument 246 addrs = sctp_bind_addrs_to_raw(bp, &addrs_len, gfp); in sctp_make_init() 3304 struct sctp_bind_addr *bp = &asoc->base.bind_addr; in sctp_asconf_param_success() local 3313 if (!af->from_addr_param(&addr, addr_param, htons(bp->port), 0)) in sctp_asconf_param_success() 3322 list_for_each_entry(saddr, &bp->address_list, list) { in sctp_asconf_param_success() 3335 sctp_del_bind_addr(bp, &addr); in sctp_asconf_param_success()
|
D | sm_statefuns.c | 2342 struct sctp_bind_addr *bp; in sctp_sf_do_5_2_6_stale() local 2377 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_do_5_2_6_stale() 2378 reply = sctp_make_init(asoc, bp, GFP_ATOMIC, sizeof(bht)); in sctp_sf_do_5_2_6_stale() 5559 struct sctp_bind_addr *bp; in sctp_sf_t1_init_timer_expire() local 5567 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_t1_init_timer_expire() 5568 repl = sctp_make_init(asoc, bp, GFP_ATOMIC, 0); in sctp_sf_t1_init_timer_expire()
|
/net/ax25/ |
D | ax25_ip.c | 105 unsigned char *bp = skb->data; in ax25_ip_xmit() local 114 dst = (ax25_address *)(bp + 1); in ax25_ip_xmit() 115 src = (ax25_address *)(bp + 8); in ax25_ip_xmit() 133 if (bp[16] == AX25_P_IP) { in ax25_ip_xmit() 169 bp = ourskb->data; in ax25_ip_xmit() 170 dst_c = *(ax25_address *)(bp + 1); in ax25_ip_xmit() 171 src_c = *(ax25_address *)(bp + 8); in ax25_ip_xmit() 188 bp[7] &= ~AX25_CBIT; in ax25_ip_xmit() 189 bp[7] &= ~AX25_EBIT; in ax25_ip_xmit() 190 bp[7] |= AX25_SSSID_SPARE; in ax25_ip_xmit() [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 | 759 char *bp = crq->buf; in cache_request() local 762 detail->cache_request(detail, crq->item, &bp, &len); in cache_request() 1081 char *bp = *bpp; in qword_add() local 1087 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add() 1089 bp += len; in qword_add() 1092 bp += ret; in qword_add() 1094 *bp++ = ' '; in qword_add() 1097 *bpp = bp; in qword_add() 1104 char *bp = *bpp; in qword_addhex() local 1110 *bp++ = '\\'; in qword_addhex() [all …]
|
/net/bridge/netfilter/ |
D | ebt_among.c | 83 const __be32 *bp; in get_ip_dst() local 91 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_dst() 94 if (bp == NULL) in get_ip_dst() 96 *addr = *bp; in get_ip_dst() 114 const __be32 *bp; in get_ip_src() local 122 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_src() 124 if (bp == NULL) in get_ip_src() 126 *addr = *bp; in get_ip_src()
|
/net/ipv4/ |
D | inetpeer.c | 71 void inet_peer_base_init(struct inet_peer_base *bp) in inet_peer_base_init() argument 73 bp->root = peer_avl_empty_rcu; in inet_peer_base_init() 74 seqlock_init(&bp->lock); in inet_peer_base_init() 75 bp->total = 0; in inet_peer_base_init()
|
D | tcp_ipv4.c | 1035 struct tcp4_pseudohdr *bp; in tcp_v4_md5_hash_pseudoheader() local 1038 bp = &hp->md5_blk.ip4; in tcp_v4_md5_hash_pseudoheader() 1045 bp->saddr = saddr; in tcp_v4_md5_hash_pseudoheader() 1046 bp->daddr = daddr; in tcp_v4_md5_hash_pseudoheader() 1047 bp->pad = 0; in tcp_v4_md5_hash_pseudoheader() 1048 bp->protocol = IPPROTO_TCP; in tcp_v4_md5_hash_pseudoheader() 1049 bp->len = cpu_to_be16(nbytes); in tcp_v4_md5_hash_pseudoheader() 1051 sg_init_one(&sg, bp, sizeof(*bp)); in tcp_v4_md5_hash_pseudoheader() 1052 return crypto_hash_update(&hp->md5_desc, &sg, sizeof(*bp)); in tcp_v4_md5_hash_pseudoheader()
|
D | route.c | 2948 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv4_inetpeer_init() local 2950 if (!bp) in ipv4_inetpeer_init() 2952 inet_peer_base_init(bp); in ipv4_inetpeer_init() 2953 net->ipv4.peers = bp; in ipv4_inetpeer_init() 2959 struct inet_peer_base *bp = net->ipv4.peers; in ipv4_inetpeer_exit() local 2962 inetpeer_invalidate_tree(bp); in ipv4_inetpeer_exit() 2963 kfree(bp); in ipv4_inetpeer_exit()
|
/net/ipv6/ |
D | tcp_ipv6.c | 557 struct tcp6_pseudohdr *bp; in tcp_v6_md5_hash_pseudoheader() local 560 bp = &hp->md5_blk.ip6; in tcp_v6_md5_hash_pseudoheader() 562 bp->saddr = *saddr; in tcp_v6_md5_hash_pseudoheader() 563 bp->daddr = *daddr; in tcp_v6_md5_hash_pseudoheader() 564 bp->protocol = cpu_to_be32(IPPROTO_TCP); in tcp_v6_md5_hash_pseudoheader() 565 bp->len = cpu_to_be32(nbytes); in tcp_v6_md5_hash_pseudoheader() 567 sg_init_one(&sg, bp, sizeof(*bp)); in tcp_v6_md5_hash_pseudoheader() 568 return crypto_hash_update(&hp->md5_desc, &sg, sizeof(*bp)); in tcp_v6_md5_hash_pseudoheader()
|
D | route.c | 3715 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv6_inetpeer_init() local 3717 if (!bp) in ipv6_inetpeer_init() 3719 inet_peer_base_init(bp); in ipv6_inetpeer_init() 3720 net->ipv6.peers = bp; in ipv6_inetpeer_init() 3726 struct inet_peer_base *bp = net->ipv6.peers; in ipv6_inetpeer_exit() local 3729 inetpeer_invalidate_tree(bp); in ipv6_inetpeer_exit() 3730 kfree(bp); in ipv6_inetpeer_exit()
|