List of commits:
Subject Hash Author Date (UTC)
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
Log also the version in the log file. d5576baff697e87dfbbbcbfb77df4b364cee15a2 Catalin(ux) M. BOIE 2011-08-25 18:55:40
SOCK_DCCP is not defined on CentOS. :( 303830a06b80962e417c01d88cae6d50e9182662 Catalin(ux) M. BOIE 2011-08-25 09:46:09
More fixes for spec file 06d8c98718977c91419ffd6cabdd3e6bb57b8043 Catalin(ux) M. BOIE 2011-08-24 20:29:10
Added example for config file. 20becba1955981d5c3642e802031c08c25c701cf Catalin(ux) M. BOIE 2011-08-24 20:26:19
Bump version to 0.10. 9659780e6f025d10441c354eefe79e327a660c09 Catalin(ux) M. BOIE 2011-08-24 20:20:26
Ignore more files in repo. c1121dc5f6644043314880361c24fc2172326c02 Catalin(ux) M. BOIE 2011-08-24 20:20:00
Big fix for stuck programs. Stupid. f0ea19d9130bdc8851f08fb16a61a7be8da002cd Catalin(ux) M. BOIE 2011-08-24 20:19:56
More duilder updates 83d91834796de59a679545c25d62a423d6f04f0e Catalin(ux) M. BOIE 2011-08-24 20:17:33
More stuff added to TODO aaf5da40115dc3ee2562f42522468f5bd9362012 Catalin(ux) M. BOIE 2011-08-24 20:17:11
Corrected a merge problem. bb0ce0b8b1c869572d15babb81543154f0c5db39 Catalin(ux) M. BOIE 2011-08-24 03:41:36
Bump version to 0.9. 97343f56db715658dc0fbf6179db0d300c5d8545 Catalin(ux) M. BOIE 2011-08-24 03:37:36
Remove the need for SO_DOMAIN because we can get domain from accepting socket. a027bcfd13a15a98dd2a5db924af77199e156c7f Catalin(ux) M. BOIE 2011-08-10 20:19:38
SO_MARK may not be defined by glibc. 2204bbcf4b4480008cabc0e330f64460a8995255 Catalin(ux) M. BOIE 2011-08-10 20:08:43
Removed some debugging leftovers. 3b71558fc26d7958f83362926555c1f4100a57ab Catalin(ux) M. BOIE 2011-08-23 22:18:02
Spec files updates. 7a09b21c11b8d3c562544826c1fddb6009b16263 Catalin(ux) M. BOIE 2011-08-22 21:30:13
Duilder updates. f2b462384459025a3ffdcb8ebffcb070d8289ca7 Catalin(ux) M. BOIE 2011-08-22 21:29:51
Bump version to 0.8. e330ad91c75eeb6e627c6725b17fcc69d01eac50 Catalin(ux) M. BOIE 2011-08-22 15:17:00
Added a good example for tc prio classification. 32b9078e47fccc09527ca2c11904f82879934da3 Catalin(ux) M. BOIE 2011-08-22 15:16:21
Commit 59df6d596e3c842227f4f374b4b6635de3ce1c3e - Fixed strcmp on a NULL variable
Author: Catalin(ux) M. BOIE
Author date (UTC): 2014-10-14 03:12
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2014-10-14 03:12
Parent(s): d9598fd2ca7886484b78512d71dbd29059720832
Signing key:
Tree: 1125e01fb369772f3f45ba8cbe5ebe9ef349823a
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 merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main