--- zzzz-none-000/linux-4.9.279/include/uapi/linux/in.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/include/uapi/linux/in.h 2023-02-08 10:58:16.000000000 +0000 @@ -15,6 +15,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 @@ -118,6 +122,19 @@ #define IP_CHECKSUM 23 #define IP_BIND_ADDRESS_NO_PORT 24 +/* +* 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 */ @@ -224,6 +241,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) */