Lines Matching refs:addr
31 struct sockaddr_atmpvc *addr; in pvc_bind() local
37 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_bind()
38 if (addr->sap_family != AF_ATMPVC) in pvc_bind()
48 addr->sap_addr.vpi = vcc->vpi; in pvc_bind()
50 addr->sap_addr.vci = vcc->vci; in pvc_bind()
52 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, in pvc_bind()
53 addr->sap_addr.vci); in pvc_bind()
92 struct sockaddr_atmpvc *addr; in pvc_getname() local
97 addr = (struct sockaddr_atmpvc *)sockaddr; in pvc_getname()
98 memset(addr, 0, sizeof(*addr)); in pvc_getname()
99 addr->sap_family = AF_ATMPVC; in pvc_getname()
100 addr->sap_addr.itf = vcc->dev->number; in pvc_getname()
101 addr->sap_addr.vpi = vcc->vpi; in pvc_getname()
102 addr->sap_addr.vci = vcc->vci; in pvc_getname()