Lines Matching refs:ipsrc
70 char ipsrc[256]; /* ip as a string */
122 if (strlcpy(ipsrc, cp, sizeof(ipsrc)) >= sizeof(ipsrc)) {
126 cp = strchr(ipsrc, ' ');
128 syslog(LOG_ERR, "corrupt SSH_CLIENT variable %s", ipsrc);
132 if (inet_pton(AF_INET, ipsrc, &ina) != 1 &&
133 inet_pton(AF_INET6, ipsrc, &ina) != 1) {
135 "cannot determine IP from SSH_CLIENT %s", ipsrc);
205 PATH_PIDFILE, user_ip ? ipsrc : luser);
263 otherpid, ipsrc, otherluser);
332 if (change_filter(1, luser, ipsrc) == -1) {
336 if (user_ip && change_table(1, ipsrc) == -1) {
338 change_filter(0, luser, ipsrc);
344 printf("You are authenticated from host \"%s\"\r\n", ipsrc);
345 setproctitle("%s@%s", luser, ipsrc);
748 * Add/remove filter entries for user "luser" from ip "ipsrc"
767 syslog(LOG_ERR, "invalid luser/ipsrc");
868 syslog(LOG_ERR, "invalid ipsrc");
898 if (inet_pton(AF_INET, ipsrc, &target.v4) == 1)
900 else if (inet_pton(AF_INET6, ipsrc, &target.v6) == 1)
903 syslog(LOG_ERR, "inet_pton(%s) failed", ipsrc);
907 /* Kill all states from ipsrc */
915 /* Kill all states to ipsrc */
945 change_filter(0, luser, ipsrc);
947 change_table(0, ipsrc);