ng_nat.c (b7841ae6501e2cbb0a3d90ea412f2591d4b17f55) | ng_nat.c (66351f5126ac27d55d0014568ee9b5319e46c01b) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright 2005, Gleb Smirnoff <glebius@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 781 unchanged lines hidden (view full) --- 790 791 if (m->m_pkthdr.len < sizeof(struct ether_header)) { 792 NG_FREE_ITEM(item); 793 return (ENXIO); 794 } 795 eh = mtod(m, struct ether_header *); 796 switch (ntohs(eh->ether_type)) { 797 case ETHERTYPE_IP: | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright 2005, Gleb Smirnoff <glebius@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 781 unchanged lines hidden (view full) --- 790 791 if (m->m_pkthdr.len < sizeof(struct ether_header)) { 792 NG_FREE_ITEM(item); 793 return (ENXIO); 794 } 795 eh = mtod(m, struct ether_header *); 796 switch (ntohs(eh->ether_type)) { 797 case ETHERTYPE_IP: |
798 case ETHERTYPE_IPV6: | |
799 ipofs = sizeof(struct ether_header); 800 break; 801 default: 802 goto send; 803 } 804 break; 805 } 806 default: --- 156 unchanged lines hidden --- | 798 ipofs = sizeof(struct ether_header); 799 break; 800 default: 801 goto send; 802 } 803 break; 804 } 805 default: --- 156 unchanged lines hidden --- |