/* * Copyright (c) 2019 AVM GmbH . * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #pragma once #include /* utilities */ int hwpa_pktcmp(const struct sk_buff *skb1,const struct sk_buff *skb2); const void *hwpa_get_hdr(const struct avm_pa_pkt_match *match, unsigned char type); struct sk_buff *hwpa_pkt_push_tcp(struct sk_buff *skb); struct sk_buff *hwpa_pkt_push_udp(struct sk_buff *skb); struct sk_buff *hwpa_pkt_push_ipv4(struct sk_buff *skb); struct sk_buff *hwpa_pkt_push_ipv6(struct sk_buff *skb); struct sk_buff *hwpa_pkt_push_pppoe(struct sk_buff *skb); struct sk_buff *hwpa_pkt_push_vlan(struct sk_buff *skb); struct sk_buff *hwpa_pkt_push_eth(struct sk_buff *skb); struct sk_buff *hwpa_pkt_alloc(unsigned int payload); struct net_device *hwpa_get_netdev(avm_pid_handle pid);