|
Lines 805-810
get_connection_info(int populate, int use_dns)
Link Here
|
| 805 |
ci.address = ssh_remote_ipaddr(ssh); |
805 |
ci.address = ssh_remote_ipaddr(ssh); |
| 806 |
ci.laddress = ssh_local_ipaddr(ssh); |
806 |
ci.laddress = ssh_local_ipaddr(ssh); |
| 807 |
ci.lport = ssh_local_port(ssh); |
807 |
ci.lport = ssh_local_port(ssh); |
|
|
808 |
ci.rdomain = ssh_packet_rdomain_in(ssh); |
| 808 |
return &ci; |
809 |
return &ci; |
| 809 |
} |
810 |
} |
| 810 |
|
811 |
|
|
Lines 988-993
match_cfg_line(char **condition, int line, struct connection_info *ci)
Link Here
|
| 988 |
ci->laddress, port, line); |
989 |
ci->laddress, port, line); |
| 989 |
else |
990 |
else |
| 990 |
result = 0; |
991 |
result = 0; |
|
|
992 |
} else if (strcasecmp(attrib, "rdomain") == 0) { |
| 993 |
if (ci == NULL || ci->rdomain == NULL) { |
| 994 |
result = 0; |
| 995 |
continue; |
| 996 |
} |
| 997 |
if (match_pattern_list(ci->rdomain, arg, 0) != 1) |
| 998 |
result = 0; |
| 999 |
else |
| 1000 |
debug("user %.100s matched 'RDomain %.100s' at " |
| 1001 |
"line %d", ci->rdomain, arg, line); |
| 991 |
} else { |
1002 |
} else { |
| 992 |
error("Unsupported Match attribute %s", attrib); |
1003 |
error("Unsupported Match attribute %s", attrib); |
| 993 |
return -1; |
1004 |
return -1; |
|
Lines 2024-2029
int parse_server_match_testspec(struct connection_info *ci, char *spec)
Link Here
|
| 2024 |
ci->user = xstrdup(p + 5); |
2035 |
ci->user = xstrdup(p + 5); |
| 2025 |
} else if (strncmp(p, "laddr=", 6) == 0) { |
2036 |
} else if (strncmp(p, "laddr=", 6) == 0) { |
| 2026 |
ci->laddress = xstrdup(p + 6); |
2037 |
ci->laddress = xstrdup(p + 6); |
|
|
2038 |
} else if (strncmp(p, "rdomain=", 8) == 0) { |
| 2039 |
ci->rdomain = xstrdup(p + 8); |
| 2027 |
} else if (strncmp(p, "lport=", 6) == 0) { |
2040 |
} else if (strncmp(p, "lport=", 6) == 0) { |
| 2028 |
ci->lport = a2port(p + 6); |
2041 |
ci->lport = a2port(p + 6); |
| 2029 |
if (ci->lport == -1) { |
2042 |
if (ci->lport == -1) { |