Module: kamailio Branch: master Commit: 0792f6e5f9b8e43981f8dfa87a860f578d16da1e URL: https://github.com/kamailio/kamailio/commit/0792f6e5f9b8e43981f8dfa87a860f57...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2020-11-26T09:50:00+01:00
core: added flags field for received info structure
---
Modified: src/core/ip_addr.h
---
Diff: https://github.com/kamailio/kamailio/commit/0792f6e5f9b8e43981f8dfa87a860f57... Patch: https://github.com/kamailio/kamailio/commit/0792f6e5f9b8e43981f8dfa87a860f57...
---
diff --git a/src/core/ip_addr.h b/src/core/ip_addr.h index 7373e7bc24..8e26ee0c47 100644 --- a/src/core/ip_addr.h +++ b/src/core/ip_addr.h @@ -145,6 +145,10 @@ typedef struct snd_flags { unsigned short blst_imask; /* blocklist ignore mask */ } snd_flags_t;
+/* recv flags */ +typedef enum recv_flags { + RECV_F_INTERNAL = (1 << 0), /* */ +} recv_flags_t;
typedef struct receive_info { struct ip_addr src_ip; @@ -156,6 +160,7 @@ typedef struct receive_info { union sockaddr_union src_su; /* useful for replies*/ struct socket_info* bind_address; /* sock_info structure on which * the msg was received */ + recv_flags_t rflags; /* flags */ char proto; #ifdef USE_COMP char proto_pad0; /* padding field */