This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TM4C1290NCPDT: RAW socket support

Part Number: TM4C1290NCPDT
Other Parts Discussed in Thread: TM4C1294NCPDT

Tool/software: TI-RTOS

I am using TM4C1294NCPDT processor and NDK v2.16.01.14.  My code works fine when using SOCK_DGRAM sockets, but when I change to a SOCK_RAW socket, I can't receive any packets.

Are RAW sockets supported?  If so, can you point me to a working example?

  • Hi Juan,

    It is supported. You can look in an NSP for processors for SOCK_RAW examples. For example in NSP 1.10.03.15, there is the following in the
    nsp_1_10_03_15\packages\ti\ndk\examples\ndk_evm6748_elf_cfgdemo\cfgdemo.c file:

    s = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
    if( s == INVALID_SOCKET )