/net/sctp/ |
D | bind_addr.c | 126 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument 128 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init() 129 bp->port = port; in sctp_bind_addr_init() 133 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument 138 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean() 146 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument 149 sctp_bind_addr_clean(bp); in sctp_bind_addr_free() 153 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument 169 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr() 179 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr() [all …]
|
D | endpointola.c | 352 struct sctp_bind_addr *bp; in sctp_endpoint_is_peeled_off() local 355 bp = &ep->base.bind_addr; in sctp_endpoint_is_peeled_off() 359 list_for_each_entry(addr, &bp->address_list, list) { in sctp_endpoint_is_peeled_off()
|
D | socket.c | 362 struct sctp_bind_addr *bp = &ep->base.bind_addr; in sctp_do_bind() local 378 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind() 388 if (bp->port) { in sctp_do_bind() 390 snum = bp->port; in sctp_do_bind() 391 else if (snum != bp->port) { in sctp_do_bind() 393 "%d\n", __func__, snum, bp->port); in sctp_do_bind() 405 if (sctp_bind_addr_match(bp, addr, sp)) in sctp_do_bind() 418 if (!bp->port) in sctp_do_bind() 419 bp->port = inet_sk(sk)->inet_num; in sctp_do_bind() 424 ret = sctp_add_bind_addr(bp, addr, af->sockaddr_len, in sctp_do_bind() [all …]
|
D | protocol.c | 198 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() 431 struct sctp_bind_addr *bp; in sctp_v4_get_dst() local 464 bp = &asoc->base.bind_addr; in sctp_v4_get_dst() 470 sctp_v4_dst_saddr(&dst_saddr, fl4, htons(bp->port)); in sctp_v4_get_dst() 472 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst() 493 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst()
|
D | ipv6.c | 240 struct sctp_bind_addr *bp; in sctp_v6_get_dst() local 276 bp = &asoc->base.bind_addr; in sctp_v6_get_dst() 285 sctp_v6_to_addr(&dst_saddr, &fl6->saddr, htons(bp->port)); in sctp_v6_get_dst() 287 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst() 312 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst()
|
D | sm_make_chunk.c | 215 const struct sctp_bind_addr *bp, in sctp_make_init() argument 243 addrs = sctp_bind_addrs_to_raw(bp, &addrs_len, gfp); in sctp_make_init() 3301 struct sctp_bind_addr *bp = &asoc->base.bind_addr; in sctp_asconf_param_success() local 3310 af->from_addr_param(&addr, addr_param, htons(bp->port), 0); in sctp_asconf_param_success() 3318 list_for_each_entry(saddr, &bp->address_list, list) { in sctp_asconf_param_success() 3331 sctp_del_bind_addr(bp, &addr); in sctp_asconf_param_success()
|
D | sm_statefuns.c | 2313 struct sctp_bind_addr *bp; in sctp_sf_do_5_2_6_stale() local 2348 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_do_5_2_6_stale() 2349 reply = sctp_make_init(asoc, bp, GFP_ATOMIC, sizeof(bht)); in sctp_sf_do_5_2_6_stale() 5523 struct sctp_bind_addr *bp; in sctp_sf_t1_init_timer_expire() local 5531 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_t1_init_timer_expire() 5532 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() 132 if (bp[16] == AX25_P_IP) { in ax25_ip_xmit() 168 bp = ourskb->data; in ax25_ip_xmit() 169 dst_c = *(ax25_address *)(bp + 1); in ax25_ip_xmit() 170 src_c = *(ax25_address *)(bp + 8); in ax25_ip_xmit() 187 bp[7] &= ~AX25_CBIT; in ax25_ip_xmit() 188 bp[7] &= ~AX25_EBIT; in ax25_ip_xmit() 189 bp[7] |= AX25_SSSID_SPARE; in ax25_ip_xmit() [all …]
|
D | ax25_route.c | 463 unsigned char *bp; in ax25_rt_build_path() local 482 bp = skb_push(skb, len); in ax25_rt_build_path() 484 ax25_addr_build(bp, src, dest, digi, AX25_COMMAND, AX25_MODULUS); in ax25_rt_build_path()
|
/net/sunrpc/ |
D | cache.c | 755 char *bp = crq->buf; in cache_request() local 758 detail->cache_request(detail, crq->item, &bp, &len); in cache_request() 1077 char *bp = *bpp; in qword_add() local 1083 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add() 1085 bp += len; in qword_add() 1088 bp += ret; in qword_add() 1090 *bp++ = ' '; in qword_add() 1093 *bpp = bp; in qword_add() 1100 char *bp = *bpp; in qword_addhex() local 1106 *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 | 1042 struct tcp4_pseudohdr *bp; in tcp_v4_md5_hash_headers() local 1046 bp = hp->scratch; in tcp_v4_md5_hash_headers() 1047 bp->saddr = saddr; in tcp_v4_md5_hash_headers() 1048 bp->daddr = daddr; in tcp_v4_md5_hash_headers() 1049 bp->pad = 0; in tcp_v4_md5_hash_headers() 1050 bp->protocol = IPPROTO_TCP; in tcp_v4_md5_hash_headers() 1051 bp->len = cpu_to_be16(nbytes); in tcp_v4_md5_hash_headers() 1053 _th = (struct tcphdr *)(bp + 1); in tcp_v4_md5_hash_headers() 1057 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers() 1059 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
|
D | route.c | 2878 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv4_inetpeer_init() local 2880 if (!bp) in ipv4_inetpeer_init() 2882 inet_peer_base_init(bp); in ipv4_inetpeer_init() 2883 net->ipv4.peers = bp; in ipv4_inetpeer_init() 2889 struct inet_peer_base *bp = net->ipv4.peers; in ipv4_inetpeer_exit() local 2892 inetpeer_invalidate_tree(bp); in ipv4_inetpeer_exit() 2893 kfree(bp); in ipv4_inetpeer_exit()
|
/net/ipv6/ |
D | tcp_ipv6.c | 550 struct tcp6_pseudohdr *bp; in tcp_v6_md5_hash_headers() local 554 bp = hp->scratch; in tcp_v6_md5_hash_headers() 556 bp->saddr = *saddr; in tcp_v6_md5_hash_headers() 557 bp->daddr = *daddr; in tcp_v6_md5_hash_headers() 558 bp->protocol = cpu_to_be32(IPPROTO_TCP); in tcp_v6_md5_hash_headers() 559 bp->len = cpu_to_be32(nbytes); in tcp_v6_md5_hash_headers() 561 _th = (struct tcphdr *)(bp + 1); in tcp_v6_md5_hash_headers() 565 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers() 567 sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
|
D | route.c | 3774 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv6_inetpeer_init() local 3776 if (!bp) in ipv6_inetpeer_init() 3778 inet_peer_base_init(bp); in ipv6_inetpeer_init() 3779 net->ipv6.peers = bp; in ipv6_inetpeer_init() 3785 struct inet_peer_base *bp = net->ipv6.peers; in ipv6_inetpeer_exit() local 3788 inetpeer_invalidate_tree(bp); in ipv6_inetpeer_exit() 3789 kfree(bp); in ipv6_inetpeer_exit()
|