/net/sctp/ |
D | bind_addr.c | 117 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument 119 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init() 120 bp->port = port; in sctp_bind_addr_init() 124 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument 129 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean() 137 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument 140 sctp_bind_addr_clean(bp); in sctp_bind_addr_free() 144 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument 160 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr() 170 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr() [all …]
|
D | endpointola.c | 303 struct sctp_bind_addr *bp; in sctp_endpoint_is_peeled_off() local 305 bp = &ep->base.bind_addr; in sctp_endpoint_is_peeled_off() 309 list_for_each_entry(addr, &bp->address_list, list) { in sctp_endpoint_is_peeled_off()
|
D | protocol.c | 133 int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, in sctp_copy_local_addr_list() argument 162 laddr.v4.sin_port = htons(bp->port); in sctp_copy_local_addr_list() 163 if (sctp_bind_addr_state(bp, &laddr) != -1) in sctp_copy_local_addr_list() 166 error = sctp_add_bind_addr(bp, &addr->a, sizeof(addr->a), in sctp_copy_local_addr_list() 422 struct sctp_bind_addr *bp; in sctp_v4_get_dst() local 462 bp = &asoc->base.bind_addr; in sctp_v4_get_dst() 468 sctp_v4_dst_saddr(&dst_saddr, fl4, htons(bp->port)); in sctp_v4_get_dst() 470 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst() 491 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst()
|
D | socket.c | 378 struct sctp_bind_addr *bp = &ep->base.bind_addr; in sctp_do_bind() local 394 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind() 404 if (bp->port) { in sctp_do_bind() 406 snum = bp->port; in sctp_do_bind() 407 else if (snum != bp->port) { in sctp_do_bind() 409 "%d\n", __func__, snum, bp->port); in sctp_do_bind() 424 if (sctp_bind_addr_match(bp, addr, sp)) in sctp_do_bind() 436 if (!bp->port) { in sctp_do_bind() 437 bp->port = inet_sk(sk)->inet_num; in sctp_do_bind() 444 ret = sctp_add_bind_addr(bp, addr, af->sockaddr_len, in sctp_do_bind() [all …]
|
D | ipv6.c | 281 struct sctp_bind_addr *bp; in sctp_v6_get_dst() local 334 bp = &asoc->base.bind_addr; in sctp_v6_get_dst() 343 sctp_v6_to_addr(&dst_saddr, &fl6->saddr, htons(bp->port)); in sctp_v6_get_dst() 345 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst() 372 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst()
|
D | sm_make_chunk.c | 207 const struct sctp_bind_addr *bp, in sctp_make_init() argument 233 addrs = sctp_bind_addrs_to_raw(bp, &addrs_len, gfp); in sctp_make_init() 3361 struct sctp_bind_addr *bp = &asoc->base.bind_addr; in sctp_asconf_param_success() local 3372 if (!af->from_addr_param(&addr, addr_param, htons(bp->port), 0)) in sctp_asconf_param_success() 3381 list_for_each_entry(saddr, &bp->address_list, list) { in sctp_asconf_param_success() 3393 sctp_del_bind_addr(bp, &addr); in sctp_asconf_param_success()
|
D | sm_statefuns.c | 2523 struct sctp_bind_addr *bp; in sctp_sf_do_5_2_6_stale() local 2559 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_do_5_2_6_stale() 2560 reply = sctp_make_init(asoc, bp, GFP_ATOMIC, sizeof(bht)); in sctp_sf_do_5_2_6_stale() 5906 struct sctp_bind_addr *bp; in sctp_sf_t1_init_timer_expire() local 5913 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_t1_init_timer_expire() 5914 repl = sctp_make_init(asoc, bp, GFP_ATOMIC, 0); in sctp_sf_t1_init_timer_expire()
|
/net/ax25/ |
D | ax25_ip.c | 102 unsigned char *bp = skb->data; in ax25_ip_xmit() local 111 dst = (ax25_address *)(bp + 1); in ax25_ip_xmit() 112 src = (ax25_address *)(bp + 8); in ax25_ip_xmit() 130 if (bp[16] == AX25_P_IP) { in ax25_ip_xmit() 166 bp = ourskb->data; in ax25_ip_xmit() 167 dst_c = *(ax25_address *)(bp + 1); in ax25_ip_xmit() 168 src_c = *(ax25_address *)(bp + 8); in ax25_ip_xmit() 185 bp[7] &= ~AX25_CBIT; in ax25_ip_xmit() 186 bp[7] &= ~AX25_EBIT; in ax25_ip_xmit() 187 bp[7] |= AX25_SSSID_SPARE; in ax25_ip_xmit() [all …]
|
D | ax25_route.c | 453 unsigned char *bp; in ax25_rt_build_path() local 466 bp = skb_push(skb, len); in ax25_rt_build_path() 468 ax25_addr_build(bp, src, dest, digi, AX25_COMMAND, AX25_MODULUS); in ax25_rt_build_path()
|
/net/sunrpc/ |
D | cache.c | 801 char *bp = crq->buf; in cache_request() local 804 detail->cache_request(detail, crq->item, &bp, &len); in cache_request() 1109 char *bp = *bpp; in qword_add() local 1115 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add() 1117 bp += len; in qword_add() 1120 bp += ret; in qword_add() 1122 *bp++ = ' '; in qword_add() 1125 *bpp = bp; in qword_add() 1132 char *bp = *bpp; in qword_addhex() local 1138 *bp++ = '\\'; in qword_addhex() [all …]
|
/net/bridge/netfilter/ |
D | ebt_among.c | 84 const __be32 *bp; in get_ip_dst() local 92 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_dst() 95 if (bp == NULL) in get_ip_dst() 97 *addr = *bp; in get_ip_dst() 115 const __be32 *bp; in get_ip_src() local 123 bp = skb_header_pointer(skb, sizeof(struct arphdr) + in get_ip_src() 125 if (bp == NULL) in get_ip_src() 127 *addr = *bp; in get_ip_src()
|
/net/ipv4/ |
D | inetpeer.c | 57 void inet_peer_base_init(struct inet_peer_base *bp) in inet_peer_base_init() argument 59 bp->rb_root = RB_ROOT; in inet_peer_base_init() 60 seqlock_init(&bp->lock); in inet_peer_base_init() 61 bp->total = 0; in inet_peer_base_init()
|
D | tcp_ipv4.c | 1308 struct tcp4_pseudohdr *bp; in tcp_v4_md5_hash_headers() local 1312 bp = hp->scratch; in tcp_v4_md5_hash_headers() 1313 bp->saddr = saddr; in tcp_v4_md5_hash_headers() 1314 bp->daddr = daddr; in tcp_v4_md5_hash_headers() 1315 bp->pad = 0; in tcp_v4_md5_hash_headers() 1316 bp->protocol = IPPROTO_TCP; in tcp_v4_md5_hash_headers() 1317 bp->len = cpu_to_be16(nbytes); in tcp_v4_md5_hash_headers() 1319 _th = (struct tcphdr *)(bp + 1); in tcp_v4_md5_hash_headers() 1323 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers() 1325 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
|
D | route.c | 3670 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv4_inetpeer_init() local 3672 if (!bp) in ipv4_inetpeer_init() 3674 inet_peer_base_init(bp); in ipv4_inetpeer_init() 3675 net->ipv4.peers = bp; in ipv4_inetpeer_init() 3681 struct inet_peer_base *bp = net->ipv4.peers; in ipv4_inetpeer_exit() local 3684 inetpeer_invalidate_tree(bp); in ipv4_inetpeer_exit() 3685 kfree(bp); in ipv4_inetpeer_exit()
|
/net/ipv6/ |
D | tcp_ipv6.c | 673 struct tcp6_pseudohdr *bp; in tcp_v6_md5_hash_headers() local 677 bp = hp->scratch; in tcp_v6_md5_hash_headers() 679 bp->saddr = *saddr; in tcp_v6_md5_hash_headers() 680 bp->daddr = *daddr; in tcp_v6_md5_hash_headers() 681 bp->protocol = cpu_to_be32(IPPROTO_TCP); in tcp_v6_md5_hash_headers() 682 bp->len = cpu_to_be32(nbytes); in tcp_v6_md5_hash_headers() 684 _th = (struct tcphdr *)(bp + 1); in tcp_v6_md5_hash_headers() 688 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers() 690 sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
|
D | route.c | 6580 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv6_inetpeer_init() local 6582 if (!bp) in ipv6_inetpeer_init() 6584 inet_peer_base_init(bp); in ipv6_inetpeer_init() 6585 net->ipv6.peers = bp; in ipv6_inetpeer_init() 6591 struct inet_peer_base *bp = net->ipv6.peers; in ipv6_inetpeer_exit() local 6594 inetpeer_invalidate_tree(bp); in ipv6_inetpeer_exit() 6595 kfree(bp); in ipv6_inetpeer_exit()
|