- Explicitly include nghttp2.h file GH #4135
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [x] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #4135
#### Description
<!-- Describe your changes in detail -->
Explicitly include nghttp2.h file in `src/modules/nghttp2/nghttp2_mod.c` and `src/modules/nghttp2/nghttp2_server.c`
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4136
-- Commit Summary --
* nghttp2: compilation with gcc 14
-- File Changes --
M src/modules/nghttp2/nghttp2_mod.c (1)
M src/modules/nghttp2/nghttp2_server.c (1)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4136.patchhttps://github.com/kamailio/kamailio/pull/4136.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4136
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4136(a)github.com>
related #3886
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3978
-- Commit Summary --
* geoip: module relocated to archive
-- File Changes --
M src/Makefile.groups (8)
D src/modules/geoip/Makefile (9)
D src/modules/geoip/README (166)
D src/modules/geoip/doc/Makefile (4)
D src/modules/geoip/doc/geoip.xml (42)
D src/modules/geoip/doc/geoip_admin.xml (199)
D src/modules/geoip/geoip_mod.c (157)
D src/modules/geoip/geoip_pv.c (421)
D src/modules/geoip/geoip_pv.h (40)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3978.patchhttps://github.com/kamailio/kamailio/pull/3978.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3978
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3978(a)github.com>
Module: kamailio
Branch: master
Commit: a086b23458f1019e9f3ac5d66ae6f19074ff543e
URL: https://github.com/kamailio/kamailio/commit/a086b23458f1019e9f3ac5d66ae6f19…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2025-02-04T19:35:52+01:00
core: ut.h - function split time in two signed integers
- the lower 4 bytes are returned, the upper 4 bytes can be stored in the
second parameter
---
Modified: src/core/ut.h
---
Diff: https://github.com/kamailio/kamailio/commit/a086b23458f1019e9f3ac5d66ae6f19…
Patch: https://github.com/kamailio/kamailio/commit/a086b23458f1019e9f3ac5d66ae6f19…
---
diff --git a/src/core/ut.h b/src/core/ut.h
index 29faca83fc2..f1829f73ca0 100644
--- a/src/core/ut.h
+++ b/src/core/ut.h
@@ -1155,6 +1155,12 @@ static inline int strno2int(str *val, unsigned int *mask)
}
}
+/**
+ * split time value in two (upper and lower 4-bytes) unsigned int values
+ * - time value representation on 8 bytes: UUUULLLL
+ * - lower 4 bytes are returned (LLLL)
+ * - upper 4 bytes can be stored in second paramter (UUUU)
+ */
static inline unsigned int ksr_time_uint(time_t *tv, unsigned int *tu)
{
unsigned int tl; /* lower 4 bytes */
@@ -1176,6 +1182,33 @@ static inline unsigned int ksr_time_uint(time_t *tv, unsigned int *tu)
return tl;
}
+/**
+ * split time value in two (upper and lower 4-bytes) signed int values
+ * - time value representation on 8 bytes: UUUULLLL
+ * - lower 4 bytes are returned (LLLL)
+ * - upper 4 bytes can be stored in second paramter (UUUU)
+ */
+static inline int ksr_time_sint(time_t *tv, int *tu)
+{
+ int tl; /* lower 4 bytes */
+ long long v64;
+ time_t t;
+
+ if(tv != NULL) {
+ t = *tv;
+ } else {
+ t = time(NULL);
+ }
+ v64 = (long long)t;
+ tl = (int)(v64 & 0xFFFFFFFFLL);
+ if(tu != NULL) {
+ /* upper 4 bytes */
+ *tu = (int)((v64 >> 32) & 0xFFFFFFFFLL);
+ }
+
+ return tl;
+}
+
/* converts a username into uid:gid,
* returns -1 on error & 0 on success */
int user2uid(int *uid, int *gid, char *user);
Opening this generic issue to track how some commands from old Makefiles can be done when using the new CMake-based build system, or what the possible alternatives. Hopefully we can build some knowledge here that can be then transferred to the wiki cmake tutorials.
### Compiling core only
With the old makefiles, the `make` compiled only the core of Kamailio. With cmake, `make` compiles everything.
Would it be possible to have a command with cmake that compiles only the core? Like:
```
make core
```
Or maybe there is a way to do it already?!?
### Compile a single module
With the old makefiles, compiling a single module, say acc, was possible with:
```
make modules modules=src/modules/acc
```
With cmake, this is possible with:
```
make acc
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4052
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4052(a)github.com>
Discussion to define cmake format options and coding/naming styles. It is better to define most of them now to have coherency in the future. Started from the discussion on #4066.
Comment with what you would like to have, describing when useful why your proposal is a good/better option.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4075
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4075(a)github.com>
### Description
The Alpine Linux APKBUILD file is a bit old and some of the modules added over the last few years are missing. I compile my own .apk files with an updated APKBUILD file which I can provide in a pull request. These modules are:
- app_python3s
- app_ruby_proc
- call_obj
- dlgs
- ims_qos_npn
- jwt
- kafka
- keepalive
- kemix
- lost
- lrkproxy
- math
- mqtt
- nghttp2
- posops
- presence_dfks
- pv_headers
- pvtpl
- secfilter
- slack
- ss7ops
- sworker
- topos_htable
- xhttp_prom
#### Reproduction
The modules simply aren't listed in the APKBUILD file
### Possible Solutions
Update APKBUILD file.
### Additional Information
* **Operating System**:
*
Alpine Linux, 3.20, 3.21
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4131
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4131(a)github.com>