diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-08 01:48:16 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-08 01:48:16 +0000 |
commit | ce7156b6079b4fb0a639f12919a88897c6fddac1 (patch) | |
tree | 72c8446806ec9fd5a5abd0d41772c91c785d7632 /nuttx/net/netdev_register.c | |
parent | a840b46208077e92bfeb30147aedc49d9c04aa8e (diff) | |
download | px4-nuttx-ce7156b6079b4fb0a639f12919a88897c6fddac1.tar.gz px4-nuttx-ce7156b6079b4fb0a639f12919a88897c6fddac1.tar.bz2 px4-nuttx-ce7156b6079b4fb0a639f12919a88897c6fddac1.zip |
Add IGMP initialization logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2778 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/net/netdev_register.c')
-rw-r--r-- | nuttx/net/netdev_register.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/net/netdev_register.c b/nuttx/net/netdev_register.c index e5426d4e6..15a71c209 100644 --- a/nuttx/net/netdev_register.c +++ b/nuttx/net/netdev_register.c @@ -1,7 +1,7 @@ /**************************************************************************** * net/netdev_register.c * - * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2010 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -140,6 +140,12 @@ int netdev_register(FAR struct uip_driver_s *dev) dev->flink = g_netdevices; g_netdevices = dev; + + /* Configure the device for IGMP support */ + +#ifdef CONFIG_NET_IGMP + uip_igmpdevinit(dev); +#endif netdev_semgive(); nlldbg("Registered MAC: %02x:%02x:%02x:%02x:%02x:%02x as dev: %s\n", |