--- zzzz-none-000/linux-4.4.271/include/net/protocol.h 2021-06-03 06:22:09.000000000 +0000 +++ maple-fsgw-759/linux-4.4.271/include/net/protocol.h 2023-12-20 10:37:37.000000000 +0000 @@ -104,6 +104,8 @@ int inet_del_protocol(const struct net_protocol *prot, unsigned char num); int inet_add_offload(const struct net_offload *prot, unsigned char num); int inet_del_offload(const struct net_offload *prot, unsigned char num); +int inet_update_protocol(const struct net_protocol *new_prot, + unsigned char num, const struct net_protocol **old_prot); void inet_register_protosw(struct inet_protosw *p); void inet_unregister_protosw(struct inet_protosw *p); @@ -113,6 +115,8 @@ #if IS_ENABLED(CONFIG_IPV6) int inet6_add_protocol(const struct inet6_protocol *prot, unsigned char num); int inet6_del_protocol(const struct inet6_protocol *prot, unsigned char num); +int inet6_update_protocol(const struct inet6_protocol *new_prot, + unsigned char num, const struct inet6_protocol **old_prot); int inet6_register_protosw(struct inet_protosw *p); void inet6_unregister_protosw(struct inet_protosw *p); #endif