Skip to content

Add DTLS 1.2 Mulicast Example.#554

Open
anhu wants to merge 5 commits intowolfSSL:masterfrom
anhu:dtlsmcast
Open

Add DTLS 1.2 Mulicast Example.#554
anhu wants to merge 5 commits intowolfSSL:masterfrom
anhu:dtlsmcast

Conversation

@anhu
Copy link
Member

@anhu anhu commented Jan 29, 2026

This commit leaned heavily on Claude.

This commit leaned heavily on Claude.
Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of build warnings:

bash-3.2$ make
gcc -o mcast-peer mcast-peer.c -Wall -Wextra  -Os -lwolfssl -lm -lpthread
mcast-peer.c:186:9: warning: unused variable 'ret' [-Wunused-variable]
    int ret;
        ^
mcast-peer.c:188:9: warning: unused variable 'txSd' [-Wunused-variable]
    int txSd = -1;
        ^
mcast-peer.c:189:9: warning: unused variable 'rxSd' [-Wunused-variable]
    int rxSd = -1;
        ^
mcast-peer.c:190:18: warning: unused variable 'ctx' [-Wunused-variable]
    WOLFSSL_CTX* ctx = NULL;
                 ^
mcast-peer.c:191:14: warning: unused variable 'sslTx' [-Wunused-variable]
    WOLFSSL* sslTx = NULL;
             ^
mcast-peer.c:192:14: warning: unused variable 'sslRx' [-Wunused-variable]
    WOLFSSL* sslRx = NULL;
             ^
mcast-peer.c:193:24: warning: unused variable 'txAddr' [-Wunused-variable]
    struct sockaddr_in txAddr;
                       ^
mcast-peer.c:194:9: warning: unused variable 'i' [-Wunused-variable]
    int i;
        ^
mcast-peer.c:197:19: warning: unused variable 'pms' [-Wunused-variable]
    unsigned char pms[PMS_SIZE];
                  ^
mcast-peer.c:198:19: warning: unused variable 'clientRandom' [-Wunused-variable]
    unsigned char clientRandom[RANDOM_SIZE];
                  ^
mcast-peer.c:199:19: warning: unused variable 'serverRandom' [-Wunused-variable]
    unsigned char serverRandom[RANDOM_SIZE];
                  ^
mcast-peer.c:201:19: warning: unused variable 'suite' [-Wunused-variable]
    unsigned char suite[2] = { 0x00, 0xFE };
                  ^
mcast-peer.c:203:12: warning: unused variable 'lastSend' [-Wunused-variable]
    time_t lastSend = 0;
           ^
mcast-peer.c:204:9: warning: unused variable 'msgCount' [-Wunused-variable]
    int msgCount = 0;
        ^
mcast-peer.c:76:12: warning: unused function 'setup_tx_socket' [-Wunused-function]
static int setup_tx_socket(struct sockaddr_in* txAddr)
           ^
mcast-peer.c:121:12: warning: unused function 'setup_rx_socket' [-Wunused-function]
static int setup_rx_socket(void)
           ^
16 warnings generated.

@JacobBarthelmeh JacobBarthelmeh assigned anhu and unassigned wolfSSL-Bot Jan 30, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@anhu anhu requested a review from JacobBarthelmeh February 4, 2026 17:49
@anhu anhu assigned JacobBarthelmeh and anhu and unassigned anhu and JacobBarthelmeh Feb 4, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@anhu anhu assigned JacobBarthelmeh and unassigned anhu Feb 5, 2026
@anhu anhu removed their assignment Feb 6, 2026
Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this currently build for you? Am seeing the error:

bash-3.2$ cd dtls-mcast/
bash-3.2$ make clean
rm -f mcast-peer
bash-3.2$ make
gcc -o mcast-peer mcast-peer.c -Wall -I/usr/local/include -L/usr/local/lib -lwolfssl -lm
mcast-peer.c:67:30: error: cannot combine with previous 'type-name' declaration specifier
static volatile sig_atomic_t int running = 1;
                             ^
1 error generated.
make: *** [mcast-peer] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants