Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[access lists] use arrays to access per-protocol functions
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
- Loading branch information
Showing
8 changed files
with
110 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* Copyright (C) 2016-2018 Red Hat, Inc. All rights reserved. | ||
* | ||
* Author: Christine Caulfield <ccaulfie@redhat.com> | ||
* | ||
* This software licensed under GPL-2.0+, LGPL-2.0+ | ||
*/ | ||
|
||
#include "config.h" | ||
|
||
#include <errno.h> | ||
|
||
#include "internals.h" | ||
#include "logging.h" | ||
#include "transports.h" | ||
#include "links_acl.h" | ||
#include "links_acl_loopback.h" | ||
|
||
int loopbackcheck_validate(void *fd_tracker_match_entry_head, struct sockaddr_storage *checkip) | ||
{ | ||
return 1; | ||
} | ||
|
||
void loopbackcheck_rmall(void *fd_tracker_match_entry_head) | ||
{ | ||
return; | ||
} | ||
|
||
int loopbackcheck_rm(void *fd_tracker_match_entry_head, | ||
struct sockaddr_storage *ip1, struct sockaddr_storage *ip2, | ||
check_type_t type, check_acceptreject_t acceptreject) | ||
{ | ||
return 0; | ||
} | ||
|
||
int loopbackcheck_add(void *fd_tracker_match_entry_head, | ||
struct sockaddr_storage *ip1, struct sockaddr_storage *ip2, | ||
check_type_t type, check_acceptreject_t acceptreject) | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (C) 2016-2018 Red Hat, Inc. All rights reserved. | ||
* | ||
* Author: Christine Caulfield <ccaulfie@redhat.com> | ||
* | ||
* This software licensed under GPL-2.0+, LGPL-2.0+ | ||
*/ | ||
|
||
#ifndef __KNET_LINKS_ACL_LOOPBACK_H__ | ||
#define __KNET_LINKS_ACL_LOOPBACK_H__ | ||
|
||
#include "internals.h" | ||
#include "links_acl.h" | ||
|
||
int loopbackcheck_validate(void *fd_tracker_match_entry_head, struct sockaddr_storage *checkip); | ||
|
||
int loopbackcheck_add(void *fd_tracker_match_entry_head, | ||
struct sockaddr_storage *ip1, struct sockaddr_storage *ip2, | ||
check_type_t type, check_acceptreject_t acceptreject); | ||
|
||
int loopbackcheck_rm(void *fd_tracker_match_entry_head, | ||
struct sockaddr_storage *ip1, struct sockaddr_storage *ip2, | ||
check_type_t type, check_acceptreject_t acceptreject); | ||
|
||
void loopbackcheck_rmall(void *fd_tracker_match_entry_head); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters