Page MenuHomeFreeBSD

D3505.id8260.diff
No OneTemporary

D3505.id8260.diff

Index: head/sys/netinet/udp_usrreq.c
===================================================================
--- head/sys/netinet/udp_usrreq.c
+++ head/sys/netinet/udp_usrreq.c
@@ -520,7 +520,7 @@
}
}
- pcbinfo = get_inpcbinfo(proto);
+ pcbinfo = udp_get_inpcbinfo(proto);
if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)) ||
in_broadcast(ip->ip_dst, ifp)) {
struct inpcb *last;
@@ -528,7 +528,7 @@
struct ip_moptions *imo;
INP_INFO_RLOCK(pcbinfo);
- pcblist = get_pcblist(proto);
+ pcblist = udp_get_pcblist(proto);
last = NULL;
LIST_FOREACH(inp, pcblist, inp_list) {
if (inp->inp_lport != uh->uh_dport)
@@ -1243,7 +1243,7 @@
* XXXRW: Check that hash locking update here is correct.
*/
pr = inp->inp_socket->so_proto->pr_protocol;
- pcbinfo = get_inpcbinfo(pr);
+ pcbinfo = udp_get_inpcbinfo(pr);
sin = (struct sockaddr_in *)addr;
if (sin != NULL &&
(inp->inp_laddr.s_addr == INADDR_ANY && inp->inp_lport == 0)) {
@@ -1678,7 +1678,7 @@
struct inpcb *inp;
struct inpcbinfo *pcbinfo;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp_abort: inp == NULL"));
INP_WLOCK(inp);
@@ -1699,7 +1699,7 @@
struct inpcbinfo *pcbinfo;
int error;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp == NULL, ("udp_attach: inp != NULL"));
error = soreserve(so, udp_sendspace, udp_recvspace);
@@ -1760,7 +1760,7 @@
struct inpcbinfo *pcbinfo;
int error;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp_bind: inp == NULL"));
INP_WLOCK(inp);
@@ -1777,7 +1777,7 @@
struct inpcb *inp;
struct inpcbinfo *pcbinfo;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp_close: inp == NULL"));
INP_WLOCK(inp);
@@ -1799,7 +1799,7 @@
struct sockaddr_in *sin;
int error;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp_connect: inp == NULL"));
INP_WLOCK(inp);
@@ -1829,7 +1829,7 @@
struct inpcbinfo *pcbinfo;
struct udpcb *up;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp_detach: inp == NULL"));
KASSERT(inp->inp_faddr.s_addr == INADDR_ANY,
@@ -1851,7 +1851,7 @@
struct inpcb *inp;
struct inpcbinfo *pcbinfo;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp_disconnect: inp == NULL"));
INP_WLOCK(inp);
Index: head/sys/netinet/udp_var.h
===================================================================
--- head/sys/netinet/udp_var.h
+++ head/sys/netinet/udp_var.h
@@ -150,13 +150,13 @@
extern int udp_log_in_vain;
static __inline struct inpcbinfo *
-get_inpcbinfo(int protocol)
+udp_get_inpcbinfo(int protocol)
{
return (protocol == IPPROTO_UDP) ? &V_udbinfo : &V_ulitecbinfo;
}
static __inline struct inpcbhead *
-get_pcblist(int protocol)
+udp_get_pcblist(int protocol)
{
return (protocol == IPPROTO_UDP) ? &V_udb : &V_ulitecb;
}
Index: head/sys/netinet6/udp6_usrreq.c
===================================================================
--- head/sys/netinet6/udp6_usrreq.c
+++ head/sys/netinet6/udp6_usrreq.c
@@ -282,7 +282,7 @@
init_sin6(&fromsa, m);
fromsa.sin6_port = uh->uh_sport;
- pcbinfo = get_inpcbinfo(nxt);
+ pcbinfo = udp_get_inpcbinfo(nxt);
if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
struct inpcb *last;
struct inpcbhead *pcblist;
@@ -304,7 +304,7 @@
* here. We need udphdr for IPsec processing so we do that
* later.
*/
- pcblist = get_pcblist(nxt);
+ pcblist = udp_get_pcblist(nxt);
last = NULL;
LIST_FOREACH(inp, pcblist, inp_list) {
if ((inp->inp_vflag & INP_IPV6) == 0)
@@ -908,7 +908,7 @@
struct inpcb *inp;
struct inpcbinfo *pcbinfo;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp6_abort: inp == NULL"));
@@ -940,7 +940,7 @@
struct inpcbinfo *pcbinfo;
int error;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp == NULL, ("udp6_attach: inp != NULL"));
@@ -988,7 +988,7 @@
struct inpcbinfo *pcbinfo;
int error;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp6_bind: inp == NULL"));
@@ -1032,7 +1032,7 @@
struct inpcb *inp;
struct inpcbinfo *pcbinfo;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp6_close: inp == NULL"));
@@ -1064,7 +1064,7 @@
struct sockaddr_in6 *sin6;
int error;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
sin6 = (struct sockaddr_in6 *)nam;
KASSERT(inp != NULL, ("udp6_connect: inp == NULL"));
@@ -1126,7 +1126,7 @@
struct inpcbinfo *pcbinfo;
struct udpcb *up;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp6_detach: inp == NULL"));
@@ -1147,7 +1147,7 @@
struct inpcbinfo *pcbinfo;
int error;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp6_disconnect: inp == NULL"));
@@ -1188,7 +1188,7 @@
struct inpcbinfo *pcbinfo;
int error = 0;
- pcbinfo = get_inpcbinfo(so->so_proto->pr_protocol);
+ pcbinfo = udp_get_inpcbinfo(so->so_proto->pr_protocol);
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("udp6_send: inp == NULL"));

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 25, 11:36 AM (3 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30320302
Default Alt Text
D3505.id8260.diff (6 KB)

Event Timeline