• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/netfilter/ipvs/

Lines Matching refs:usvc

1955 static void ip_vs_copy_usvc_compat(struct ip_vs_service_user_kern *usvc,
1958 usvc->af = AF_INET;
1959 usvc->protocol = usvc_compat->protocol;
1960 usvc->addr.ip = usvc_compat->addr;
1961 usvc->port = usvc_compat->port;
1962 usvc->fwmark = usvc_compat->fwmark;
1965 usvc->sched_name = usvc_compat->sched_name;
1967 usvc->flags = usvc_compat->flags;
1968 usvc->timeout = usvc_compat->timeout;
1969 usvc->netmask = usvc_compat->netmask;
1989 struct ip_vs_service_user_kern usvc;
2041 ip_vs_copy_usvc_compat(&usvc, usvc_compat);
2046 if (!usvc.fwmark && !usvc.addr.ip && !usvc.port) {
2053 if (usvc.protocol != IPPROTO_TCP && usvc.protocol != IPPROTO_UDP &&
2054 usvc.protocol != IPPROTO_SCTP) {
2056 usvc.protocol, &usvc.addr.ip,
2057 ntohs(usvc.port), usvc.sched_name);
2063 if (usvc.fwmark == 0)
2064 svc = __ip_vs_service_get(usvc.af, usvc.protocol,
2065 &usvc.addr, usvc.port);
2067 svc = __ip_vs_svc_fwm_get(usvc.af, usvc.fwmark);
2070 && (svc == NULL || svc->protocol != usvc.protocol)) {
2080 ret = ip_vs_add_service(&usvc, &svc);
2083 ret = ip_vs_edit_service(svc, &usvc);
2627 static int ip_vs_genl_parse_service(struct ip_vs_service_user_kern *usvc,
2647 memset(usvc, 0, sizeof(*usvc));
2649 usvc->af = nla_get_u16(nla_af);
2651 if (usvc->af != AF_INET && usvc->af != AF_INET6)
2653 if (usvc->af != AF_INET)
2658 usvc->protocol = IPPROTO_TCP;
2659 usvc->fwmark = nla_get_u32(nla_fwmark);
2661 usvc->protocol = nla_get_u16(nla_protocol);
2662 nla_memcpy(&usvc->addr, nla_addr, sizeof(usvc->addr));
2663 usvc->port = nla_get_u16(nla_port);
2664 usvc->fwmark = 0;
2685 if (usvc->fwmark)
2686 svc = __ip_vs_svc_fwm_get(usvc->af, usvc->fwmark);
2688 svc = __ip_vs_service_get(usvc->af, usvc->protocol,
2689 &usvc->addr, usvc->port);
2691 usvc->flags = svc->flags;
2694 usvc->flags = 0;
2697 usvc->flags = (usvc->flags & ~flags.mask) |
2699 usvc->sched_name = nla_data(nla_sched);
2700 usvc->timeout = nla_get_u32(nla_timeout);
2701 usvc->netmask = nla_get_u32(nla_netmask);
2709 struct ip_vs_service_user_kern usvc;
2712 ret = ip_vs_genl_parse_service(&usvc, nla, 0);
2716 if (usvc.fwmark)
2717 return __ip_vs_svc_fwm_get(usvc.af, usvc.fwmark);
2719 return __ip_vs_service_get(usvc.af, usvc.protocol,
2720 &usvc.addr, usvc.port);
2977 struct ip_vs_service_user_kern usvc;
3022 ret = ip_vs_genl_parse_service(&usvc,
3029 if (usvc.fwmark == 0)
3030 svc = __ip_vs_service_get(usvc.af, usvc.protocol,
3031 &usvc.addr, usvc.port);
3033 svc = __ip_vs_svc_fwm_get(usvc.af, usvc.fwmark);
3059 ret = ip_vs_add_service(&usvc, &svc);
3064 ret = ip_vs_edit_service(svc, &usvc);