Changeset 15093 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Dec 8, 2008 8:03:57 AM (16 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/bootp.h
r14964 r15093 1 1 /* bootp/dhcp defines */ 2 2 3 #define BOOTP_SERVER 4 #define BOOTP_CLIENT 3 #define BOOTP_SERVER 67 4 #define BOOTP_CLIENT 68 5 5 6 #define BOOTP_REQUEST 7 #define BOOTP_REPLY 6 #define BOOTP_REQUEST 1 7 #define BOOTP_REPLY 2 8 8 9 #define RFC1533_COOKIE 10 #define RFC1533_PAD 11 #define RFC1533_NETMASK 12 #define RFC1533_TIMEOFFSET 13 #define RFC1533_GATEWAY 14 #define RFC1533_TIMESERVER 15 #define RFC1533_IEN116NS 16 #define RFC1533_DNS 17 #define RFC1533_LOGSERVER 18 #define RFC1533_COOKIESERVER 19 #define RFC1533_LPRSERVER 20 #define RFC1533_IMPRESSSERVER 21 #define RFC1533_RESOURCESERVER 22 #define RFC1533_HOSTNAME 23 #define RFC1533_BOOTFILESIZE 24 #define RFC1533_MERITDUMPFILE 25 #define RFC1533_DOMAINNAME 26 #define RFC1533_SWAPSERVER 27 #define RFC1533_ROOTPATH 28 #define RFC1533_EXTENSIONPATH 29 #define RFC1533_IPFORWARDING 30 #define RFC1533_IPSOURCEROUTING 31 #define RFC1533_IPPOLICYFILTER 32 #define RFC1533_IPMAXREASSEMBLY 33 #define RFC1533_IPTTL 34 #define RFC1533_IPMTU 35 #define RFC1533_IPMTUPLATEAU 36 #define RFC1533_INTMTU 37 #define RFC1533_INTLOCALSUBNETS 38 #define RFC1533_INTBROADCAST 39 #define RFC1533_INTICMPDISCOVER 40 #define RFC1533_INTICMPRESPOND 9 #define RFC1533_COOKIE 99, 130, 83, 99 10 #define RFC1533_PAD 0 11 #define RFC1533_NETMASK 1 12 #define RFC1533_TIMEOFFSET 2 13 #define RFC1533_GATEWAY 3 14 #define RFC1533_TIMESERVER 4 15 #define RFC1533_IEN116NS 5 16 #define RFC1533_DNS 6 17 #define RFC1533_LOGSERVER 7 18 #define RFC1533_COOKIESERVER 8 19 #define RFC1533_LPRSERVER 9 20 #define RFC1533_IMPRESSSERVER 10 21 #define RFC1533_RESOURCESERVER 11 22 #define RFC1533_HOSTNAME 12 23 #define RFC1533_BOOTFILESIZE 13 24 #define RFC1533_MERITDUMPFILE 14 25 #define RFC1533_DOMAINNAME 15 26 #define RFC1533_SWAPSERVER 16 27 #define RFC1533_ROOTPATH 17 28 #define RFC1533_EXTENSIONPATH 18 29 #define RFC1533_IPFORWARDING 19 30 #define RFC1533_IPSOURCEROUTING 20 31 #define RFC1533_IPPOLICYFILTER 21 32 #define RFC1533_IPMAXREASSEMBLY 22 33 #define RFC1533_IPTTL 23 34 #define RFC1533_IPMTU 24 35 #define RFC1533_IPMTUPLATEAU 25 36 #define RFC1533_INTMTU 26 37 #define RFC1533_INTLOCALSUBNETS 27 38 #define RFC1533_INTBROADCAST 28 39 #define RFC1533_INTICMPDISCOVER 29 40 #define RFC1533_INTICMPRESPOND 30 41 41 #define RFC1533_INTROUTEDISCOVER 31 42 #define RFC1533_INTROUTESOLICIT 43 #define RFC1533_INTSTATICROUTES 44 #define RFC1533_LLTRAILERENCAP 45 #define RFC1533_LLARPCACHETMO 46 #define RFC1533_LLETHERNETENCAP 47 #define RFC1533_TCPTTL 48 #define RFC1533_TCPKEEPALIVETMO 49 #define RFC1533_TCPKEEPALIVEGB 50 #define RFC1533_NISDOMAIN 51 #define RFC1533_NISSERVER 52 #define RFC1533_NTPSERVER 53 #define RFC1533_VENDOR 54 #define RFC1533_NBNS 55 #define RFC1533_NBDD 56 #define RFC1533_NBNT 57 #define RFC1533_NBSCOPE 58 #define RFC1533_XFS 59 #define RFC1533_XDM 42 #define RFC1533_INTROUTESOLICIT 32 43 #define RFC1533_INTSTATICROUTES 33 44 #define RFC1533_LLTRAILERENCAP 34 45 #define RFC1533_LLARPCACHETMO 35 46 #define RFC1533_LLETHERNETENCAP 36 47 #define RFC1533_TCPTTL 37 48 #define RFC1533_TCPKEEPALIVETMO 38 49 #define RFC1533_TCPKEEPALIVEGB 39 50 #define RFC1533_NISDOMAIN 40 51 #define RFC1533_NISSERVER 41 52 #define RFC1533_NTPSERVER 42 53 #define RFC1533_VENDOR 43 54 #define RFC1533_NBNS 44 55 #define RFC1533_NBDD 45 56 #define RFC1533_NBNT 46 57 #define RFC1533_NBSCOPE 47 58 #define RFC1533_XFS 48 59 #define RFC1533_XDM 49 60 60 61 #define RFC2132_REQ_ADDR 61 #define RFC2132_REQ_ADDR 50 62 62 #define RFC2132_LEASE_TIME 51 63 #define RFC2132_MSG_TYPE 64 #define RFC2132_SRV_ID 65 #define RFC2132_PARAM_LIST 66 #define RFC2132_MAX_SIZE 63 #define RFC2132_MSG_TYPE 53 64 #define RFC2132_SRV_ID 54 65 #define RFC2132_PARAM_LIST 55 66 #define RFC2132_MAX_SIZE 57 67 67 #define RFC2132_RENEWAL_TIME 58 68 68 #define RFC2132_REBIND_TIME 59 69 69 70 #define DHCPDISCOVER 71 #define DHCPOFFER 72 #define DHCPREQUEST 73 #define DHCPACK 70 #define DHCPDISCOVER 1 71 #define DHCPOFFER 2 72 #define DHCPREQUEST 3 73 #define DHCPACK 5 74 74 #define DHCPNAK 6 75 #define DHCPRELEASE 75 #define DHCPRELEASE 7 76 76 77 #define RFC1533_VENDOR_MAJOR 78 #define RFC1533_VENDOR_MINOR 77 #define RFC1533_VENDOR_MAJOR 0 78 #define RFC1533_VENDOR_MINOR 0 79 79 80 #define RFC1533_VENDOR_MAGIC 81 #define RFC1533_VENDOR_ADDPARM 82 #define RFC1533_VENDOR_ETHDEV13080 #define RFC1533_VENDOR_MAGIC 128 81 #define RFC1533_VENDOR_ADDPARM 129 82 #define RFC1533_VENDOR_ETHDEV 130 83 83 #define RFC1533_VENDOR_HOWTO 132 84 #define RFC1533_VENDOR_MNUOPTS 84 #define RFC1533_VENDOR_MNUOPTS 160 85 85 #define RFC1533_VENDOR_SELECTION 176 86 #define RFC1533_VENDOR_MOTD 86 #define RFC1533_VENDOR_MOTD 184 87 87 #define RFC1533_VENDOR_NUMOFMOTD 8 88 #define RFC1533_VENDOR_IMG 89 #define RFC1533_VENDOR_NUMOFIMG 88 #define RFC1533_VENDOR_IMG 192 89 #define RFC1533_VENDOR_NUMOFIMG 16 90 90 91 #define RFC1533_END 92 #define BOOTP_VENDOR_LEN 93 #define DHCP_OPT_LEN 91 #define RFC1533_END 255 92 #define BOOTP_VENDOR_LEN 64 93 #define DHCP_OPT_LEN 312 94 94 95 95 struct bootp_t -
trunk/src/VBox/Devices/Network/slirp/ctl.h
r14333 r15093 1 #define CTL_CMD 2 #define CTL_EXEC 3 #define CTL_ALIAS 4 #define CTL_DNS 1 #define CTL_CMD 0 2 #define CTL_EXEC 1 3 #define CTL_ALIAS 2 4 #define CTL_DNS 3 5 5 #define CTL_BROADCAST 255 6 6 -
trunk/src/VBox/Devices/Network/slirp/ip_icmp.c
r15086 r15093 80 80 #else 81 81 pData->icmp_socket.s = IcmpCreateFile(); 82 82 pData->phEvents[VBOX_ICMP_EVENT_INDEX] = CreateEvent(NULL, FALSE, FALSE, NULL); 83 83 #endif 84 84 insque(pData, &pData->icmp_socket, &udb); -
trunk/src/VBox/Devices/Network/slirp/misc.h
r14964 r15093 11 11 struct ex_list 12 12 { 13 int ex_pty; 13 int ex_pty; /* Do we want a pty? */ 14 14 int ex_addr; /* The last byte of the address */ 15 15 int ex_fport; /* Port to telnet to */ … … 32 32 #define EMU_RSH 0x8 33 33 34 #define EMU_NOCONNECT 0x10 34 #define EMU_NOCONNECT 0x10 /* Don't connect */ 35 35 36 36 /* UDP emulations */ -
trunk/src/VBox/Devices/Network/slirp/socket.c
r15088 r15093 840 840 { 841 841 int len; 842 842 int i; 843 843 ICMP_ECHO_REPLY *icr; 844 844 u_char code = ~0; 845 845 len = IcmpParseReplies(pData->pvIcmpBuffer, pData->szIcmpBuffer); 846 846 if (len <= 0) { 847 847 LogRel(("Error (%d) occured on ICMP receiving \n", GetLastError())); -
trunk/src/VBox/Devices/Network/slirp/tcpip.h
r14964 r15093 1 1 /* 2 2 * Copyright (c) 1982, 1986, 1993 3 * 3 * The Regents of the University of California. All rights reserved. 4 4 * 5 5 * Redistribution and use in source and binary forms, with or without … … 13 13 * 3. All advertising materials mentioning features or use of this software 14 14 * must display the following acknowledgement: 15 * 16 * 15 * This product includes software developed by the University of 16 * California, Berkeley and its contributors. 17 17 * 4. Neither the name of the University nor the names of its contributors 18 18 * may be used to endorse or promote products derived from this software … … 31 31 * SUCH DAMAGE. 32 32 * 33 * @(#)tcpip.h8.1 (Berkeley) 6/10/9333 * @(#)tcpip.h 8.1 (Berkeley) 6/10/93 34 34 * tcpip.h,v 1.3 1994/08/21 05:27:40 paul Exp 35 35 */ … … 43 43 struct tcpiphdr 44 44 { 45 struct ipovly ti_i;/* overlaid ip structure */46 struct tcphdr ti_t;/* tcp header */45 struct ipovly ti_i; /* overlaid ip structure */ 46 struct tcphdr ti_t; /* tcp header */ 47 47 }; 48 #define ti_nextti_i.ih_next49 #define ti_prevti_i.ih_prev50 #define ti_x1ti_i.ih_x151 #define ti_prti_i.ih_pr52 #define ti_lenti_i.ih_len53 #define ti_srcti_i.ih_src54 #define ti_dstti_i.ih_dst55 #define ti_sportti_t.th_sport56 #define ti_dportti_t.th_dport57 #define ti_seqti_t.th_seq58 #define ti_ackti_t.th_ack59 #define ti_x2ti_t.th_x260 #define ti_offti_t.th_off61 #define ti_flagsti_t.th_flags62 #define ti_winti_t.th_win63 #define ti_sumti_t.th_sum64 #define ti_urpti_t.th_urp48 #define ti_next ti_i.ih_next 49 #define ti_prev ti_i.ih_prev 50 #define ti_x1 ti_i.ih_x1 51 #define ti_pr ti_i.ih_pr 52 #define ti_len ti_i.ih_len 53 #define ti_src ti_i.ih_src 54 #define ti_dst ti_i.ih_dst 55 #define ti_sport ti_t.th_sport 56 #define ti_dport ti_t.th_dport 57 #define ti_seq ti_t.th_seq 58 #define ti_ack ti_t.th_ack 59 #define ti_x2 ti_t.th_x2 60 #define ti_off ti_t.th_off 61 #define ti_flags ti_t.th_flags 62 #define ti_win ti_t.th_win 63 #define ti_sum ti_t.th_sum 64 #define ti_urp ti_t.th_urp 65 65 66 66 /*
Note:
See TracChangeset
for help on using the changeset viewer.