--- zzzz-none-000/linux-5.15.111/include/uapi/linux/in.h 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/include/uapi/linux/in.h 2024-02-07 09:28:08.000000000 +0000 @@ -16,6 +16,10 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ +/* +Includes Intel Corporation's changes/modifications dated: 2014-2019. +Changed/modified portions - Copyright © 2019, Intel Corporation. +*/ #ifndef _UAPI_LINUX_IN_H #define _UAPI_LINUX_IN_H @@ -125,6 +129,19 @@ #define IP_RECVFRAGSIZE 25 #define IP_RECVERR_RFC4884 26 +/* +* TI Extension: +* socket option for ability to recieve the relevent for +* cable TI modem information through the IPv4 socket. +*/ +#ifdef CONFIG_TI_IP_PKTINFO_SOCKOPT +#define TI_IP_PKTINFO 100 +#endif + +/* TI Extension to pass meta data through sockets. */ +#ifdef CONFIG_TI_META_DATA +#define TI_IP_META_DATA 18 +#endif /* CONFIG_TI_META_DATA */ /* IP_MTU_DISCOVER values */ #define IP_PMTUDISC_DONT 0 /* Never send DF frames */ #define IP_PMTUDISC_WANT 1 /* Use per route hints */ @@ -253,6 +270,22 @@ }; #endif +/* +* TI Extension: +* data structure for passing the needed information +* about the incoming packet. Currently we only need a small element +*/ +#ifdef CONFIG_TI_IP_PKTINFO_SOCKOPT +#ifndef TI_PKTINFO_STRUCT +#define TI_PKTINFO_STRUCT +struct ti_pktinfo +{ + int ifcpe_side; + char mac_addr[6]; +}; +#endif +#endif + /* Structure describing an Internet (IP) socket address. */ #if __UAPI_DEF_SOCKADDR_IN #define __SOCK_SIZE__ 16 /* sizeof(struct sockaddr) */