--- zzzz-none-000/linux-3.10.107/net/ipv4/af_inet.c 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/net/ipv4/af_inet.c 2021-11-10 11:53:56.000000000 +0000 @@ -119,6 +119,9 @@ #include #endif +#ifdef CONFIG_AVM_PA +#include +#endif /* The inetsw table contains everything that inet_create needs to * build a new socket. @@ -1808,6 +1811,18 @@ ipfrag_init(); +#ifdef CONFIG_AVM_PA + { + struct avm_pa_pid_cfg cfg; + snprintf(cfg.name, sizeof(cfg.name), "ipv4"); + cfg.framing = avm_pa_framing_ptype; + cfg.default_mtu = 0xffff; + cfg.ptype = &ip_packet_type; + if(avm_pa_dev_pid_register(AVM_PA_PTYPE_DEVINFO(&ip_packet_type), &cfg) < 0) + printk(KERN_ERR "%s: failed to register PA PID\n", cfg.name); + } +#endif + dev_add_pack(&ip_packet_type); rc = 0;