Home
last modified time | relevance | path

Searched refs:bp (Results 1 – 16 of 16) sorted by relevance

/net/sctp/
Dbind_addr.c111 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument
113 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init()
114 bp->port = port; in sctp_bind_addr_init()
118 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument
123 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean()
131 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument
134 sctp_bind_addr_clean(bp); in sctp_bind_addr_free()
138 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument
154 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr()
164 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr()
[all …]
Dendpointola.c295 struct sctp_bind_addr *bp; in sctp_endpoint_is_peeled_off() local
298 bp = &ep->base.bind_addr; in sctp_endpoint_is_peeled_off()
302 list_for_each_entry(addr, &bp->address_list, list) { in sctp_endpoint_is_peeled_off()
Dprotocol.c132 int sctp_copy_local_addr_list(struct net *net, struct sctp_bind_addr *bp, in sctp_copy_local_addr_list() argument
160 laddr.v4.sin_port = htons(bp->port); in sctp_copy_local_addr_list()
161 if (sctp_bind_addr_state(bp, &laddr) != -1) in sctp_copy_local_addr_list()
164 error = sctp_add_bind_addr(bp, &addr->a, sizeof(addr->a), in sctp_copy_local_addr_list()
413 struct sctp_bind_addr *bp; in sctp_v4_get_dst() local
450 bp = &asoc->base.bind_addr; in sctp_v4_get_dst()
456 sctp_v4_dst_saddr(&dst_saddr, fl4, htons(bp->port)); in sctp_v4_get_dst()
458 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst()
479 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v4_get_dst()
Dsocket.c351 struct sctp_bind_addr *bp = &ep->base.bind_addr; in sctp_do_bind() local
367 __func__, sk, &addr->sa, bp->port, snum, len); in sctp_do_bind()
377 if (bp->port) { in sctp_do_bind()
379 snum = bp->port; in sctp_do_bind()
380 else if (snum != bp->port) { in sctp_do_bind()
382 "%d\n", __func__, snum, bp->port); in sctp_do_bind()
397 if (sctp_bind_addr_match(bp, addr, sp)) in sctp_do_bind()
409 if (!bp->port) in sctp_do_bind()
410 bp->port = inet_sk(sk)->inet_num; in sctp_do_bind()
415 ret = sctp_add_bind_addr(bp, addr, af->sockaddr_len, in sctp_do_bind()
[all …]
Dipv6.c232 struct sctp_bind_addr *bp; in sctp_v6_get_dst() local
282 bp = &asoc->base.bind_addr; in sctp_v6_get_dst()
291 sctp_v6_to_addr(&dst_saddr, &fl6->saddr, htons(bp->port)); in sctp_v6_get_dst()
293 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst()
318 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_v6_get_dst()
Dsm_make_chunk.c207 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()
3310 struct sctp_bind_addr *bp = &asoc->base.bind_addr; in sctp_asconf_param_success() local
3321 af->from_addr_param(&addr, addr_param, htons(bp->port), 0); in sctp_asconf_param_success()
3329 list_for_each_entry(saddr, &bp->address_list, list) { in sctp_asconf_param_success()
3341 sctp_del_bind_addr(bp, &addr); in sctp_asconf_param_success()
Dsm_statefuns.c2421 struct sctp_bind_addr *bp; in sctp_sf_do_5_2_6_stale() local
2457 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_do_5_2_6_stale()
2458 reply = sctp_make_init(asoc, bp, GFP_ATOMIC, sizeof(bht)); in sctp_sf_do_5_2_6_stale()
5748 struct sctp_bind_addr *bp; in sctp_sf_t1_init_timer_expire() local
5755 bp = (struct sctp_bind_addr *) &asoc->base.bind_addr; in sctp_sf_t1_init_timer_expire()
5756 repl = sctp_make_init(asoc, bp, GFP_ATOMIC, 0); in sctp_sf_t1_init_timer_expire()
/net/ax25/
Dax25_ip.c102 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 …]
Dax25_route.c445 unsigned char *bp; in ax25_rt_build_path() local
464 bp = skb_push(skb, len); in ax25_rt_build_path()
466 ax25_addr_build(bp, src, dest, digi, AX25_COMMAND, AX25_MODULUS); in ax25_rt_build_path()
/net/sunrpc/
Dcache.c787 char *bp = crq->buf; in cache_request() local
790 detail->cache_request(detail, crq->item, &bp, &len); in cache_request()
1113 char *bp = *bpp; in qword_add() local
1119 ret = string_escape_str(str, bp, len, ESCAPE_OCTAL, "\\ \n\t"); in qword_add()
1121 bp += len; in qword_add()
1124 bp += ret; in qword_add()
1126 *bp++ = ' '; in qword_add()
1129 *bpp = bp; in qword_add()
1136 char *bp = *bpp; in qword_addhex() local
1142 *bp++ = '\\'; in qword_addhex()
[all …]
/net/bridge/netfilter/
Debt_among.c84 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/
Dinetpeer.c57 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()
Dtcp_ipv4.c1188 struct tcp4_pseudohdr *bp; in tcp_v4_md5_hash_headers() local
1192 bp = hp->scratch; in tcp_v4_md5_hash_headers()
1193 bp->saddr = saddr; in tcp_v4_md5_hash_headers()
1194 bp->daddr = daddr; in tcp_v4_md5_hash_headers()
1195 bp->pad = 0; in tcp_v4_md5_hash_headers()
1196 bp->protocol = IPPROTO_TCP; in tcp_v4_md5_hash_headers()
1197 bp->len = cpu_to_be16(nbytes); in tcp_v4_md5_hash_headers()
1199 _th = (struct tcphdr *)(bp + 1); in tcp_v4_md5_hash_headers()
1203 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
1205 sizeof(*bp) + sizeof(*th)); in tcp_v4_md5_hash_headers()
Droute.c3427 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv4_inetpeer_init() local
3429 if (!bp) in ipv4_inetpeer_init()
3431 inet_peer_base_init(bp); in ipv4_inetpeer_init()
3432 net->ipv4.peers = bp; in ipv4_inetpeer_init()
3438 struct inet_peer_base *bp = net->ipv4.peers; in ipv4_inetpeer_exit() local
3441 inetpeer_invalidate_tree(bp); in ipv4_inetpeer_exit()
3442 kfree(bp); in ipv4_inetpeer_exit()
/net/ipv6/
Dtcp_ipv6.c598 struct tcp6_pseudohdr *bp; in tcp_v6_md5_hash_headers() local
602 bp = hp->scratch; in tcp_v6_md5_hash_headers()
604 bp->saddr = *saddr; in tcp_v6_md5_hash_headers()
605 bp->daddr = *daddr; in tcp_v6_md5_hash_headers()
606 bp->protocol = cpu_to_be32(IPPROTO_TCP); in tcp_v6_md5_hash_headers()
607 bp->len = cpu_to_be32(nbytes); in tcp_v6_md5_hash_headers()
609 _th = (struct tcphdr *)(bp + 1); in tcp_v6_md5_hash_headers()
613 sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
615 sizeof(*bp) + sizeof(*th)); in tcp_v6_md5_hash_headers()
Droute.c6259 struct inet_peer_base *bp = kmalloc(sizeof(*bp), GFP_KERNEL); in ipv6_inetpeer_init() local
6261 if (!bp) in ipv6_inetpeer_init()
6263 inet_peer_base_init(bp); in ipv6_inetpeer_init()
6264 net->ipv6.peers = bp; in ipv6_inetpeer_init()
6270 struct inet_peer_base *bp = net->ipv6.peers; in ipv6_inetpeer_exit() local
6273 inetpeer_invalidate_tree(bp); in ipv6_inetpeer_exit()
6274 kfree(bp); in ipv6_inetpeer_exit()