1818/**
1919 * ethtool.etherinfo_ipv6addr deallocator - cleans up when a object is deleted
2020 *
21- * @param self etherinfo_ipv6_py object structure
21+ * @param self etherinfo_ipv6addr_py object structure
2222 */
23- void _ethtool_etherinfo_ipv6_dealloc (etherinfo_ipv6_py * self )
23+ void _ethtool_etherinfo_ipv6_dealloc (etherinfo_ipv6addr_py * self )
2424{
2525 if ( self -> addrdata ) {
2626 free_ipv6addresses (self -> addrdata );
@@ -40,9 +40,9 @@ void _ethtool_etherinfo_ipv6_dealloc(etherinfo_ipv6_py *self)
4040 */
4141PyObject * _ethtool_etherinfo_ipv6_new (PyTypeObject * type , PyObject * args , PyObject * kwds )
4242{
43- etherinfo_ipv6_py * self ;
43+ etherinfo_ipv6addr_py * self ;
4444
45- self = (etherinfo_ipv6_py * )type -> tp_alloc (type , 0 );
45+ self = (etherinfo_ipv6addr_py * )type -> tp_alloc (type , 0 );
4646 return (PyObject * )self ;
4747}
4848
@@ -56,7 +56,7 @@ PyObject *_ethtool_etherinfo_ipv6_new(PyTypeObject *type, PyObject *args, PyObje
5656 *
5757 * @return Returns 0 on success.
5858 */
59- int _ethtool_etherinfo_ipv6_init (etherinfo_ipv6_py * self , PyObject * args , PyObject * kwds )
59+ int _ethtool_etherinfo_ipv6_init (etherinfo_ipv6addr_py * self , PyObject * args , PyObject * kwds )
6060{
6161 static char * etherinfo_kwlist [] = {"etherinfo_ipv6_ptr" , NULL };
6262 PyObject * ethinf_ptr = NULL ;
@@ -77,7 +77,7 @@ int _ethtool_etherinfo_ipv6_init(etherinfo_ipv6_py *self, PyObject *args, PyObje
7777 *
7878 * @return Returns a PyObject with the value requested on success, otherwise NULL
7979 */
80- PyObject * _ethtool_etherinfo_ipv6_getter (etherinfo_ipv6_py * self , PyObject * attr_o )
80+ PyObject * _ethtool_etherinfo_ipv6_getter (etherinfo_ipv6addr_py * self , PyObject * attr_o )
8181{
8282 PyObject * ret ;
8383 char * attr = PyString_AsString (attr_o );
@@ -113,7 +113,7 @@ PyObject *_ethtool_etherinfo_ipv6_getter(etherinfo_ipv6_py *self, PyObject *attr
113113 *
114114 * @return Returns always -1 (failure).
115115 */
116- int _ethtool_etherinfo_ipv6_setter (etherinfo_ipv6_py * self , PyObject * attr_o , PyObject * val_o )
116+ int _ethtool_etherinfo_ipv6_setter (etherinfo_ipv6addr_py * self , PyObject * attr_o , PyObject * val_o )
117117{
118118 PyErr_SetString (PyExc_AttributeError , "etherinfo_ipv6addr member values are read-only." );
119119 return -1 ;
@@ -127,7 +127,7 @@ int _ethtool_etherinfo_ipv6_setter(etherinfo_ipv6_py *self, PyObject *attr_o, Py
127127 *
128128 * @return Returns a PyObject with a string with all of the information
129129 */
130- PyObject * _ethtool_etherinfo_ipv6_str (etherinfo_ipv6_py * self )
130+ PyObject * _ethtool_etherinfo_ipv6_str (etherinfo_ipv6addr_py * self )
131131{
132132 char scope [66 ];
133133
@@ -158,11 +158,11 @@ static PyMethodDef _ethtool_etherinfo_ipv6_methods[] = {
158158 *
159159 */
160160static PyMemberDef _ethtool_etherinfo_ipv6_members [] = {
161- {"address" , T_OBJECT_EX , offsetof(etherinfo_ipv6_py , addrdata ), 0 ,
161+ {"address" , T_OBJECT_EX , offsetof(etherinfo_ipv6addr_py , addrdata ), 0 ,
162162 "IPv6 address" },
163- {"netmask" , T_OBJECT_EX , offsetof(etherinfo_ipv6_py , addrdata ), 0 ,
163+ {"netmask" , T_OBJECT_EX , offsetof(etherinfo_ipv6addr_py , addrdata ), 0 ,
164164 "IPv6 netmask" },
165- {"scope" , T_OBJECT_EX , offsetof(etherinfo_ipv6_py , addrdata ), 0 ,
165+ {"scope" , T_OBJECT_EX , offsetof(etherinfo_ipv6addr_py , addrdata ), 0 ,
166166 "IPv6 IP address scope" },
167167 {NULL } /* End of member list */
168168};
@@ -175,7 +175,7 @@ PyTypeObject ethtool_etherinfoIPv6Type = {
175175 PyObject_HEAD_INIT (NULL )
176176 0 , /*ob_size*/
177177 "ethtool.etherinfo_ipv6addr" , /*tp_name*/
178- sizeof (etherinfo_ipv6_py ), /*tp_basicsize*/
178+ sizeof (etherinfo_ipv6addr_py ), /*tp_basicsize*/
179179 0 , /*tp_itemsize*/
180180 (destructor )_ethtool_etherinfo_ipv6_dealloc ,/*tp_dealloc*/
181181 0 , /*tp_print*/
0 commit comments