~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to modules/shared/vmxnet/eth_public.h

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-01-23 16:09:45 UTC
  • mfrom: (1.4.6) (2.4.26 sid)
  • Revision ID: package-import@ubuntu.com-20120123160945-b6s0r1vkcovucpf3
Tags: 2011.12.20-562307-0ubuntu1
* Merge latest upstream git tag. Fixes building on Precise
  (LP: #898289, LP: #905612)

* Items merged from Debian unstable:
  - debian/control:
    + open-vm-tools recommends open-vm-dkms. (LP: #598933)
    + open-vm-tools now suggests open-vm-toolbox. (LP: #604998)
  (From 2011.08.21-471295-1 release)
  - Updating maintainer and uploaders fields.
  - Removing vcs fields.
  - Removing references to Daniel's old email address.
  - Updating years in copyright file.
  - Updating to standards version 3.9.2.
  - Updating to debhelper version 8.
  - Switching to source format 3.0 (quilt).
  - Removing manual chrpath setting.
  - Removing exclusion from plugins from debhelper shlibs.
  - Rediffing kvers.patch.
  (From 2011.09.23-491607-1 release)
  - Marking binary architecture-dependend packages as linux and kfreebsd
  only.
  - Removing liburiparser-dev from build-depends as upstream dropped
  unity support.
  - Building with libproc-dev on amd64 again.
  - Dropping disabling of dnet support.
  (From 2011.09.23-491607-2 release)
  - Adding doxygen to build-depends for api documentation.
  - Adding libcunit1-dev to build-depends for test suites.
  - Minimizing rules file.
  - Adding open-vm-tools-dev package, containing only the api
    documentation for now.
  (From 2011.09.23-491607-3 release)
  - Sorting overrides in rules alphabetically.
  - Compacting copyright file.
  - Adding udev rule to set timeout for vmware scsi devices
  (From 2011.12.20-562307-1 release)
  - Adding patch to correct typo in upstreams dkms configuration

* Remaining Changes:
  - Remove Stable part of version numbering.
  - debian folder:
    + Re-added open-vm-dkms.postinst & open-vm-dkms.prerm.
      * Allows dkms modules to compile upon installation.
  - debian/control:
    + Re-add open-vm-source and make into a transitional package
      for open-vm-toolbox.
    + Return dependancies that were moved to open-vm-tools back to
      open-vm-toolbox.
  - debian/rules and debian/open-vm-toolbox.lintian-overrides:
    + Make vmware-user-suid-wrapper suid-root
  - debian/rules:
    + Added CFLAGS field with -Wno-deprecated-declarations
      * Will suppress issues with glib 2.31 or later.
    + Add line to copy vmware-xdg-detect-de into place.
    + Install vmware-user.desktop through toolbox package.
  - debian/open-vm-tools.init:
    + Re-add 'modprobe [-r] vmblock'.
    + Add 'modprobe [-r] vmxnet'.
      * Incase it's not loaded during boot.
    + Remove and re-add pcnet32 module
      * Will be done before (remove) and after (readd) vmxnet module
        is added.
      * If vmxnet doesn't exist (aka modules fail to build), pcnet32 can be
        still used for network connectivity.
      * Workaround until a better fix can be done.
  - Re-add gnome-session to debian/local/xautostart.conf
  - Manpages removed (from debian/manpages):
    + vmmemctl.9
    + vmxnet3.9
    + Remove references to manpages that have been removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
#define ETH_ADDR_FMT_STR     "%02x:%02x:%02x:%02x:%02x:%02x"
57
57
#define ETH_ADDR_FMT_ARGS(a) ((uint8 *)a)[0], ((uint8 *)a)[1], ((uint8 *)a)[2], \
58
58
                             ((uint8 *)a)[3], ((uint8 *)a)[4], ((uint8 *)a)[5]
 
59
 
 
60
#define ETH_MAX_EXACT_MULTICAST_ADDRS 32
 
61
 
 
62
typedef enum Eth_RxMode {
 
63
   ETH_FILTER_UNICAST   = 0x0001,   // pass unicast (directed) frames
 
64
   ETH_FILTER_MULTICAST = 0x0002,   // pass some multicast frames
 
65
   ETH_FILTER_ALLMULTI  = 0x0004,   // pass *all* multicast frames
 
66
   ETH_FILTER_BROADCAST = 0x0008,   // pass broadcast frames
 
67
   ETH_FILTER_PROMISC   = 0x0010,   // pass all frames (ie no filter)
 
68
   ETH_FILTER_USE_LADRF = 0x0020,   // use the LADRF for multicast filtering
 
69
   ETH_FILTER_SINK      = 0x10000   // pass not-matched unicast frames
 
70
} Eth_RxMode;
 
71
 
 
72
// filter flags printf helpers
 
73
#define ETH_FILTER_FLAG_FMT_STR     "%s%s%s%s%s%s%s"
 
74
#define ETH_FILTER_FLAG_FMT_ARGS(f) (f) & ETH_FILTER_UNICAST   ? "  UNICAST"   : "", \
 
75
                                    (f) & ETH_FILTER_MULTICAST ? "  MULTICAST" : "", \
 
76
                                    (f) & ETH_FILTER_ALLMULTI  ? "  ALLMULTI"  : "", \
 
77
                                    (f) & ETH_FILTER_BROADCAST ? "  BROADCAST" : "", \
 
78
                                    (f) & ETH_FILTER_PROMISC   ? "  PROMISC"   : "", \
 
79
                                    (f) & ETH_FILTER_USE_LADRF ? "  USE_LADRF" : "", \
 
80
                                    (f) & ETH_FILTER_SINK      ? "  SINK"      : ""
 
81
 
59
82
// Ethernet header type
60
83
typedef enum {
61
84
   ETH_HEADER_TYPE_DIX,
209
232
   ETH_VMWARE_FRAME_TYPE_INVALID    = 0,
210
233
   ETH_VMWARE_FRAME_TYPE_BEACON     = 1,
211
234
   ETH_VMWARE_FRAME_TYPE_COLOR      = 2,
212
 
   ETH_VMWARE_FRAME_TYPE_HEARTBEAT  = 3,
 
235
   ETH_VMWARE_FRAME_TYPE_ECHO       = 3,
213
236
};
214
237
 
215
238
typedef