Lines Matching defs:fdesc

66 do_check_local_ip(char *attr_val, flow_desc_t *fdesc)
68 return (do_check_ip_addr(attr_val, B_TRUE, fdesc));
72 do_check_remote_ip(char *attr_val, flow_desc_t *fdesc)
74 return (do_check_ip_addr(attr_val, B_FALSE, fdesc));
142 do_check_protocol(char *attr_val, flow_desc_t *fdesc)
149 fdesc->fd_mask |= FLOW_IP_PROTOCOL;
150 fdesc->fd_protocol = protocol;
158 do_check_local_port(char *attr_val, flow_desc_t *fdesc)
160 return (do_check_port(attr_val, B_TRUE, fdesc));
164 do_check_remote_port(char *attr_val, flow_desc_t *fdesc)
166 return (do_check_port(attr_val, B_FALSE, fdesc));
170 do_check_port(char *attr_val, boolean_t local, flow_desc_t *fdesc)
179 fdesc->fd_mask |= FLOW_ULP_PORT_LOCAL;
180 fdesc->fd_local_port = htons((uint16_t)val);
182 fdesc->fd_mask |= FLOW_ULP_PORT_REMOTE;
183 fdesc->fd_remote_port = htons((uint16_t)val);
355 flow_desc_t fdesc = attrp->fa_flow_desc;
360 if (fdesc.fd_mask & FLOW_IP_LOCAL) {
361 if (fdesc.fd_ipversion == IPV6_VERSION) {
362 (void) inet_ntop(AF_INET6, &fdesc.fd_local_addr, abuf,
367 ipaddr.s_addr = fdesc.fd_local_addr._S6_un._S6_u32[3];
371 (void) dladm_mask2prefixlen(&fdesc.fd_local_netmask,
374 } else if (fdesc.fd_mask & FLOW_IP_REMOTE) {
375 if (fdesc.fd_ipversion == IPV6_VERSION) {
376 (void) inet_ntop(AF_INET6, &fdesc.fd_remote_addr, abuf,
381 ipaddr.s_addr = fdesc.fd_remote_addr._S6_un._S6_u32[3];
385 (void) dladm_mask2prefixlen(&fdesc.fd_remote_netmask,
396 flow_desc_t fdesc = attrp->fa_flow_desc;
399 dladm_proto2str(fdesc.fd_protocol));
405 flow_desc_t fdesc = attrp->fa_flow_desc;
407 if (fdesc.fd_mask & FLOW_ULP_PORT_LOCAL) {
409 ntohs(fdesc.fd_local_port));
410 } else if (fdesc.fd_mask & FLOW_ULP_PORT_REMOTE) {
412 ntohs(fdesc.fd_remote_port));
421 flow_desc_t fdesc = attrp->fa_flow_desc;
423 if (fdesc.fd_mask & FLOW_IP_DSFIELD) {
425 fdesc.fd_dsfield, fdesc.fd_dsfield_mask);