Lines Matching defs:fdesc

66 do_check_dsfield(char *attr_val, flow_desc_t *fdesc)
68 return (dladm_check_dsfield(attr_val, fdesc));
72 do_check_local_ip(char *attr_val, flow_desc_t *fdesc)
74 return (dladm_check_ip_addr(attr_val, B_TRUE, fdesc));
78 do_check_remote_ip(char *attr_val, flow_desc_t *fdesc)
80 return (dladm_check_ip_addr(attr_val, B_FALSE, fdesc));
148 do_check_protocol(char *attr_val, flow_desc_t *fdesc)
155 fdesc->fd_mask |= FLOW_IP_PROTOCOL;
156 fdesc->fd_protocol = protocol;
164 do_check_local_port(char *attr_val, flow_desc_t *fdesc)
166 return (do_check_port(attr_val, B_TRUE, fdesc));
170 do_check_remote_port(char *attr_val, flow_desc_t *fdesc)
172 return (do_check_port(attr_val, B_FALSE, fdesc));
176 do_check_port(char *attr_val, boolean_t local, flow_desc_t *fdesc)
185 fdesc->fd_mask |= FLOW_ULP_PORT_LOCAL;
186 fdesc->fd_local_port = htons((uint16_t)val);
188 fdesc->fd_mask |= FLOW_ULP_PORT_REMOTE;
189 fdesc->fd_remote_port = htons((uint16_t)val);
364 flow_desc_t fdesc = attrp->fa_flow_desc;
369 if (fdesc.fd_mask & FLOW_IP_LOCAL) {
370 if (fdesc.fd_ipversion == IPV6_VERSION) {
371 (void) inet_ntop(AF_INET6, &fdesc.fd_local_addr, abuf,
376 ipaddr.s_addr = fdesc.fd_local_addr._S6_un._S6_u32[3];
380 (void) dladm_mask2prefixlen(&fdesc.fd_local_netmask,
383 } else if (fdesc.fd_mask & FLOW_IP_REMOTE) {
384 if (fdesc.fd_ipversion == IPV6_VERSION) {
385 (void) inet_ntop(AF_INET6, &fdesc.fd_remote_addr, abuf,
390 ipaddr.s_addr = fdesc.fd_remote_addr._S6_un._S6_u32[3];
394 (void) dladm_mask2prefixlen(&fdesc.fd_remote_netmask,
405 flow_desc_t fdesc = attrp->fa_flow_desc;
408 dladm_proto2str(fdesc.fd_protocol));
414 flow_desc_t fdesc = attrp->fa_flow_desc;
416 if (fdesc.fd_mask & FLOW_ULP_PORT_LOCAL) {
418 ntohs(fdesc.fd_local_port));
419 } else if (fdesc.fd_mask & FLOW_ULP_PORT_REMOTE) {
421 ntohs(fdesc.fd_remote_port));
430 flow_desc_t fdesc = attrp->fa_flow_desc;
432 if (fdesc.fd_mask & FLOW_IP_DSFIELD) {
434 fdesc.fd_dsfield, fdesc.fd_dsfield_mask);