Changeset 15933 in vbox for trunk/src/VBox/Devices/Network/slirp
- Timestamp:
- Jan 14, 2009 10:28:22 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41564
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/if.h
r15768 r15933 40 40 #define ETH_P_IP 0x0800 /* Internet Protocol packet */ 41 41 42 #ifdef ETH_P_IPV6 43 # undef ETH_P_IPV6 44 #endif /* ETH_P_IPV6 */ 45 #define ETH_P_IPV6 0x86DD /* IPv6 */ 46 42 47 #endif -
trunk/src/VBox/Devices/Network/slirp/slirp.c
r15914 r15933 1058 1058 struct mbuf *m; 1059 1059 int proto; 1060 static bool fWarnedIpv6; 1060 1061 1061 1062 if (pkt_len < ETH_HLEN) 1062 1063 { 1063 LogRel((" packet having size %d has been ingnored\n", pkt_len));1064 LogRel(("NAT: packet having size %d has been ingnored\n", pkt_len)); 1064 1065 return; 1065 1066 } … … 1067 1068 m = m_get(pData); 1068 1069 if (m == NULL) 1069 {1070 1070 LogRel(("can't allocate new mbuf\n")); 1071 } 1071 1072 1072 /* Note: we add to align the IP header */ 1073 1073 1074 1074 if (M_FREEROOM(m) < pkt_len) 1075 {1076 1075 m_inc(m, pkt_len); 1077 } 1076 1078 1077 m->m_len = pkt_len ; 1079 1078 memcpy(m->m_data, pkt, pkt_len); … … 1098 1097 ip_input(pData, m); 1099 1098 break; 1099 case ETH_P_IPV6: 1100 m_free(pData, m); 1101 if (!fWarnedIpv6) 1102 { 1103 LogRel(("NAT: IPv6 not supported\n")); 1104 fWarnedIpv6 = true; 1105 } 1106 break; 1100 1107 default: 1101 LogRel((" Unsupported protocol %x\n", proto));1108 LogRel(("NAT: Unsupported protocol %x\n", proto)); 1102 1109 m_free(pData, m); 1103 1110 break;
Note:
See TracChangeset
for help on using the changeset viewer.