Subject SHA-1 Author Date
Added support for FORCE_NET_V*_CONN_ERROR to return an error for connect syscall c221dc3ff63bcd28c2053694177a9a09ef9a6570 Catalin(ux) M. BOIE 2019-03-20 18:26:19
rpm changelog e7127f5191015b0b93c7108b6fa02fde7f0fe909 Catalin(ux) M. BOIE 2019-02-05 21:10:57
duilder update 71425ef75fbc076d6601ceadd52e81e678aabe57 Catalin(ux) M. BOIE 2019-02-05 21:09:29
Switch to v0.13 7a5ed99fa6629ff9dbe16f6b015712a78854b621 Catalin(ux) M. BOIE 2019-02-05 21:08:06
Lots of changes e11f13f4d11723f0c2c833ffbaca89e55d74e139 Catalin(ux) M. BOIE 2019-01-16 20:18:06
Restart accept interrupted by signal d84134f3193fd2d4c5298eaded8ffade5d74d220 Catalin(ux) M. BOIE 2014-11-11 06:57:12
Bump version to 0.12 ea1c70a262b706cd45f1eb98b6aa9805de300647 Catalin(ux) M. BOIE 2014-10-14 03:14:29
Added support to change poll timeout d0e5782e1fb0da5db1291b3c518486d3ac8dec97 Catalin(ux) M. BOIE 2014-10-14 03:13:58
Fixed strcmp on a NULL variable 59df6d596e3c842227f4f374b4b6635de3ce1c3e Catalin(ux) M. BOIE 2014-10-14 03:12:29
Added support for deny and fake for Kevin d9598fd2ca7886484b78512d71dbd29059720832 Catalin(ux) M. BOIE 2012-07-18 21:13:20
Commit 59df6d596e3c842227f4f374b4b6635de3ce1c3e - Fixed strcmp on a NULL variable
Author: Catalin(ux) M. BOIE
Author date (UTC): 2014-10-14 03:12
Committer: Catalin(ux) M. BOIE
Commit date (UTC): 2014-10-14 03:12
Tree: 1125e01fb369772f3f45ba8cbe5ebe9ef349823a
Parents: d9598fd2ca7886484b78512d71dbd29059720832
File Lines added Lines deleted
force_bind.c 3 3

File force_bind.c changed (mode: 100644) (index 644e3a7..02b98b8)
... ... static int alter_sa(const int sockfd, struct sockaddr *sa)
762 762 struct sockaddr_in6 *sa6; struct sockaddr_in6 *sa6;
763 763 unsigned short *pport = NULL; unsigned short *pport = NULL;
764 764 void *p; void *p;
765 char *force_address;
765 char *force_address = NULL;
766 766 int force_port; int force_port;
767 767 int err, ret = 0; int err, ret = 0;
768 768
 
... ... int bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)
917 917 } }
918 918
919 919 /* Test if we should deny the bind */ /* Test if we should deny the bind */
920 if (strcmp(force_address, "deny") == 0) {
920 if (force_address && (strcmp(force_address, "deny") == 0)) {
921 921 xlog(1, "\tDeny binding to %s\n", tmp); xlog(1, "\tDeny binding to %s\n", tmp);
922 922 errno = EACCES; errno = EACCES;
923 923 return -1; return -1;
924 924 } }
925 925
926 if (strcmp(force_address, "fake") == 0) {
926 if (force_address && (strcmp(force_address, "fake") == 0)) {
927 927 xlog(1, "\tFake binding to %s\n", tmp); xlog(1, "\tFake binding to %s\n", tmp);
928 928 return 0; return 0;
929 929 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/catalinux/force_bind

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/force_bind

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/force_bind

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master